Argument list too long linker errors
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
When using a devenv shell to create a dioxus application, I can consistently create "Argument list too long" linker errors (EDIT: It occurred to me that the fact I am using NixOS while doing this may also play a role in reproducing this, I imagine the long paths referencing files in the store could potentially play a significant role in why this error is occurring, I don't know for certain but just in case I'm adding this information now)
Steps to reproduce:
- Create and enter a devenv shell
devenv.nix
{ pkgs, lib, config, inputs, ... }:
{
packages = [ pkgs.git pkgs.pipewire pkgs.libsoup_3 pkgs.pango pkgs.alsa-lib pkgs.pulseaudio pkgs.vim pkgs.zed-editor pkgs.clang pkgs.libclang pkgs.clang-tools pkgs.openssl_4_0 pkgs.gtk3 pkgs.webkitgtk_4_1 pkgs.xdotool pkgs.gst_all_1.gstreamer pkgs.gst_all_1.gst-plugins-base pkgs.gst_all_1.gst-plugins-good pkgs.gst_all_1.gst-plugins-bad pkgs.gst_all_1.gst-plugins-ugly pkgs.gst_all_1.gst-libav pkgs.gst_all_1.gst-vaapi ];
languages = {
rust = {
enable = true;
channel = "stable";
version = "latest";
};
};
env = {
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
};
}
devenv.yaml
inputs:
nixpkgs:
url: github:cachix/devenv-nixpkgs/rolling
rust-overlay:
url: github:oxalica/rust-overlay
inputs:
nixpkgs:
follows: nixpkgs
- Create a jumpstart desktop repo using
dx init - Add the following to dependencies:
rodio = { version = "0.22.2", features = ["playback"] }
cpal = { version = "0.18.1", features = [ "pipewire", "pulseaudio"] }
- Run
cargo buildordx serve --desktop
Meta
This same error occurs for me when using:
rustc 1.97.0-beta.4 (36645eb0d 2026-06-12)
rustc 1.98.0-nightly (f28ac764c 2026-06-23)
rustc 1.96.0 (ac68faa20 2026-05-25)
Backtrace
Compiling proc-macro2 v1.0.106
Compiling unicode-ident v1.0.24
Compiling quote v1.0.46
Compiling pkg-config v0.3.33
Compiling libc v0.2.186
Compiling serde_core v1.0.228
Compiling serde v1.0.228
Compiling smallvec v1.15.2
Compiling cfg-if v1.0.4
Compiling heck v0.5.0
Compiling version-compare v0.2.1
Compiling equivalent v1.0.2
Compiling hashbrown v0.17.1
Compiling winnow v0.5.40
Compiling target-lexicon v0.12.16
Running `rustc --crate-name pkg_config --edition=2018 /home/aqua/.cargo/registry/src
/index.crates.io-1949cf8c6b5b557f/pkg-config-0.3.33/src/lib.rs --error-format=json --json
=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-type li
b --emit=dep-info,metadata,link -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' --chec
k-cfg 'cfg(feature, values())' -C metadata=694e2f986c36a581 -C extra-filename=-1dc21241be
919ef7 --out-dir /home/aqua/Documents/test-dir/target/debug/deps -L dependency=/home/aqua
/Documents/test-dir/target/debug/deps --cap-lints allow`
Running `rustc --crate-name build_script_build --edition=2021 /home/aqua/.cargo/regi
stry/src/index.crates.io-1949cf8c6b5b557f/quote-1.0.46/build.rs --error-format=json --jso
n=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-type b
in --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="pro
c-macro"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("default", "pro
c-macro"))' -C metadata=0401d04ec5a5500a -C extra-filename=-406fd56f69b1ef5b --out-dir /h
ome/aqua/Documents/test-dir/target/debug/build/quote-406fd56f69b1ef5b -L dependency=/home
/aqua/Documents/test-dir/target/debug/deps --cap-lints allow`
Running `rustc --crate-name build_script_build --edition=2021 /home/aqua/.cargo/regi
stry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/build.rs --error-format=json --jso
n=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-type b
in --emit=dep-info,link -C embed-bitcode=no '--allow=clippy::used_underscore_binding' --a
llow=unused_qualifications '--warn=clippy::unnecessary_semicolon' '--allow=clippy::unnece
ssary_cast' '--allow=clippy::uninlined_format_args' '--warn=clippy::ptr_as_ptr' '--allow=
clippy::non_minimal_cfg' '--allow=clippy::missing_safety_doc' '--warn=clippy::map_unwrap_
or' '--warn=clippy::manual_assert' '--allow=clippy::identity_op' '--warn=clippy::explicit
_iter_loop' '--allow=clippy::expl_impl_clone_on_copy' --cfg 'feature="default"' --cfg 'fe
ature="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("align", "co
nst-extern-fn", "default", "extra_traits", "rustc-dep-of-std", "rustc-std-workspace-core"
, "std", "use_std"))' -C metadata=2814e0b620c9356f -C extra-filename=-7064b32ee345a353 --
out-dir /home/aqua/Documents/test-dir/target/debug/build/libc-7064b32ee345a353 -L depende
ncy=/home/aqua/Documents/test-dir/target/debug/deps --cap-lints allow`
Running `rustc --crate-name cfg_if --edition=2018 /home/aqua/.cargo/registry/src/ind
ex.crates.io-1949cf8c6b5b557f/cfg-if-1.0.4/src/lib.rs --error-format=json --json=diagnost
ic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-type lib --emit=
dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs,test)'
--check-cfg 'cfg(feature, values("core", "rustc-dep-of-std"))' -C metadata=89bb1e362148f3
66 -C extra-filename=-0944d91213d4f0b7 --out-dir /home/aqua/Documents/test-dir/target/deb
ug/deps -L dependency=/home/aqua/Documents/test-dir/target/debug/deps --cap-lints allow`
Running `rustc --crate-name build_script_build --edition=2021 /home/aqua/.cargo/regi
stry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.106/build.rs --error-format=jso
n --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate
-type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="default"' --cfg 'featu
re="proc-macro"' --cfg 'feature="span-locations"' --check-cfg 'cfg(docsrs,test)' --check-
cfg 'cfg(feature, values("default", "nightly", "proc-macro", "span-locations"))' -C metad
ata=5f23d770570c6c6c -C extra-filename=-ff5d5cf45e3265f6 --out-dir /home/aqua/Documents/t
est-dir/target/debug/build/proc-macro2-ff5d5cf45e3265f6 -L dependency=/home/aqua/Document
s/test-dir/target/debug/deps --cap-lints allow`
Running `rustc --crate-name build_script_build --edition=2021 /home/aqua/.cargo/regi
stry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.228/build.rs --error-format=json --js
on=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-type
bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="de
rive"' --cfg 'feature="serde_derive"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)
' --check-cfg 'cfg(feature, values("alloc", "default", "derive", "rc", "serde_derive", "s
td", "unstable"))' -C metadata=37e16a8f52f24ef6 -C extra-filename=-c1aeda48f7697429 --out
-dir /home/aqua/Documents/test-dir/target/debug/build/serde-c1aeda48f7697429 -L dependenc
y=/home/aqua/Documents/test-dir/target/debug/deps --cap-lints allow`
Running `rustc --crate-name heck --edition=2021 /home/aqua/.cargo/registry/src/index
.crates.io-1949cf8c6b5b557f/heck-0.5.0/src/lib.rs --error-format=json --json=diagnostic-r
endered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-type lib --emit=dep-
info,metadata,link -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(fe
ature, values())' -C metadata=09533a18316a9f3c -C extra-filename=-291f384cb747fca2 --out-
dir /home/aqua/Documents/test-dir/target/debug/deps -L dependency=/home/aqua/Documents/te
st-dir/target/debug/deps --cap-lints allow`
Running `rustc --crate-name build_script_build --edition=2021 /home/aqua/.cargo/regi
stry/src/index.crates.io-1949cf8c6b5b557f/serde_core-1.0.228/build.rs --error-format=json
--json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-
type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="result"' --cfg 'feature
="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("alloc", "default
", "rc", "result", "std", "unstable"))' -C metadata=8c2c758b3b15bfa1 -C extra-filename=-1
b5417c8220c8ed9 --out-dir /home/aqua/Documents/test-dir/target/debug/build/serde_core-1b5
417c8220c8ed9 -L dependency=/home/aqua/Documents/test-dir/target/debug/deps --cap-lints a
llow`
Running `rustc --crate-name smallvec --edition=2018 /home/aqua/.cargo/registry/src/i
ndex.crates.io-1949cf8c6b5b557f/smallvec-1.15.2/src/lib.rs --error-format=json --json=dia
gnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-type lib --
emit=dep-info,metadata,link -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' --check-cf
g 'cfg(feature, values("arbitrary", "bincode", "const_generics", "const_new", "debugger_v
isualizer", "drain_filter", "drain_keep_rest", "impl_bincode", "malloc_size_of", "may_dan
gle", "serde", "specialization", "union", "unty", "write"))' -C metadata=be42ad314a654a43
-C extra-filename=-26c2e54fe420dbcf --out-dir /home/aqua/Documents/test-dir/target/debug
/deps -L dependency=/home/aqua/Documents/test-dir/target/debug/deps --cap-lints allow`
Running `rustc --crate-name unicode_ident --edition=2021 /home/aqua/.cargo/registry/
src/index.crates.io-1949cf8c6b5b557f/unicode-ident-1.0.24/src/lib.rs --error-format=json
--json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-t
ype lib --emit=dep-info,metadata,link -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)'
--check-cfg 'cfg(feature, values())' -C metadata=83304495dca11a53 -C extra-filename=-7b53
31368ce720fe --out-dir /home/aqua/Documents/test-dir/target/debug/deps -L dependency=/hom
e/aqua/Documents/test-dir/target/debug/deps --cap-lints allow`
Running `rustc --crate-name version_compare --edition=2021 /home/aqua/.cargo/registr
y/src/index.crates.io-1949cf8c6b5b557f/version-compare-0.2.1/src/lib.rs --error-format=js
on --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crat
e-type lib --emit=dep-info,metadata,link -C embed-bitcode=no --warn=unexpected_cfgs --che
ck-cfg 'cfg(tarpaulin)' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values()
)' -C metadata=fed04922d691a544 -C extra-filename=-d382488806d88249 --out-dir /home/aqua/
Documents/test-dir/target/debug/deps -L dependency=/home/aqua/Documents/test-dir/target/d
ebug/deps --cap-lints allow`
Running `rustc --crate-name equivalent --edition=2015 /home/aqua/.cargo/registry/src
/index.crates.io-1949cf8c6b5b557f/equivalent-1.0.2/src/lib.rs --error-format=json --json=
diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-type lib
--emit=dep-info,metadata,link -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' --check
-cfg 'cfg(feature, values())' -C metadata=bc1d29ae8257ed24 -C extra-filename=-847ac3c6623
0f0b7 --out-dir /home/aqua/Documents/test-dir/target/debug/deps -L dependency=/home/aqua/
Documents/test-dir/target/debug/deps --cap-lints allow`
Running `rustc --crate-name hashbrown --edition=2024 /home/aqua/.cargo/registry/src/
index.crates.io-1949cf8c6b5b557f/hashbrown-0.17.1/src/lib.rs --error-format=json --json=d
iagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-type lib
--emit=dep-info,metadata,link -C embed-bitcode=no --warn=unused_extern_crates --warn=unsa
fe_op_in_unsafe_fn --warn=unreachable_pub '--warn=clippy::str_to_string' '--warn=clippy::
semicolon_if_nothing_returned' '--warn=clippy::ref_as_ptr' '--warn=clippy::redundant_else
' '--warn=clippy::ptr_cast_constness' '--warn=clippy::ptr_as_ptr' '--allow=clippy::option
_if_let_else' '--warn=clippy::needless_continue' '--allow=clippy::must_use_candidate' '--
allow=clippy::module_name_repetitions' '--allow=clippy::missing_safety_doc' '--allow=clip
py::missing_errors_doc' --warn=missing_docs '--allow=clippy::manual_map' '--warn=clippy::
manual_let_else' --warn=explicit_outlives_requirements --warn=ellipsis_inclusive_range_pa
tterns --warn=elided_lifetimes_in_paths '--allow=clippy::doc_markdown' '--warn=clippy::bo
rrow_as_ptr' --warn=bare_trait_objects --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(fe
ature, values("alloc", "allocator-api2", "core", "default", "default-hasher", "equivalent
", "inline-more", "nightly", "raw-entry", "rayon", "rustc-dep-of-std", "rustc-internal-ap
i", "serde"))' -C metadata=5933622136981f47 -C extra-filename=-add5e0058588081d --out-dir
/home/aqua/Documents/test-dir/target/debug/deps -L dependency=/home/aqua/Documents/test-
dir/target/debug/deps --cap-lints allow`
Running `rustc --crate-name build_script_build --edition=2018 /home/aqua/.cargo/regi
stry/src/index.crates.io-1949cf8c6b5b557f/target-lexicon-0.12.16/build.rs --error-format=
json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --cr
ate-type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="default"' --check-c
fg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("arch_zkasm", "default", "serde",
"serde_support", "std"))' -C metadata=83c87a4bc23e1093 -C extra-filename=-38fa6f69837128c
b --out-dir /home/aqua/Documents/test-dir/target/debug/build/target-lexicon-38fa6f6983712
8cb -L dependency=/home/aqua/Documents/test-dir/target/debug/deps --cap-lints allow`
Running `rustc --crate-name build_script_build --edition=2021 /home/aqua/.cargo/regi
stry/src/index.crates.io-1949cf8c6b5b557f/serde_core-1.0.228/build.rs --error-format=json
--json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-
type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="alloc"' --cfg 'feature=
"result"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature,
values("alloc", "default", "rc", "result", "std", "unstable"))' -C metadata=a210250565bcf
905 -C extra-filename=-f3a33c7aca6d46aa --out-dir /home/aqua/Documents/test-dir/target/de
bug/build/serde_core-f3a33c7aca6d46aa -L dependency=/home/aqua/Documents/test-dir/target/
debug/deps --cap-lints allow`
Running `rustc --crate-name winnow --edition=2021 /home/aqua/.cargo/registry/src/ind
ex.crates.io-1949cf8c6b5b557f/winnow-0.5.40/src/lib.rs --error-format=json --json=diagnos
tic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-type lib --emit
=dep-info,metadata,link -C embed-bitcode=no --cfg 'feature="alloc"' --cfg 'feature="defau
lt"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, value
s("alloc", "debug", "default", "simd", "std", "unstable-doc", "unstable-recover"))' -C me
tadata=11de6e654b3b4f3a -C extra-filename=-8a1543807abc8181 --out-dir /home/aqua/Document
s/test-dir/target/debug/deps -L dependency=/home/aqua/Documents/test-dir/target/debug/dep
s --cap-lints allow`
Compiling version_check v0.9.5
Running `rustc --crate-name version_check --edition=2015 /home/aqua/.cargo/registry/
src/index.crates.io-1949cf8c6b5b557f/version_check-0.9.5/src/lib.rs --error-format=json -
-json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-ty
pe lib --emit=dep-info,metadata,link -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' -
-check-cfg 'cfg(feature, values())' -C metadata=826b493f2075542d -C extra-filename=-f5626
261c317dc59 --out-dir /home/aqua/Documents/test-dir/target/debug/deps -L dependency=/home
/aqua/Documents/test-dir/target/debug/deps --cap-lints allow`
Compiling memchr v2.8.2
Running `rustc --crate-name memchr --edition=2021 /home/aqua/.cargo/registry/src/ind
ex.crates.io-1949cf8c6b5b557f/memchr-2.8.2/src/lib.rs --error-format=json --json=diagnost
ic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-type lib --emit=
dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="alloc"' --cfg '
feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(
feature, values("alloc", "core", "default", "libc", "logging", "rustc-dep-of-std", "std",
"use_std"))' -C metadata=f454175df36fd90f -C extra-filename=-5488aae1444e9a5d --out-dir
/home/aqua/Documents/test-dir/target/debug/deps -L dependency=/home/aqua/Documents/test-d
ir/target/debug/deps --cap-lints allow`
Compiling pin-project-lite v0.2.17
Running `rustc --crate-name pin_project_lite --edition=2018 /home/aqua/.cargo/regist
ry/src/index.crates.io-1949cf8c6b5b557f/pin-project-lite-0.2.17/src/lib.rs --error-format
=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --c
rate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 '--warn=cl
ippy::unused_trait_names' --warn=unreachable_pub --warn=unnameable_types --warn=unexpecte
d_cfgs '--warn=clippy::undocumented_unsafe_blocks' '--warn=clippy::transmute_undefined_re
pr' '--warn=clippy::trailing_empty_array' --warn=single_use_lifetimes --warn=rust_2018_id
ioms '--warn=clippy::pedantic' --warn=non_ascii_idents '--warn=clippy::inline_asm_x86_att
_syntax' --warn=improper_ctypes_definitions --warn=improper_ctypes --warn=deprecated_safe
'--warn=clippy::default_union_representation' '--warn=clippy::as_underscore' '--warn=cli
ppy::as_ptr_cast_mut' '--warn=clippy::all' '--allow=clippy::type_complexity' '--allow=cli
ppy::too_many_lines' '--allow=clippy::too_many_arguments' '--allow=clippy::struct_field_n
ames' '--allow=clippy::struct_excessive_bools' '--allow=clippy::single_match_else' '--all
ow=clippy::single_match' '--allow=clippy::similar_names' '--allow=clippy::range_plus_one'
'--allow=clippy::nonminimal_bool' '--allow=clippy::naive_bytecount' '--allow=clippy::mod
ule_name_repetitions' '--allow=clippy::missing_errors_doc' '--allow=clippy::manual_range_
contains' '--allow=clippy::manual_assert' '--allow=clippy::incompatible_msrv' '--allow=cl
ippy::float_cmp' '--allow=clippy::doc_markdown' '--allow=clippy::declare_interior_mutable
_const' '--allow=clippy::collapsible_match' '--allow=clippy::cast_lossless' '--allow=clip
py::borrow_as_ptr' '--allow=clippy::bool_assert_comparison' --check-cfg 'cfg(docsrs,test)
' --check-cfg 'cfg(feature, values())' -C metadata=cfc72e36a36c072a -C extra-filename=-84
104c71dcf82ece --out-dir /home/aqua/Documents/test-dir/target/debug/deps -L dependency=/h
ome/aqua/Documents/test-dir/target/debug/deps --cap-lints allow`
Compiling once_cell v1.21.4
Running `rustc --crate-name once_cell --edition=2021 /home/aqua/.cargo/registry/src/
index.crates.io-1949cf8c6b5b557f/once_cell-1.21.4/src/lib.rs --error-format=json --json=d
iagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=89 --crate-type lib
--emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="alloc"'
--cfg 'feature="default"' --cfg 'feature="race"' --cfg 'feature="std"' --check-cfg 'cfg(d
ocsrs,test)' --check-cfg 'cfg(feature, values("alloc", "atomic-polyfill", "critical-secti
on", "default", "parking_lot", "portable-atomic", "race", "std", "unstable"))' -C metadat
a=d00c5ac6f74351b1 -C extra-filename=-56e2c5688d6fa4f6 --out-dir /home/aqua/Documents/tes
t-dir/target/debug/deps -L dependency=/home/aqua/Documents/test-dir/target/debug/deps --c
ap-lints allow`
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/home/aqua/Documents/test-dir/target/debug/build/quote-406fd56f69
b1ef5b/rustc6142Qy/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic"
"<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobjec
t-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*
,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,l
iblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib"
"-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/home/aqu
a/Documents/test-dir/target/debug/build/quote-406fd56f69b1ef5b/rustc6142Qy/raw-dylibs" "-
B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-fram
e-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o
" "/home/aqua/Documents/test-dir/target/debug/build/quote-406fd56f69b1ef5b/build_script_b
uild-406fd56f69b1ef5b" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: gcc: fatal error: cannot execute '/nix/store/qxaq7jz61a6zkr2mq49i0zvqip2m2jj8-g
cc-15.2.0/libexec/gcc/x86_64-unknown-linux-gnu/15.2.0/collect2': posix_spawn: Argument li
st too long
compilation terminated.
error: could not compile `quote` (build script) due to 1 previous error
Caused by:
process didn't exit successfully: `rustc --crate-name build_script_build --edition=2021
/home/aqua/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/quote-1.0.46/build.rs --
error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-
width=89 --crate-type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="defaul
t"' --cfg 'feature="proc-macro"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature,
values("default", "proc-macro"))' -C metadata=0401d04ec5a5500a -C extra-filename=-406fd5
6f69b1ef5b --out-dir /home/aqua/Documents/test-dir/target/debug/build/quote-406fd56f69b1e
f5b -L dependency=/home/aqua/Documents/test-dir/target/debug/deps --cap-lints allow` (exi
t status: 1)
warning: build failed, waiting for other jobs to finish...
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/home/aqua/Documents/test-dir/target/debug/build/serde_core-1b541
7c8220c8ed9/rustcXqlq5k/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bst
atic" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,lib
object-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_det
ect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwin
d-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.
rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/hom
e/aqua/Documents/test-dir/target/debug/build/serde_core-1b5417c8220c8ed9/rustcXqlq5k/raw-
dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl
,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gn
u/lib" "-o" "/home/aqua/Documents/test-dir/target/debug/build/serde_core-1b5417c8220c8ed9
/build_script_build-1b5417c8220c8ed9" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-
nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: gcc: fatal error: cannot execute '/nix/store/qxaq7jz61a6zkr2mq49i0zvqip2m2jj8-g
cc-15.2.0/libexec/gcc/x86_64-unknown-linux-gnu/15.2.0/collect2': posix_spawn: Argument li
st too long
compilation terminated.
error: could not compile `serde_core` (build script) due to 1 previous error
Caused by:
process didn't exit successfully: `rustc --crate-name build_script_build --edition=2021
/home/aqua/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_core-1.0.228/build
.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagn
ostic-width=89 --crate-type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="
result"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, v
alues("alloc", "default", "rc", "result", "std", "unstable"))' -C metadata=8c2c758b3b15bf
a1 -C extra-filename=-1b5417c8220c8ed9 --out-dir /home/aqua/Documents/test-dir/target/deb
ug/build/serde_core-1b5417c8220c8ed9 -L dependency=/home/aqua/Documents/test-dir/target/d
ebug/deps --cap-lints allow` (exit status: 1)
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/home/aqua/Documents/test-dir/target/debug/build/serde-c1aeda48f7
697429/rustcp6yApd/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic"
"<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobjec
t-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*
,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,l
iblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib"
"-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/home/aqu
a/Documents/test-dir/target/debug/build/serde-c1aeda48f7697429/rustcp6yApd/raw-dylibs" "-
B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-fram
e-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o
" "/home/aqua/Documents/test-dir/target/debug/build/serde-c1aeda48f7697429/build_script_b
uild-c1aeda48f7697429" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: gcc: fatal error: cannot execute '/nix/store/qxaq7jz61a6zkr2mq49i0zvqip2m2jj8-g
cc-15.2.0/libexec/gcc/x86_64-unknown-linux-gnu/15.2.0/collect2': posix_spawn: Argument li
st too long
compilation terminated.
error: could not compile `serde` (build script) due to 1 previous error
Caused by:
process didn't exit successfully: `rustc --crate-name build_script_build --edition=2021
/home/aqua/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.228/build.rs -
-error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic
-width=89 --crate-type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="defau
lt"' --cfg 'feature="derive"' --cfg 'feature="serde_derive"' --cfg 'feature="std"' --chec
k-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("alloc", "default", "derive", "
rc", "serde_derive", "std", "unstable"))' -C metadata=37e16a8f52f24ef6 -C extra-filename=
-c1aeda48f7697429 --out-dir /home/aqua/Documents/test-dir/target/debug/build/serde-c1aeda
48f7697429 -L dependency=/home/aqua/Documents/test-dir/target/debug/deps --cap-lints allo
w` (exit status: 1)
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/home/aqua/Documents/test-dir/target/debug/build/proc-macro2-ff5d
5cf45e3265f6/rustcK40kYi/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bs
tatic" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,li
bobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_de
tect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwi
nd-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}
.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/ho
me/aqua/Documents/test-dir/target/debug/build/proc-macro2-ff5d5cf45e3265f6/rustcK40kYi/ra
w-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-
Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-
gnu/lib" "-o" "/home/aqua/Documents/test-dir/target/debug/build/proc-macro2-ff5d5cf45e326
5f6/build_script_build-ff5d5cf45e3265f6" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now"
"-nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: gcc: fatal error: cannot execute '/nix/store/qxaq7jz61a6zkr2mq49i0zvqip2m2jj8-g
cc-15.2.0/libexec/gcc/x86_64-unknown-linux-gnu/15.2.0/collect2': posix_spawn: Argument li
st too long
compilation terminated.
error: could not compile `proc-macro2` (build script) due to 1 previous error
Caused by:
process didn't exit successfully: `rustc --crate-name build_script_build --edition=2021
/home/aqua/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.106/buil
d.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diag
nostic-width=89 --crate-type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature=
"default"' --cfg 'feature="proc-macro"' --cfg 'feature="span-locations"' --check-cfg 'cfg
(docsrs,test)' --check-cfg 'cfg(feature, values("default", "nightly", "proc-macro", "span
-locations"))' -C metadata=5f23d770570c6c6c -C extra-filename=-ff5d5cf45e3265f6 --out-dir
/home/aqua/Documents/test-dir/target/debug/build/proc-macro2-ff5d5cf45e3265f6 -L depende
ncy=/home/aqua/Documents/test-dir/target/debug/deps --cap-lints allow` (exit status: 1)
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/home/aqua/Documents/test-dir/target/debug/build/libc-7064b32ee34
5a353/rustc7Bdb0P/symbols.o" "<5 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic"
"<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject
-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,
libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,li
blibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib"
"-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/home/aqua
/Documents/test-dir/target/debug/build/libc-7064b32ee345a353/rustc7Bdb0P/raw-dylibs" "-B<
sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-
hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o"
"/home/aqua/Documents/test-dir/target/debug/build/libc-7064b32ee345a353/build_script_buil
d-7064b32ee345a353" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: gcc: fatal error: cannot execute '/nix/store/qxaq7jz61a6zkr2mq49i0zvqip2m2jj8-g
cc-15.2.0/libexec/gcc/x86_64-unknown-linux-gnu/15.2.0/collect2': posix_spawn: Argument li
st too long
compilation terminated.
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/home/aqua/Documents/test-dir/target/debug/build/serde_core-f3a33
c7aca6d46aa/rustcupfGGf/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bst
atic" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,lib
object-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_det
ect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwin
d-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.
rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/hom
e/aqua/Documents/test-dir/target/debug/build/serde_core-f3a33c7aca6d46aa/rustcupfGGf/raw-
dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl
,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gn
u/lib" "-o" "/home/aqua/Documents/test-dir/target/debug/build/serde_core-f3a33c7aca6d46aa
/build_script_build-f3a33c7aca6d46aa" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-
nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: gcc: fatal error: cannot execute '/nix/store/qxaq7jz61a6zkr2mq49i0zvqip2m2jj8-g
cc-15.2.0/libexec/gcc/x86_64-unknown-linux-gnu/15.2.0/collect2': posix_spawn: Argument li
st too long
compilation terminated.
error: could not compile `libc` (build script) due to 1 previous error
Caused by:
process didn't exit successfully: `rustc --crate-name build_script_build --edition=2021
/home/aqua/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.186/build.rs --
error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-
width=89 --crate-type bin --emit=dep-info,link -C embed-bitcode=no '--allow=clippy::used_
underscore_binding' --allow=unused_qualifications '--warn=clippy::unnecessary_semicolon'
'--allow=clippy::unnecessary_cast' '--allow=clippy::uninlined_format_args' '--warn=clippy
::ptr_as_ptr' '--allow=clippy::non_minimal_cfg' '--allow=clippy::missing_safety_doc' '--w
arn=clippy::map_unwrap_or' '--warn=clippy::manual_assert' '--allow=clippy::identity_op' '
--warn=clippy::explicit_iter_loop' '--allow=clippy::expl_impl_clone_on_copy' --cfg 'featu
re="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(featu
re, values("align", "const-extern-fn", "default", "extra_traits", "rustc-dep-of-std", "ru
stc-std-workspace-core", "std", "use_std"))' -C metadata=2814e0b620c9356f -C extra-filena
me=-7064b32ee345a353 --out-dir /home/aqua/Documents/test-dir/target/debug/build/libc-7064
b32ee345a353 -L dependency=/home/aqua/Documents/test-dir/target/debug/deps --cap-lints al
low` (exit status: 1)
error: could not compile `serde_core` (build script) due to 1 previous error
Caused by:
process didn't exit successfully: `rustc --crate-name build_script_build --edition=2021
/home/aqua/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_core-1.0.228/build
.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagn
ostic-width=89 --crate-type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="
alloc"' --cfg 'feature="result"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs,test)' --c
heck-cfg 'cfg(feature, values("alloc", "default", "rc", "result", "std", "unstable"))' -C
metadata=a210250565bcf905 -C extra-filename=-f3a33c7aca6d46aa --out-dir /home/aqua/Docum
ents/test-dir/target/debug/build/serde_core-f3a33c7aca6d46aa -L dependency=/home/aqua/Doc
uments/test-dir/target/debug/deps --cap-lints allow` (exit status: 1)
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/home/aqua/Documents/test-dir/target/debug/build/target-lexicon-3
8fa6f69837128cb/rustc0HWnWx/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,
-Bstatic" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*
,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd
_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libu
nwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins
-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "
/home/aqua/Documents/test-dir/target/debug/build/target-lexicon-38fa6f69837128cb/rustc0HW
nWx/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=l
ld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-
linux-gnu/lib" "-o" "/home/aqua/Documents/test-dir/target/debug/build/target-lexicon-38fa
6f69837128cb/build_script_build-38fa6f69837128cb" "-Wl,--gc-sections" "-pie" "-Wl,-z,relr
o,-z,now" "-nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: gcc: fatal error: cannot execute '/nix/store/qxaq7jz61a6zkr2mq49i0zvqip2m2jj8-g
cc-15.2.0/libexec/gcc/x86_64-unknown-linux-gnu/15.2.0/collect2': posix_spawn: Argument li
st too long
compilation terminated.
error: could not compile `target-lexicon` (build script) due to 1 previous error
Caused by:
process didn't exit successfully: `rustc --crate-name build_script_build --edition=2018
/home/aqua/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/target-lexicon-0.12.16/b
uild.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --d
iagnostic-width=89 --crate-type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'featu
re="default"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("arch_zkasm
", "default", "serde", "serde_support", "std"))' -C metadata=83c87a4bc23e1093 -C extra-fi
lename=-38fa6f69837128cb --out-dir /home/aqua/Documents/test-dir/target/debug/build/targe
t-lexicon-38fa6f69837128cb -L dependency=/home/aqua/Documents/test-dir/target/debug/deps
--cap-lints allow` (exit status: 1)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the devenv.nix and devenv.yaml configuration, then reproduce the issue using dx init followed by cargo build and dx serve --desktop. Inspect the rustc/linker invocation shown in the backtrace and compare the failing conditions. Done means the cause of the argument-length failure is identified and the reported reproduction no longer fails or has a documented limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100