Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
llvm fails to emerge when updating world
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
Shadow_Fury
Apprentice
Apprentice


Joined: 20 Apr 2021
Posts: 167
Location: 11.435765792823453, 143.05926743686274

PostPosted: Sun Oct 13, 2024 10:13 pm    Post subject: llvm fails to emerge when updating world Reply with quote

in progress LLVM based system.

i'm trying to install LLVM, but the ebuild fails.

a cursory glance shows this error in the build log:
Code:

/var/tmp/portage/sys-devel/llvm-19.1.1/work/llvm/lib/Target/AMDGPU/VOPCInstructions.td:2163:7: error: Record `V_CMP_F_U32_sdwa_vi' does not have a field named `OutOperandList'!

  def _sdwa_vi :


i'm stuck. help is appreciated.

emerge --info '=sys-devel/llvm-19.1.1::gentoo'
emerge -pqv '=sys-devel/llvm-19.1.1::gentoo':
Code:

[ebuild  NS   ] sys-devel/llvm-19.1.1 [17.0.6] USE="libffi verify-sig* xml* zstd -binutils-plugin -debug -debuginfod -doc -exegesis -libedit -test -z3 (-ncurses%*) (-xar%)" ABI_X86="(32) (64) (-x32)" LLVM_TARGETS="(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (LoongArch) (MSP430) (Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86) (XCore) -ARC -CSKY -DirectX -M68k -SPIRV -Xtensa"
[ebuild  NS   ] sys-devel/llvm-toolchain-symlinks-19 [17-r1] USE="native-symlinks -multilib-symlinks"

/var/tmp/portage/sys-devel/llvm-19.1.1/temp/build.log
Back to top
View user's profile Send private message
Shadow_Fury
Apprentice
Apprentice


Joined: 20 Apr 2021
Posts: 167
Location: 11.435765792823453, 143.05926743686274

PostPosted: Tue Oct 15, 2024 12:41 am    Post subject: Reply with quote

some updates:

i can't get ANY version of LLVM to compile correctly.

i've tried disabling all of my custom CFLAGS, that didn't work, and compiling with GCC gave this in the build log:

Code:

/usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/allocator.h:222:7: internal compiler error: Segmentation fault
  222 |       operator!=(const allocator&, const allocator&) _GLIBCXX_NOTHROW
      |       ^~~~~~~~
0x1c7a5bb internal_error(char const*, ...)
        ???:0
0x96c547 ggc_internal_alloc(unsigned long, void (*)(void*), unsigned long, unsigned long)
        ???:0
0xb19b60 ggc_realloc(void*, unsigned long)
        ???:0
0x6fcbe5 void va_gc::reserve<tree_node*, va_gc>(vec<tree_node*, va_gc, vl_embed>*&, unsigned int, bool)
        ???:0
0x7f7d56 pushdecl(tree_node*, bool)
        ???:0
0x88b1aa instantiate_class_template(tree_node*)
        ???:0
0x8c67bb complete_type(tree_node*)
        ???:0
0x8c6851 complete_type_or_maybe_complain(tree_node*, tree_node*, int)
        ???:0
0x86d1f7 tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x87c0f8 tsubst_template_args(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x88a1f6 instantiate_class_template(tree_node*)
        ???:0
0x8c67bb complete_type(tree_node*)
        ???:0
0x8c693f complete_type_or_else(tree_node*, tree_node*)
        ???:0
0x76fed9 xref_basetypes(tree_node*, tree_node*)
        ???:0
0x88a0fa instantiate_class_template(tree_node*)
        ???:0
0x8c67bb complete_type(tree_node*)
        ???:0
0x8c6851 complete_type_or_maybe_complain(tree_node*, tree_node*, int)
        ???:0
0x86d1f7 tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x87c0f8 tsubst_template_args(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x88a1f6 instantiate_class_template(tree_node*)
        ???:0


similar errors seem to occur regardless of version, even trying to re-compile the currently installed version results in similar errors.

l have NO idea where to go from here.

advice is greatly appreciated.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


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

PostPosted: Tue Oct 15, 2024 12:53 am    Post subject: Reply with quote

dmesg report any oomkiller reports?

memtest86+ report any issues with your RAM?

Recently I've been having problems with OOM with llvm but it was due to really running out of RAM, but I can't see your 32GiB being the same problem, though still worth to ask...
_________________
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
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 339

PostPosted: Tue Oct 15, 2024 6:04 pm    Post subject: Reply with quote

Making a compiler crash usually is the result of a compiler bug.
That's why both clang and gcc print the directions for submitting a bug report.
However, it's weird that both gcc and clang are crashing.

Anything in dmesg? Is your RAM operating correctly?
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