[MacPorts] #65188: sbcl fails to build on PPC: fatal error encountered in SBCL pid 16153: dynamic space too small for core
MacPorts
noreply at macports.org
Tue May 9 10:50:13 UTC 2023
#65188: sbcl fails to build on PPC: fatal error encountered in SBCL pid 16153:
dynamic space too small for core
---------------------------+----------------------
Reporter: barracuda156 | Owner: easye
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: powerpc
Port: sbcl |
---------------------------+----------------------
Comment (by barracuda156):
Replying to [comment:33 barracuda156]:
> I have built `sbcl` 2.3.0 up to this point, and there it freezes:
> {{{
> ; SB-Loader: (166+3670) methods/other
> SB-XC:*FEATURES* =
> (:PPC :GENCGC :ALIEN-CALLBACKS :ANSI-CL :ANSI-COMPLIANT-LOAD-TRUENAME
> :BIG-ENDIAN :BSD :COMMON-LISP :COMPARE-AND-SWAP-VOPS :DARWIN
> :IEEE-FLOATING-POINT :MACH-O :OS-PROVIDES-BLKSIZE-T :OS-PROVIDES-DLADDR
> :OS-PROVIDES-DLOPEN :OS-PROVIDES-SUSECONDS-T :PACKAGE-LOCAL-NICKNAMES
:SB-DOC
> :SB-EVAL :SB-LDB :SB-PACKAGE-LOCKS :SB-SOURCE-LOCATIONS :SB-UNICODE
:SBCL
> :UNIX)
> [building initial core file in "output/cold-sbcl.core":
> writing 4096 bytes [1 page] from #<SB-FASL::GSPACE @#x4100000 :STATIC>
> writing 28422144 bytes [6939 pages] from #<SB-FASL::GSPACE @#x10000000
:DYNAMIC>
> writing 0 bytes [0 pages] from #<SB-FASL::GSPACE @#x4000000 :READ-ONLY>
> movable dynamic space: 534 + 3383 + 3022 cons/code/mixed pages
> /INITIAL-FUN=#X119FC1B5
> done]
> //testing for consistency of first and second GENESIS passes
> //header files match between first and second GENESIS -- good
>
> real 9m16.123s
> user 7m7.247s
> sys 1m22.682s
> //entering make-target-2.sh
> //doing warm init - compilation phase
> This is SBCL 2.3.0, an implementation of ANSI Common Lisp.
> More information about SBCL is available at <http://www.sbcl.org/>.
>
> SBCL is free software, provided as is, with absolutely no warranty.
> It is mostly in the public domain; some portions are provided under
> BSD-style licenses. See the CREDITS and COPYING files in the
> distribution for more information.
> Initial page table:
> Immobile Object Counts
> Gen layout fdefn symbol code Boxed Cons Raw Code SmMix
Mixed LgRaw LgCode LgMix Waste% Alloc Trig Dirty GCs Mem-
age
> 6 0 0 0 0 0 534 0 3383 0
3022 0 0 0 0.5 28271184 2000000 3383 0
0.0000
> Tot 0 0 0 0 0 534 0 3383 0
3022 0 0 0 0.5 28271184 [5.3% of 536870912 max]
>
> }}}
>
> Why could that be?
{{{
36-55% sudo gdb-apple attach 82530
Password:
GNU gdb 6.3.50.20050815-cvs (Wed Apr 13 04:55:50 UTC 2022)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "--host=powerpc-apple-darwin10.0.0d2
--target="...File 'attach' does not exist or is not a regular file.
/Users/svacchanda/82530: No such file or directory
Attaching to process 82530.
Reading symbols for shared libraries . done
Reading symbols for shared libraries ... done
0xbffff410 in ?? ()
(gdb) next
Cannot find bounds of current function
(gdb) where
#0 0xbffff410 in ?? ()
#1 0x0002cc78 in _call_into_c () at ppc-assem.S:531
#2 0x000012e4 in ?? ()
#3 0x8fe3342c in __dyld__ZN4dyld8gLogAPIsE ()
#4 0x8fe0c558 in __dyld_dlsym ()
#5 0x0001a484 in create_main_lisp_thread (function=1110249391) at
thread.c:375
#6 0x0001708c in initialize_lisp (argc=<value temporarily unavailable,
due to optimizations>, argv=0xc24bc195, envp=<value temporarily
unavailable, due to optimizations>) at runtime.c:813
#7 0x00034f7c in main (argc=<value temporarily unavailable, due to
optimizations>, argv=<value temporarily unavailable, due to
optimizations>, envp=<value temporarily unavailable, due to
optimizations>) at main.c:6
(gdb) disassemble $pc-0x10 $pc+0x10
Dump of assembler code from 0xbffff400 to 0xbffff420:
0xbffff400: .long 0x35dc4
0xbffff404: .long 0x35dc0
0xbffff408: stmw r31,-2220(r31)
0xbffff40c: lbzu r31,14012(r3)
0xbffff410: .long 0x11a54830
0xbffff414: .long 0x35dc0
0xbffff418: stmw r31,-2220(r31)
0xbffff41c: lbzu r31,14012(r3)
End of assembler dump.
(gdb) info registers
r0 0x0 0
r1 0xbffff390 3221222288
r2 0x364fc 222460
r3 0x2 2
r4 0x11a54830 296044592
r5 0xd 13
r6 0x0 0
r7 0x4000030 67108912
r8 0x11a54830 296044592
r9 0x11a54830 296044592
r10 0x34 52
r11 0x0 0
r12 0xbffff410 3221222416
r13 0x330 816
r14 0x1200008 18874376
r15 0x1000108 16777480
r16 0x1000128 16777512
r17 0x1400000 20971520
r18 0x4100033 68157491
r19 0x10816007 276914183
r20 0x0 0
r21 0x34 52
r22 0x10000e8 16777448
r23 0x108161ff 276914687
r24 0x8 8
r25 0x11a5482f 296044591
r26 0x0 0
r27 0x34 52
r28 0xbffff3f0 3221222384
r29 0x11a5482f 296044591
r30 0x4100033 68157491
r31 0x10816330 276914992
pc 0xbffff410 3221222416
ps 0x100000000008d030 1152921504607424560
cr 0x24002200 603988480
lr 0x2cc78 183416
ctr 0xbffff410 3221222416
xer 0x0 0
mq 0x0 0
fpscr 0x82002000 2181046272
vscr 0x10000 65536
vrsave 0x0 0
}}}
--
Ticket URL: <https://trac.macports.org/ticket/65188#comment:36>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list