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

grcov fails to build on Windows with undefined reference to __imp__ZN15crossbeam_ #849

Open
sylvestre opened this issue Jun 21, 2022 · 0 comments

Comments

@sylvestre
Copy link
Contributor

     Compiling grcov v0.8.10
  error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
  Error:   |
    = note: "x86_64-w64-mingw32-gcc" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--high-entropy-va" "C:\\Users\\runneradmin\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsbegin.o" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\rustcX5O0Ou\\symbols.o" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\cargo-installK81ezP\\release\\deps\\grcov-7b836aa49a9b5a38.2acmsrap821tbd9l.rcgu.o" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\cargo-installK81ezP\\release\\deps\\grcov-7b836aa49a9b5a38.addr2line-7341430228c73258.addr2line.961dbc95-cgu.0.rcgu.o.rcgu.o" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\cargo-installK81ezP\\release\\deps\\grcov-7b836aa49a9b5a38.addr2line-7341430228c73258.addr2line.961dbc95-cgu.1.rcgu.o.rcgu.o" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\cargo-installK81ezP\\release\\deps\\grcov-7b836aa49a9b5a38.addr2line-7341430228c73258.addr2line.961dbc95-cgu.10.rcgu.o.rcgu.o" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\cargo-installK81ezP\\release\\deps\\grcov-7b836aa49a9b5a38.addr2line-7341430228c73258.addr2line.961dbc95-cgu.11.rcgu.o.rcgu.o" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\cargo-installK81ezP\\release\\deps\\grcov-7b836aa49a9b5a38.addr2line-7341430228c73258.addr2line.961dbc95-cgu.12.rcgu.o.rcgu.o" "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\cargo-ins
[...]
AppData\\Local\\Temp\\cargo-installK81ezP\\release\\deps\\grcov-7b836aa49a9b5a38.exe" "-Wl,--gc-sections" "-no-pie" "-Wl,-O1" "-nodefaultlibs" "C:\\Users\\runneradmin\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
    = note: C:\Users\RUNNER~1\AppData\Local\Temp\cargo-installK81ezP\release\deps\grcov-7b836aa49a9b5a38.grcov.c87f637f-cgu.13.rcgu.o:grcov.c87f637f-cgu:(.text+0x38c): undefined reference to `__imp__ZN15crossbeam_epoch7default9COLLECTOR17ha71454845009752bE'
            C:\Users\RUNNER~1\AppData\Local\Temp\cargo-installK81ezP\release\deps\grcov-7b836aa49a9b5a38.grcov.c87f637f-cgu.13.rcgu.o:grcov.c87f637f-cgu:(.text+0x605): undefined reference to `__imp__ZN15crossbeam_epoch7default9COLLECTOR17ha71454845009752bE'
            collect2.exe: error: ld returned 1 exit status
  
    = help: 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#cargorustc-link-libkindname)
  
  error: could not compile `grcov` due to previous error

Full log:
https://github.com/uutils/coreutils/runs/6989420336?check_suite_focus=true

sylvestre added a commit to sylvestre/coreutils that referenced this issue Jun 21, 2022
sylvestre added a commit to uutils/coreutils that referenced this issue Jun 23, 2022
sylvestre added a commit to uutils/coreutils that referenced this issue Jun 30, 2022
sylvestre added a commit to uutils/coreutils that referenced this issue Jul 7, 2022
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