On Thu, Aug 10, 2023 at 07:46:58AM -0400, Douglas Katzman wrote:
The build fails the same way with or without :gcc-tls.
I am building sbcl with:
- :gcc-tls enable (see patch in previous mail)
- src/runtime/Config.x86-64-bsd change to enable LISP_FEATURE_MARK_REGION_GC
path + /usr/obj/sbcl/sbcl
blob - c2d3b07c8e73c765caebaec8a58ec8022e0d6c36
file + src/runtime/Config.x86-64-bsd
--- src/runtime/Config.x86-64-bsd
+++ src/runtime/Config.x86-64-bsd
@@ -27,6 +27,10 @@ else
ifdef LISP_FEATURE_IMMOBILE_SPACE
GC_SRC = fullcgc.c gencgc.c traceroot.c immobile-space.c elf.c
+else ifdef LISP_FEATURE_MARK_REGION_GC
+ # The parallelized mark-region collector can perform a full GC,
+ # but can't use fullcgc to perform heap->arena pointer detection.
+ GC_SRC = fullcgc.c pmrgc.c traceroot.c mark-region.c incremental-compact.c gc-thread-pool.c
else
GC_SRC = fullcgc.c gencgc.c traceroot.c
endif
- using sbcl HEAD (+few patches for cleaning cc warning) as compiler
The build is done using:
$ sh ./make.sh \
--prefix="${INSTALL_DIR}" \
--xc-host='sbcl --disable-debugger --no-sysinit --no-userinit' \
--with-sb-core-compression \
--with-sb-xref-for-internals \
--with-sb-thread \
\
--without-gencgc \
--with-mark-region-gc
I attached the full build log (gzipped).
it fails in make-target-2.sh:
//entering make-target-2.sh
//doing warm init - compilation phase
This is SBCL 2.3.7.22817.gc.3.9337bf47, 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 149 0 449 0 662 0 8 71 0.6 43619424 2000000 0 0 0.0000
Tot 0 0 0 0 0 149 0 449 0 662 0 8 71 0.6 43619424 [5.4% of 805240832 max]
CORRUPTION WARNING in SBCL pid 54636 pthread 0x3625fcfe728:
Memory fault at 0xffffffffe5ef80a5 (pc=0x35f98833ad4, fp=0x361bc4efaa0, sp=0x361bc4efa20) pthread 0x3625fcfe728
The integrity of this image is possibly compromised.
Exiting.
Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb> //doing warm init - load and dump phase
CORRUPTION WARNING in SBCL pid 51107 pthread 0x317f2885728:
Memory fault at 0x312320a5 (pc=0x3150641ead4, fp=0x31717b47aa0, sp=0x31717b47a20) pthread 0x317f2885728
The integrity of this image is possibly compromised.
Exiting.
Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb> [2] + Stopped (tty input) ./src/runtime/sbcl --noinform --core output/col
[1] - Stopped (tty input) ./src/runtime/sbcl --core output/cold-sbcl.core
0m00.02s real 0m00.00s user 0m00.00s system
--
Sebastien Marie