Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
clang -dumpmachine = unknown
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
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2262
Location: $TERM

PostPosted: Sun Sep 22, 2024 2:40 pm    Post subject: clang -dumpmachine = unknown Reply with quote

I'm migrating an existing Gentoo install by placing it in /usr/X and rebuilding all the package using ROOT and SYSROOT and seldomly with crossdev. However after a complete rebuild /usr/X's clang complaints --
Code:
clang -dumpmachine
unknown

in or out of chroot.

clang is not my system compiler, but the thing is dev-lang/spidermonkey and firefox is not compiling because of this 'unknown' issue when I try to built it in chroot in /usr/X (using SYSROOT and ROOT is not an option because this is llvm).
Code:
/usr/lib/llvm/18/bin/x86_64-pc-linux-gnu-clang-18 /tmp/portage/dev-lang/spidermonkey-115.13.0/temp/test-flag.c -E
error: unknown target triple 'unknown'


I tried re-compiling clang in chroot, but it gives the same result.

Odd thing is I'm trying all this on a machine who's Gentoo install is itself migrated this way. At that time it worked fine!!
_________________
My blog
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