Skip to content

rust build failure on Fedora 41 #641

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

Open
philthegitter opened this issue Mar 14, 2025 · 2 comments
Open

rust build failure on Fedora 41 #641

philthegitter opened this issue Mar 14, 2025 · 2 comments

Comments

@philthegitter
Copy link

One error out of 18756. Is the rust compiler still useable? I just installed it for the first time. I'm trying to compile resvg.

admin@xena:~/Downloads/rust_compiler/rust$ ./x test tests/ui
.
<lots of lines>
.
........................................................................................ 18480/18756
........................................................................................ 18568/18756
..............................................iiiiiiii.i................................ 18656/18756
........................................................................................ 18744/18756
............

failures:

---- [ui] tests/ui/process/nofile-limit.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/home/admin/Downloads/rust_compiler/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/home/admin/Downloads/rust_compiler/rust/tests/ui/process/nofile-limit.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/home/admin/.cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/home/admin/Downloads/rust_compiler/rust/vendor" "--sysroot" "/home/admin/Downloads/rust_compiler/rust/build/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "-O" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-o" "/home/admin/Downloads/rust_compiler/rust/build/x86_64-unknown-linux-gnu/test/ui/process/nofile-limit/a" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/home/admin/Downloads/rust_compiler/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Ctarget-feature=+crt-static" "-Crpath=no" "-Crelocation-model=static"
stdout: none
--- stderr -------------------------------
error: linking with `cc` failed: exit status: 1
   |
   = note:  "cc" "-m64" "/tmp/rustcp3BUoa/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*}.rlib" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-lgcc_eh" "-lgcc" "-lc" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustcp3BUoa/raw-dylibs" "-Wl,-Bdynamic" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,-znostart-stop-gc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/admin/Downloads/rust_compiler/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/admin/Downloads/rust_compiler/rust/build/x86_64-unknown-linux-gnu/test/ui/process/nofile-limit/a" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
   = note: some arguments are omitted. use `--verbose` to show all linker arguments
   = note: rust-lld: error: unable to find library -lm
           rust-lld: error: unable to find library -lc
           rust-lld: error: unable to find library -lc
           collect2: error: ld returned 1 exit status
           

error: aborting due to 1 previous error
------------------------------------------



failures:
    [ui] tests/ui/process/nofile-limit.rs

test result: FAILED. 18571 passed; 1 failed; 184 ignored; 0 measured; 0 filtered out; finished in 191.21s

Some tests failed in compiletest suite=ui mode=ui host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu
Build completed unsuccessfully in 0:03:36
admin@xena:~/Downloads/rust_compiler/rust$
@antoyo
Copy link
Contributor

antoyo commented Mar 14, 2025

I never ran the UI tests via x. We have our own tool in this repo to run the UI tests and there are quite a few that still fail as of this day, so that seems normal to me.

@antoyo
Copy link
Contributor

antoyo commented Apr 11, 2025

Were you able to successfully compile resvg and have all of its tests to pass with rustc_codegen_gcc?

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

No branches or pull requests

2 participants