User7z n00b
Joined: 01 Jul 2024 Posts: 16
|
Posted: Sun Sep 15, 2024 8:03 pm Post subject: rustc -Clinker-plugin-lto , mold fatal |
|
|
mold: fatal: /var/tmp/portage/dev-util/bindgen-0.70.1/work/rust-bindgen-0.70.1/target/x86_64-unknown-linux-gnu/release/deps/bindgen-46fd42290229b24f.bindgen.15e13fc049958349-cgu.00.rcgu.o: not claimed by the LTO plugin; please make sure you are using the same compiler of the same version for all object files
collect2: error: ld returned 1 exit status
here are my flags on a regular gcc profile :
COMMON_FLAGS="-march=native -O3 -pipe -flto=auto ${WARNING_FLAGS} -fno-semantic-interposition"
LDFLAGS="${LDFLAGS} -fuse-ld=mold -Wl,--thread-count=12"
RUSTFLAGS="-Ctarget-cpu=native -Copt-level=3 -Clinker-plugin-lto"
cant mold be used with -Clinker-plugin-lto ? , even -Clink-arg=$LDFLAGS or -fuse-ld=mold , give the same probleme.
one other question is it true mold has a --lto-O3 flag or any lto related one.
can i consider mold for a better lto ? |
|