Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]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: 2266
Location: $TERM

PostPosted: Sun Sep 22, 2024 2:40 pm    Post subject: [solved]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


Last edited by dE_logics on Mon Sep 23, 2024 7:15 am; edited 1 time in total
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


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

PostPosted: Mon Sep 23, 2024 3:27 am    Post subject: Reply with quote

This is actually a problem with llvm

llc --version
LLVM (http://llvm.org/):
LLVM version 18.1.8
Optimized build.
Default target:
Host CPU: znver1

Registered Targets:
(none)
_________________
My blog
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


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

PostPosted: Mon Sep 23, 2024 6:02 am    Post subject: Reply with quote

It seems LLVM_TARGETS= was interfering, but I couldn't reproduce the 'bug' therefore it cannot be filed. It has to be unset to get things to work (even though it has no real implications).
_________________
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