[Bug 264192] lang/ghc: poudriere based build used odd mix of devel/llvm10 and system toolchain

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 26 May 2022 20:38:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264192

--- Comment #7 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Gleb Popov from comment #6)

I assume the poudriere jail got it via:

# poudriere jail -jmain-CA7-bulk_a -i
Jail name:         main-CA7-bulk_a
Jail version:      14.0-CURRENT
Jail arch:         arm.armv7
Jail method:       null
Jail mount:        /usr/obj/DESTDIRs/main-CA7-poud-bulk_a
Jail fs:           
Jail updated:      2021-12-04 14:54:10
Jail pkgbase:      disabled

# chroot /usr/obj/DESTDIRs/main-CA7-poud-bulk_a/
# which llc
/usr/bin/llc


Is there anything better to looks at under:

/wrkdirs/usr/ports/lang/ghc/work/

from the -w ?


For reference, the log around the later failure looks like:

. . .
You are using an unsupported version of LLVM!
Currently only 9 to 13 is supported. System LLVM version: 14.0.3
We will try though...
  HC [stage 1] compiler/stage2/build/CmmLayoutStack.o
  HC [stage 1] compiler/stage2/build/GHC/StgToCmm/Prim.o
You are using an unsupported version of LLVM!
Currently only 9 to 13 is supported. System LLVM version: 14.0.3
We will try though...
You are using an unsupported version of LLVM!
Currently only 9 to 13 is supported. System LLVM version: 14.0.3
We will try though...
LLVM ERROR: out of memory
Allocation failed
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the
crash backtrace.
Stack dump:
0.      Program arguments: llc -O2 -enable-tbaa -relocation-model=static
-mcpu=generic -mattr=+strict-align /tmp/ghc22572_0/ghc_6.bc -o
/tmp/ghc22572_0/ghc_7.lm_s
1.      Running pass 'Function Pass Manager' on module
'/tmp/ghc22572_0/ghc_6.bc'.
2.      Running pass 'ARM Instruction Selection' on function
'@"g3ky7_info$def"'
LLVM ERROR: out of memory
Allocation failed
`llc' failed in phase `LLVM Compiler'. (Exit code: -6)
gmake[2]: *** [compiler/ghc.mk:308: compiler/stage2/build/GHC/Hs/Instances.p_o]
Error 1
gmake[2]: *** Waiting for unfinished jobs....


However, watching with top showed llc  . I do not remember ever seeing a llc10
at any stage.

But I was trying to report the early activity that was (only sometimes)
reporting the messages about LLVM version 14.0.3 being in use. That  might
invalidate later activity.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.