Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
clang-18.1.8 error adding symbols: file in wrong format
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
powerN00b
n00b
n00b


Joined: 11 Jul 2024
Posts: 4

PostPosted: Wed Oct 02, 2024 2:39 am    Post subject: clang-18.1.8 error adding symbols: file in wrong format Reply with quote

Can't build clang on x86/23.0/i686/desktop:
Code:
/usr/lib/llvm/18/lib/libLLVM.so.18.1 && :
/usr/lib/gcc/i686-pc-linux-gnu/13/../../../../i686-pc-linux-gnu/bin/ld: lib/libclangAST.a: error adding symbols: file in wrong
 format
collect2: error: ld returned 1 exit status


emerge --info
https://0x0.st/Xg6w.txt

emerge -pqv-clang-18.1.8
https://0x0.st/Xg6y.8.txt

sys-devel:clang-18.1.8:20241001-163856.log
https://0x0.st/Xg6t.log

Looks like a bug. :roll: Any suggestion?
Back to top
View user's profile Send private message
powerN00b
n00b
n00b


Joined: 11 Jul 2024
Posts: 4

PostPosted: Thu Oct 03, 2024 1:31 pm    Post subject: Reply with quote

Turned out clang cant be build with LTO. I'm going to write a bug report.
upd: I forgot to turn on swap so it could be just a OOM, i see "killed signal terminated" in my logs...
i will try to build clang with lto and ~x86 before making any reports :wink:
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9783
Location: almost Mile High in the USA

PostPosted: Thu Oct 03, 2024 2:30 pm    Post subject: Reply with quote

I was suspecting possible OOM without running into the oom-killer but it looks like you did run out of ram without swap enabled.

Bunch of us are seeing inability to link clang on x86 machines: https://bugs.gentoo.org/932815
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
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