Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2022 00:21:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        haskell@FreeBSD.org
Subject:   [Bug 264192] lang/ghc: poudriere based build used odd mix of devel/llvm10 and system toolchain
Message-ID:  <bug-264192-16154-ImaZCPaQzL@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-264192-16154@https.bugs.freebsd.org/bugzilla/>
References:  <bug-264192-16154@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264192

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

Confirming the aarch64 chroot to armv7 shows a 2 GiByte limitation
instead what direct armv7 shows . . .

On a Cortex-A72's based system (UFS), chroot'd into an armv7
context:

# time -l /usr/local/llvm12/bin/llc -O1 -enable-tbaa -relocation-model=3Dst=
atic
-mcpu=3Dgeneric -mattr=3D+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=3Dstatic -mcpu=3Dgeneric -mattr=3D+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 '@"rRIA_info$d=
ef"'
#0 0x422ac0a0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/usr/local/llvm12/bin/../lib/libLLVM-12.so+0x20ac0a0)
#1 0x422a9d1c llvm::sys::RunSignalHandlers()
(/usr/local/llvm12/bin/../lib/libLLVM-12.so+0x20a9d1c)
#2 0x422acd08 (/usr/local/llvm12/bin/../lib/libLLVM-12.so+0x20acd08)
#3 0x400eaed8 handle_signal /usr/main-src/lib/libthr/thread/thr_sig.c:0:3
time: command terminated abnormally
      228.25 real       214.27 user        11.41 sys
   1927128  maximum resident set size
        43  average shared memory size
         7  average unshared data size
       238  average unshared stack size
   1036170  page reclaims
       134  page faults
         0  swaps
     17472  block input operations
     88235  block output operations
         0  messages sent
         0  messages received
         1  signals received
    136543  voluntary context switches
      3185  involuntary context switches
Abort trap

Just before/during the process crash top showed just a little below
2 GiBytes (2046 MiBytes) for SIZE for the llc process, never showing
more than 2048 MiBytes:

  PID   JID USERNAME    PRI NICE     SIZE       RES STATE    C   TIME     C=
PU
COMMAND
 1118     0 root         52    0   2046Mi    1880Mi CPU9     9   3:38  85.0=
0%
/usr/local/llvm12/bin/llc -O1 -enable-tbaa -relocation-model=3Dstatic
-mcpu=3Dgeneric -mattr=3D+strict-align ghc2478_0/ghc_6.bc
 1117     0 root         21    0   4352Ki    1596Ki wait    12   0:00   0.0=
0%
time -l /usr/local/llvm12/bin/llc -O1 -enable-tbaa -relocation-model=3Dstat=
ic
-mcpu=3Dgeneric -mattr=3D+strict-align ghc2478_0/

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264192-16154-ImaZCPaQzL>