May
21
10 hours ago
started
started time in 1 hour ago
started
started time in 9 hours ago
May
20
1 day ago
Activity icon
issue

Emilgardis issue comment cross-rs/cross

Emilgardis
Emilgardis

New release perhaps?

Hey, the latest release is almost a year old by now and a few cool things have landed in master. Perhaps it's time for a new release?

Emilgardis
Emilgardis

the issue with x86_64-unknown-linux-gnu is https://github.com/cross-rs/cross/issues/680, im still not sure we know how to best proceed

started
started time in 13 hours ago
Activity icon
issue

Emilgardis issue comment cross-rs/cross

Emilgardis
Emilgardis

`--manifest-path` not working

I'm not able to get cross working with --manifest-path.

In my /home/david/code/ directory:

➜ 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 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: https://github.com/cross-rs/cross/issues/211#issuecomment-490140591.

cross 0.2.1
cargo 1.57.0 (b2e52d7ca 2021-10-21)
Emilgardis
Emilgardis

try #648 which implements this and more

Activity icon
issue

abrisco issue comment cross-rs/cross

abrisco
abrisco

New release perhaps?

Hey, the latest release is almost a year old by now and a few cool things have landed in master. Perhaps it's time for a new release?

abrisco
abrisco

@Emilgardis hello again. Is there a tracking issue or PR for the outstanding work?

Activity icon
issue

abrisco issue comment cross-rs/cross

abrisco
abrisco

`--manifest-path` not working

I'm not able to get cross working with --manifest-path.

In my /home/david/code/ directory:

➜ 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 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: https://github.com/cross-rs/cross/issues/211#issuecomment-490140591.

cross 0.2.1
cargo 1.57.0 (b2e52d7ca 2021-10-21)
abrisco
abrisco

Friendly bump. Running into the same issue.

started
started time in 1 day ago
started
started time in 1 day ago
Activity icon
issue

Emilgardis issue comment cross-rs/cross

Emilgardis
Emilgardis

Build fails with `sh: 1: cargo: not found`

The build fails on a Docker container with sh: 1: cargo: not found, the Docker container is run with a custom image that contains Docker with a wrapper to have DinD working, and Rust nightly docker run -it -v pwd:/var/tmp -v /var/run/docker.sock:/var/run/docker.sock kariae/docker-rust-nightly sh the command fails with sh: 1: cargo: not found

Emilgardis
Emilgardis

@IllustratedMan-code good that it worked for you, but that solution is not how cross is supposed to work (as I alluded to here and mentioned here), cross is supposed to mount your system sysroot for x86_64-unknown-linux-gnu into /cargo

For nix specifically, the issue should have been fixed with #524

We have to continue and look into this, but its hard when we're not able to reproduce the issue

Previous