-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Bug] Building from source failed on Ubuntu 26.04 #3146
Description
🐛 Bug Report
Unable to build snarkVM from source on Ubuntu 26.04
Steps to Reproduce
- Install rust using rustup
- Follow Section 2.3 on README
Expected Behavior
Building should complete without any failures
Your Environment
- snarkVM: 4.4.0
- Rust & Cargo: 1.88.0
- gcc & cc: 15.2.0
- OS: Ubuntu 26.04
Logs
tchen@tchen-HP-Laptop-15-dw3xxx:~/Repos/snarkVM$ cargo build -r
info: syncing channel updates for '1.88-x86_64-unknown-linux-gnu'
info: latest update on 2025-06-26, rust version 1.88.0 (6b00bc388 2025-06-23)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustfmt'
Updating crates.io index
Downloaded lru-slab v0.1.2
Downloaded crypto-common v0.1.6
Downloaded rustc-hash v2.1.1
Downloaded rand_chacha v0.9.0
Downloaded openssl-probe v0.2.1
Downloaded generic-array v0.14.9
Downloaded rand_core v0.9.5
Downloaded jobserver v0.1.34
Downloaded fs_extra v1.3.0
Downloaded cmake v0.1.57
Downloaded zmij v1.0.19
Downloaded unicode-ident v1.0.22
Downloaded quinn-udp v0.5.14
Downloaded rustls-native-certs v0.8.3
Downloaded tempfile v3.24.0
Downloaded anyhow v1.0.100
Downloaded rustls-platform-verifier v0.6.2
Downloaded getrandom v0.3.4
Downloaded rand v0.9.2
Downloaded quinn v0.11.9
Downloaded memchr v2.7.6
Downloaded reqwest v0.13.1
Downloaded quinn-proto v0.11.13
Downloaded aws-lc-rs v1.15.4
Downloaded zerocopy v0.8.38
Downloaded libc v0.2.180
Downloaded aws-lc-sys v0.37.0
Downloaded 27 crates (11.5MiB) in 35.40s (largest was aws-lc-sys at 9.1MiB)
Compiling proc-macro2 v1.0.106
Compiling quote v1.0.44
Compiling libc v0.2.180
Compiling crossbeam-utils v0.8.21
Compiling itoa v1.0.17
Compiling serde_core v1.0.228
Compiling equivalent v1.0.2
Compiling rayon-core v1.13.0
Compiling allocator-api2 v0.2.21
error: linking with cc failed: exit status: 1
|
= note: "cc" "-m64" "/tmp/rustcCovEVc/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/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-,liballoc-,librustc_std_workspace_core-,libcore-,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcCovEVc/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/tchen/Repos/snarkVM/target/release/build/rayon-core-07bd18e7cbe0ed6d/build_script_build-07bd18e7cbe0ed6d" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs" "-fuse-ld=lld"
= note: some arguments are omitted. use --verbose to show all linker arguments
= note: collect2: fatal error: cannot find 'ld'
compilation terminated.
error: could not compile rayon-core (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: linking with cc failed: exit status: 1
|
= note: "cc" "-m64" "/tmp/rustcO0WIuu/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/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-,liballoc-,librustc_std_workspace_core-,libcore-,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcO0WIuu/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/tchen/Repos/snarkVM/target/release/build/quote-bfcbf11dbc92da76/build_script_build-bfcbf11dbc92da76" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs" "-fuse-ld=lld"
= note: some arguments are omitted. use --verbose to show all linker arguments
= note: collect2: fatal error: cannot find 'ld'
compilation terminated.
error: linking with cc failed: exit status: 1
|
= note: "cc" "-m64" "/tmp/rustclpEhAB/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/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-,liballoc-,librustc_std_workspace_core-,libcore-,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustclpEhAB/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/tchen/Repos/snarkVM/target/release/build/crossbeam-utils-243ac3df54b6c8ca/build_script_build-243ac3df54b6c8ca" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs" "-fuse-ld=lld"
= note: some arguments are omitted. use --verbose to show all linker arguments
= note: collect2: fatal error: cannot find 'ld'
compilation terminated.
error: could not compile quote (build script) due to 1 previous error
error: could not compile crossbeam-utils (build script) due to 1 previous error
error: linking with cc failed: exit status: 1
|
= note: "cc" "-m64" "/tmp/rustcyusM3r/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/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-,liballoc-,librustc_std_workspace_core-,libcore-,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcyusM3r/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/tchen/Repos/snarkVM/target/release/build/serde_core-8debbcaf80c76bfc/build_script_build-8debbcaf80c76bfc" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs" "-fuse-ld=lld"
= note: some arguments are omitted. use --verbose to show all linker arguments
= note: collect2: fatal error: cannot find 'ld'
compilation terminated.
error: could not compile serde_core (build script) due to 1 previous error
error: linking with cc failed: exit status: 1
|
= note: "cc" "-m64" "/tmp/rustcnhVmn0/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/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-,liballoc-,librustc_std_workspace_core-,libcore-,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcnhVmn0/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/tchen/Repos/snarkVM/target/release/build/proc-macro2-1d17ca8b1d21a04b/build_script_build-1d17ca8b1d21a04b" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs" "-fuse-ld=lld"
= note: some arguments are omitted. use --verbose to show all linker arguments
= note: collect2: fatal error: cannot find 'ld'
compilation terminated.
error: could not compile proc-macro2 (build script) due to 1 previous error
error: linking with cc failed: exit status: 1
|
= note: "cc" "-m64" "/tmp/rustcRILKF0/symbols.o" "<4 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/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-,liballoc-,librustc_std_workspace_core-,libcore-,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcRILKF0/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/tchen/Repos/snarkVM/target/release/build/libc-bfb576d18a72090a/build_script_build-bfb576d18a72090a" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs" "-fuse-ld=lld"
= note: some arguments are omitted. use --verbose to show all linker arguments
= note: collect2: fatal error: cannot find 'ld'
compilation terminated.
error: could not compile libc (build script) due to 1 previous error