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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 28 Aug 2022 21:31:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264192

--- Comment #51 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Mark Millard from comment #50)

The "time -l" results:

# time -l /usr/local/llvm12/bin/llc -O1 -enable-tbaa -relocation-model=static
-mcpu=generic -mattr=+strict-align ghc2478_0/ghc_6.bc -o ghc2478_0/ghc_7.lm_s
LLVM ERROR: out of memory
Allocation failed
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: /usr/local/llvm12/bin/llc -O1 -enable-tbaa
-relocation-model=static -mcpu=generic -mattr=+strict-align ghc2478_0/ghc_6.bc
-o ghc2478_0/ghc_7.lm_s
1.      Running pass 'Function Pass Manager' on module 'ghc2478_0/ghc_6.bc'.
2.      Running pass 'ARM Instruction Selection' on function
'@"clp2g_info$def"'
#0 0x221ac0a0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/usr/local/llvm12/bin/../lib/libLLVM-12.so+0x20ac0a0)
#1 0x221a9d1c llvm::sys::RunSignalHandlers()
(/usr/local/llvm12/bin/../lib/libLLVM-12.so+0x20a9d1c)
#2 0x221acd08 (/usr/local/llvm12/bin/../lib/libLLVM-12.so+0x20acd08)
#3 0x24d2eed8 handle_signal /usr/main-src/lib/libthr/thread/thr_sig.c:0:3
time: command terminated abnormally
     1718.54 real      1364.81 user        52.56 sys
   1789944  maximum resident set size
        43  average shared memory size
         7  average unshared data size
       239  average unshared stack size
   1215088  page reclaims
     50009  page faults
         0  swaps
     27735  block input operations
    123535  block output operations
         0  messages sent
         0  messages received
         1  signals received
    209286  voluntary context switches
     16725  involuntary context switches
Abort trap

And, shortly before the failure:

Mem: 1440Mi Active, 217184Ki Inact, 83552Ki Laundry, 186812Ki Wired, 107716Ki
Buf, 45980Ki Free, 1674Mi MaxObsActive, 189672Ki MaxObsWired, 1918Mi
MaxObs(Act+Wir+Lndry)
Swap: 3072Mi Total, 1029Mi Used, 2043Mi Free, 33% Inuse, 1029Mi MaxObsUsed,
2724Mi MaxObs(Act+Lndry+SwapUsed), 2902Mi MaxObs(Act+Wir+Lndry+SwapUsed)

  PID   JID USERNAME    PRI NICE     SIZE       RES STATE    C   TIME     CPU
COMMAND
 1406     0 root         24    0   2489Mi    1684Mi CPU1     1  23:34   8.27%
/usr/local/llvm12/bin/llc -O1 -enable-tbaa -relocation-model=static
-mcpu=generic -mattr=+strict-align ghc2478_0/ghc_6.bc

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