Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CAN'T INSTALL ANY RUST PACKAGE with dev-lang/rust
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
5eggs
n00b
n00b


Joined: 30 Mar 2025
Posts: 2

PostPosted: Sun Mar 30, 2025 2:33 am    Post subject: CAN'T INSTALL ANY RUST PACKAGE with dev-lang/rust Reply with quote

dev-lang/rust-bin is working fine, but dev-lang/rust always gives a linker error, for example trying to emerge sys-apps/fd gives this errors: http://0x0.st/8ekw.log, I also get the same error for app-misc/yazi and other rust programs.

If I try to compile the same programs by hand it gives the same error but if I do:
RUSTFLAGS="-Clinker=clang" cargo build
it compiles.

So I tried to add RUSTFLAGS="-Clinker=clang" to make.conf but that doesn't do anything I keep getting the same error.

I'am on the stable profile and I have rust installed with system-llvm USE flag. First I have tried to unmask the system-llvm for rust-1.84.1, but after getting the previous error I thought the issue was because I unmasked that useflag, So what i have tried is adding ~amd64 for rust and rust-common where the USE flag is not masked but the error didn't disappear.

emerge --info: http://0x0.st/8edZ.bin
emerge --info =sys-apps/fd-10.2.0-r1::gentoo: http://0x0.st/8ek3.0-r1::ge
make.conf: http://0x0.st/8edq.conf
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2247

PostPosted: Sun Mar 30, 2025 5:23 pm    Post subject: Reply with quote

See bug 951740. It should be fixed after you sync.
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