Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rustc -Clinker-plugin-lto , mold fatal
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
User7z
n00b
n00b


Joined: 01 Jul 2024
Posts: 16

PostPosted: Sun Sep 15, 2024 8:03 pm    Post subject: rustc -Clinker-plugin-lto , mold fatal Reply with quote

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 ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum