View previous topic :: View next topic |
Author |
Message |
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2266 Location: $TERM
|
Posted: Sun Sep 22, 2024 2:40 pm Post subject: [solved]clang -dumpmachine = unknown |
|
|
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 |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2266 Location: $TERM
|
Posted: Mon Sep 23, 2024 3:27 am Post subject: |
|
|
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 |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2266 Location: $TERM
|
Posted: Mon Sep 23, 2024 6:02 am Post subject: |
|
|
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 |
|
|
|