Skip to content
New issue

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

continuous integration is failing with a rust link error #321

Closed
ctb opened this issue May 4, 2024 · 0 comments · Fixed by #325
Closed

continuous integration is failing with a rust link error #321

ctb opened this issue May 4, 2024 · 0 comments · Fixed by #325

Comments

@ctb
Copy link
Collaborator

ctb commented May 4, 2024

perhaps because of:

   Compiling version_check v0.9.4
error: linking with `cc` failed: exit status: 1
Error:   |
  = note: LC_ALL="C" PATH="/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/runner/miniconda3/envs/sourmash_dev/bin:/home/runner/miniconda3/condabin:/home/runner/miniconda3/condabin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/runner/.dotnet/tools" VSLANG="1033" "cc" "-m64" "/tmp/rustccROwP9/symbols.o" "/home/runner/work/sourmash_plugin_branchwater/sourmash_plugin_branchwater/target/debug/build/proc-macro2-20477fad7ec36b78/build_script_build-20477fad7ec36b78.build_script_build.57280afd960ffe10-cgu.0.rcgu.o" "/home/runner/work/sourmash_plugin_branchwater/sourmash_plugin_branchwater/target/debug/build/proc-macro2-20477fad7ec36b78/build_script_build-20477fad7ec36b78.td1vtd4nd39p80k.rcgu.o" "-Wl,--as-needed" "-L" "/home/runner/work/so
  = note: /home/runner/miniconda3/envs/sourmash_dev/bin/../lib/gcc/x86_64-conda-linux-gnu/10.4.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-d2ef02247056996e.rlib(std-d2ef02247056996e.std.e4dfbc2c3f4b09f1-cgu.0.rcgu.o): in function `std::sys::pal::unix::stack_overflow::imp::sigstack_size':
          /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys/pal/unix/stack_overflow.rs:216: undefined reference to `getauxval'
          /home/runner/miniconda3/envs/sourmash_dev/bin/../lib/gcc/x86_64-conda-linux-gnu/10.4.0/../../../../x86_64-conda-linux-gnu/bin/ld: /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys/pal/unix/stack_overflow.rs:216: undefined reference to `getauxval'
          collect2: error: ld returned 1 exit status
          
  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
error: aborting due to 1 previous error
Error: aborting due to 1 previous error
error: could not compile `proc-macro2` (build script) due to 2 previous errors
Error: warning: build failed, waiting for other jobs to finish...
error: linking with `cc` failed: exit status: 1
Error:   |
  = note: LC_ALL="C" PATH="/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/runner/miniconda3/envs/sourmash_dev/bin:/home/runner/miniconda3/condabin:/home/runner/miniconda3/condabin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/runner/.dotnet/tools" VSLANG="1033" "cc" "-m64" "/tmp/rustc3CraUh/symbols.o" "/home/runner/work/sourmash_plugin_branchwater/sourmash_plugin_branchwater/target/debug/build/libc-a96a008452bf9bd6/build_script_build-a96a008452bf9bd6.build_script_build.e8206320e0b73efc-cgu.0.rcgu.o" "/home/runner/work/sourmash_plugin_branchwater/sourmash_plugin_branchwater/target/debug/build/libc-a96a008452bf9bd6/build_script_build-a96a008452bf9bd6.build_script_build.e8206320e0b73efc-cgu.1.rcgu.o" "/home/runner/work/sourmash_plug
error: could not compile `libc` (build script) due to 2 previous errors
  = note: /home/runner/miniconda3/envs/sourmash_dev/bin/../lib/gcc/x86_64-conda-linux-gnu/10.4.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-d2ef02247056996e.rlib(std-d2ef02247056996e.std.e4dfbc2c3f4b09f1-cgu.0.rcgu.o): in function `std::sys::pal::unix::stack_overflow::imp::sigstack_size':
          /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys/pal/unix/stack_overflow.rs:216: undefined reference to `getauxval'
          /home/runner/miniconda3/envs/sourmash_dev/bin/../lib/gcc/x86_64-conda-linux-gnu/10.4.0/../../../../x86_64-conda-linux-gnu/bin/ld: /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/sys/pal/unix/stack_overflow.rs:216: undefined reference to `getauxval'
          collect2: error: ld returned 1 exit status
          
  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
error: aborting due to 1 previous error
Error: aborting due to 1 previous error
error: linking with `cc` failed: exit status: 1
@ctb ctb changed the title continuous integration is failing, whee! continuous integration is failing with a rust link error May 7, 2024
@ctb ctb closed this as completed in #325 May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant