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

rav1e: error adding symbols: file format not recognized #100029

Closed
kevincox opened this issue Oct 8, 2020 · 2 comments · Fixed by #104122
Closed

rav1e: error adding symbols: file format not recognized #100029

kevincox opened this issue Oct 8, 2020 · 2 comments · Fixed by #104122

Comments

@kevincox
Copy link
Contributor

kevincox commented Oct 8, 2020

https://hydra.nixos.org/build/128201808/nixlog/2

cc: @primeos

@kevincox
Copy link
Contributor Author

kevincox commented Oct 8, 2020

---- src/lib.rs - version (line 243) stdout ----
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-Wl,--eh-frame-hdr" "-L" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/build/rustdoctestEGeShQ/rust_out.rust_out.7rcbfp3g-cgu.0.rcgu.o" "-o" "/build/rustdoctestEGeShQ/rust_out" "/build/rustdoctestEGeShQ/rust_out.33dyzt1ekirinwy8.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/build/source/target/x86_64-unknown-linux-gnu/release/deps" "-L" "/build/source/target/release/deps" "-L" "/build/source/target/x86_64-unknown-linux-gnu/release/build/rav1e-a25e1c8e59df92cf/out" "-L" "/build/source/target/x86_64-unknown-linux-gnu/release/build/rav1e-d59f54f9653b7923/out" "-L" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libsemver-c2a4e5ea12ba208d.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libsemver_parser-31398bb63cb10639.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/librav1e-797063925a70da93.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/librayon-c0ca39260b1eb636.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/librayon_core-c0d4548be03fd021.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libnum_cpus-9b069844e5aaf1c9.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/liblibc-5c16729830311e9c.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libcrossbeam_deque-faaf52a55c5c3e3a.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libcrossbeam_epoch-edb7f7f387de9300.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libscopeguard-71bba2616cd3ec5f.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libmemoffset-8df823e84195d693.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libcrossbeam_channel-dd8b878b139fa8b7.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libmaybe_uninit-c7df639785e22ea8.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libcrossbeam_utils-57d005779eab8df8.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/liblazy_static-2c5e2b25251b5de6.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libpaste-5099d75a7bf078f0.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libthiserror-d88d0372a503d092.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libnum_traits-90f3a50868ce0672.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libitertools-d0a80a3d7d3287a5.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libeither-11559ccf003cc313.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libarrayvec-60620656b5aa3937.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libbitstream_io-f978ee9d1fcb4a41.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/liblog-7fdfe71c0d76fc91.rlib" "/build/source/target/x86_64-unknown-linux-gnu/release/deps/libcfg_if-1dfb95d9f7e98627.rlib" "-Wl,--start-group" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c07d3103fa56dbb9.rlib" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-fbd00f445b7d4263.rlib" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-9cd57ef920264fa0.rlib" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-25a159709f8922a6.rlib" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-543794fbbd9ff6fa.rlib" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-1ec9c2a67cc1187b.rlib" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-0f362339e8563263.rlib" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-5dc16c13c8c78e9a.rlib" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-8f56e6611a96b11e.rlib" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-d6df24fb977ba40a.rlib" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-c848199df5039aa8.rlib" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-38ad54a9cfd227e6.rlib" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-8c172ed7091d26c1.rlib" "-Wl,--end-group" "/nix/store/42hwlprpmrk9bi1cq3sxllm0q3aafkn2-rustc-1.46.0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-f483f6f625149722.rlib" "-Wl,-Bdynamic" "-lutil" "-ldl" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-ldl" "-lutil"
  = note: /nix/store/hiwz81i1g3fn3p0acjs042a4h5fri6dh-binutils-2.31.1/bin/ld: /build/source/target/x86_64-unknown-linux-gnu/release/deps/libsemver-c2a4e5ea12ba208d.rlib: error adding symbols: file format not recognized
          collect2: error: ld returned 1 exit status

@kevincox
Copy link
Contributor Author

kevincox commented Oct 8, 2020

It appears that there is a bad interaction between cargo-c and cargo's LTO.

primeos added a commit that referenced this issue Oct 15, 2020
The build of rav1e is currently broken, see #100029.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants