We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--manifest-path
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm not able to get cross working with --manifest-path.
cross
In my /home/david/code/ directory:
/home/david/code/
➜ cargo new manifest-path-issue Created binary (application) `manifest-path-issue` package ➜ cross build --target armv7-unknown-linux-gnueabihf --manifest-path ./manifest-path-issue/Cargo.toml Compiling manifest-path-issue v0.1.0 (/home/david/code/manifest-path-issue) error: linking with `cc` failed: exit status: 1 | = note: "cc" "/home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2c5ctcr7t9yvpets.rcgu.o" "/home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2el8xpkegvp0x5n9.rcgu.o" "/home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2evyh6kbu8iwkoi7.rcgu.o" "/home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.47g0z0vhs49amrp7.rcgu.o" "/home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.4cw1pn1ptywuoyhb.rcgu.o" "/home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.4ervinijh4yhisnk.rcgu.o" "/home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.4vxw7djbw7ucp0v4.rcgu.o" "/home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.h8yqoxzxgyaeyuk.rcgu.o" "/home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.3f63lksz7u2c0opv.rcgu.o" "-Wl,--as-needed" "-L" "/home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps" "-L" "/home/david/code/manifest-path-issue/target/debug/deps" "-L" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libstd-1ee785e268908456.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libpanic_unwind-b130e38ab22fb55f.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libminiz_oxide-e6fa479890a763fe.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libadler-4fcac97fd3c1df81.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libobject-d49363222d9843b4.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libmemchr-262cc1eb5fa1ac00.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libaddr2line-c81811eba2c3e595.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libgimli-03d09830ce151964.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libstd_detect-d14fe58756a437b3.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/librustc_demangle-10adeb63d3cd27fd.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libhashbrown-c17a1957d87bb5bc.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/librustc_std_workspace_alloc-6607f95ea581ae18.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libunwind-0c3d6564bceed113.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcfg_if-56ff1c38966701dd.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liblibc-933a1a8b0825508d.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liballoc-0daaf157216c6779.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/librustc_std_workspace_core-a2e7314c2c9074d5.rlib" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcore-a37346deb096a7bd.rlib" "-Wl,--end-group" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcompiler_builtins-05182533a5124788.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/david/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib" "-o" "/home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" = note: /usr/bin/ld: /home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2c5ctcr7t9yvpets.rcgu.o: relocations in generic ELF (EM: 40) /usr/bin/ld: /home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2c5ctcr7t9yvpets.rcgu.o: relocations in generic ELF (EM: 40) /usr/bin/ld: /home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2c5ctcr7t9yvpets.rcgu.o: relocations in generic ELF (EM: 40) /usr/bin/ld: /home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2c5ctcr7t9yvpets.rcgu.o: relocations in generic ELF (EM: 40) /usr/bin/ld: /home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2c5ctcr7t9yvpets.rcgu.o: relocations in generic ELF (EM: 40) /usr/bin/ld: /home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2c5ctcr7t9yvpets.rcgu.o: relocations in generic ELF (EM: 40) /usr/bin/ld: /home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2c5ctcr7t9yvpets.rcgu.o: relocations in generic ELF (EM: 40) /usr/bin/ld: /home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2c5ctcr7t9yvpets.rcgu.o: relocations in generic ELF (EM: 40) /usr/bin/ld: /home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2c5ctcr7t9yvpets.rcgu.o: relocations in generic ELF (EM: 40) /usr/bin/ld: /home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2c5ctcr7t9yvpets.rcgu.o: relocations in generic ELF (EM: 40) /usr/bin/ld: /home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2c5ctcr7t9yvpets.rcgu.o: relocations in generic ELF (EM: 40) /usr/bin/ld: /home/david/code/manifest-path-issue/target/armv7-unknown-linux-gnueabihf/debug/deps/manifest_path_issue-604bddf586bb4f4a.2c5ctcr7t9yvpets.rcgu.o: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status error: could not compile `manifest-path-issue` due to previous error
If I cd into the directory containing the Cargo.toml, everything works fine:
cd
Cargo.toml
➜ cd manifest-path-issue ➜ cross build --target armv7-unknown-linux-gnueabihf Compiling manifest-path-issue v0.1.0 (/project) Finished dev [unoptimized + debuginfo] target(s) in 0.31s
Searching in the repo's issue tracker, I found another user with a similar experience: #211 (comment).
cross 0.2.1 cargo 1.57.0 (b2e52d7ca 2021-10-21)
The text was updated successfully, but these errors were encountered:
Friendly bump. Running into the same issue.
Sorry, something went wrong.
try #684 which implements this and more
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
I'm not able to get
cross
working with--manifest-path
.In my
/home/david/code/
directory:If I
cd
into the directory containing theCargo.toml
, everything works fine:Searching in the repo's issue tracker, I found another user with a similar experience: #211 (comment).
The text was updated successfully, but these errors were encountered: