Darwin/powerpc fails to build 1.0.55 release

Bug #924462 reported by Alex Hansen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Won't Fix
Medium
Jim Wise

Bug Description

When building the sbcl-1.0.55 release on darwin9/powerpc, I get the same error as was reported in https://bugs.launchpad.net/sbcl/+bug/904818 :

gcc -g -mmacosx-version-min=10.4 -o sbcl alloc.o backtrace.o breakpoint.o coreparse.o dynbind.o funcall.o gc-common.o globals.o interr.o interrupt.o largefile.o monitor.o os-common.o parse.o print.o purify.o pthread-futex.o regnames.o run-program.o runtime.o save.o search.o thread.o time.o util.o validate.o vars.o wrap.o ppc-arch.o bsd-os.o darwin-os.o ppc-darwin-os.o gencgc.o ppc-assem.o ldso-stubs.o -lSystem -lc -lm
Undefined symbols:
  "_darwin_init", referenced from:
      _os_init in bsd-os.o
ld: symbol(s) not found

And, indeed, when I look in the build directory, the symbol isn't defined:

$ nm -o sbcl-1.0.55/src/runtime/*.o | grep _darwin_init
sbcl-1.0.55/src/runtime/bsd-os.o: U _darwin_init

Based on that, I assumed that LISP_FEATURE_MACH_EXCEPTION_HANDLER wasn't getting set, so I inserted

#define LISP_FEATURE_MACH_EXCEPTION_HANDLER

into src/runtime/darwin-os.h (after "#include <sys/cdefs.h>"). With that change, the symbol does get defined:

$ nm -o sbcl-1.0.55/src/runtime/*.o | grep _darwin_init
sbcl-1.0.55/src/runtime/bsd-os.o: U _darwin_init
sbcl-1.0.55/src/runtime/darwin-os.o: 00000300 T _darwin_init

and the build proceeds further. However, it ultimately fails in the next stage:

[building initial core file in "output/cold-sbcl.core":
writing 4096 bytes [1 page] from #<SB!FASL::GSPACE :READ-ONLY>
writing 4096 bytes [1 page] from #<SB!FASL::GSPACE :STATIC>
writing 31223808 bytes [7623 pages] from #<SB!FASL::GSPACE :DYNAMIC>
/(DESCRIPTOR-BITS INITIAL-FUN)=#X11CB59ED
done]
* //testing for consistency of first and second GENESIS passes
//header files match between first and second GENESIS -- good

real 14m50.620s
user 9m36.281s
sys 1m36.295s
//entering make-target-2.sh
//doing warm init - compilation phase
This is SBCL 1.0.55, 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.
fatal error encountered in SBCL pid 15018:
Unhandled memory fault. Exiting.

Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb>

---

I'm bootstrapping against the official sbcl-1.0.47-powerpc-darwin-binary .

$ uname -a
Darwin Granny-Smith.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh

I'm using Apple's gcc-4.0 compiler for the C stuff:

$ gcc --version
powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493)

Revision history for this message
Jim Wise (jwise) wrote :

I'll check if these were left out of the darwin/x86 build for 1.0.55, and make sure they're included in 1.0.56.

Changed in sbcl:
assignee: nobody → Jim Wise (jwise)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Douglas Katzman (dougk) wrote :

this is too old to deal with

Changed in sbcl:
status: Triaged → Incomplete
Stas Boukarev (stassats)
Changed in sbcl:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.