On Fri, Nov 24, 2023 at 03:23:46PM +0100, Tobias Heider wrote: > On Fri, Nov 24, 2023 at 08:36:03AM +0100, Sebastien Marie wrote: > > Tobias Heider <tobias.hei...@stusta.de> writes: > > > > > On Thu, Nov 23, 2023 at 11:02:22AM +0100, Sebastien Marie wrote: > > >> gkoeh...@openbsd.org writes: > > >> > http://build-failures.rhaalovely.net/powerpc/2023-10-31/lang/sbcl.log > > >> > > >> Could someone test the following patch for lang/sbcl on powerpc ? > > >> If it works, I will push it upstream. > > > > > > This fixes the first problem but after that I ran into an undefined > > > symbol current_thread error. > > > > > > It looks like arm64 already handles this correctly in arm64-assem.S:114 > > > but a simple s/current_thread/__emutls_v.current_thread/ was not enough > > > since it caused runtime errors later on. > > > > oh. > > > > direct TLS seems to not be expected for powerpc: Linux code enable it > > only for some archs (and ppc isn't in the list). So follow the same way. > > > > Does it correct the problem ? (and does #include "validate.h" is still > > need ?) > > > > Thanks. > > > > Sadly this seems to give me the same error that I got with > __emutls_v.current_thread: > > //doing warm init - compilation phase > This is SBCL 2.3.10.openbsd.sbcl-2.3.10, 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 501 0 3505 0 3591 > 0 0 0 0.4 30986640 2000000 3505 0 0.0000 > Tot 0 0 0 0 0 501 0 3505 0 3591 > 0 0 0 0.4 30986640 [5.8% of 536870912 max] > fatal error encountered in SBCL pid 94032 pthread 0xc50e1d94: > maximum interrupt nesting depth (8) exceeded > > Welcome to LDB, a low-level debugger for the Lisp runtime environment. > ldb> //doing warm init - load and dump phase > fatal error encountered in SBCL pid 52269 pthread 0xc040cd94: > maximum interrupt nesting depth (8) exceeded > > Welcome to LDB, a low-level debugger for the Lisp runtime environment. > ldb> [1] + Stopped (tty input) ./src/runtime/sbcl --core > output/cold-sbcl.core > [2] - Stopped (tty input) ./src/runtime/sbcl --noinform --core output/col > 0m00.51s real 0m00.01s user 0m00.01s system > //entering make-target-contrib.sh >
Just realized that that was a lie. I was looking at the wrong tmux pane... Your fix seems to work. Thank you!