Steel Bank Common Lisp

Darwin/ppc fails to build 1.0.54.96-6753b55

Reported by Bruce O'Neel on 2011-12-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Undecided
Unassigned

Bug Description

Darwin/ppc fails to build 1.0.54.96

gcc -g -Wall -O2 -fdollars-in-identifiers -mmacosx-version-min=10.4 -I. -DSBCL_PREFIX=\"'/usr/local'\" -no-cpp-precomp -c -o ldso-stubs.o ldso-stubs.S
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
collect2: ld returned 1 exit status
make: *** [sbcl] Error 1

A possible patch is:

diff --git a/src/runtime/darwin-os.c b/src/runtime/darwin-os.c
index df53e98..d903b48 100644
--- a/src/runtime/darwin-os.c
+++ b/src/runtime/darwin-os.c
@@ -165,12 +165,15 @@ mach_fork() {
     }
 }

+#endif
+
 void darwin_init(void)
 {
+#ifdef LISP_FEATURE_MACH_EXCEPTION_HANDLER
     setup_mach_exception_handling_thread();
+#endif
 }

-#endif

 #ifdef LISP_FEATURE_SB_THREAD

Bruce O'Neel (bruce-oneel) wrote :
Changed in sbcl:
assignee: nobody → Nikodemus Siivola (nikodemus)
Stas Boukarev (stassats) on 2012-04-13
Changed in sbcl:
status: New → Fix Committed
status: Fix Committed → Fix Released
Nikodemus Siivola (nikodemus) wrote :

commit f961fda4e87e79aacc6c61172303106d3e9522de
Author: Christophe Rhodes <email address hidden>
Date: Sun Mar 25 07:41:21 2012 +0100

    Fix build on PPC/Darwin

Changed in sbcl:
assignee: Nikodemus Siivola (nikodemus) → nobody
Stas Boukarev (stassats) wrote :

commit f961fda4e87e79aacc6c61172303106d3e9522de
Author: Christophe Rhodes <email address hidden>
Date: Sun Mar 25 07:41:21 2012 +0100

    Fix build on PPC/Darwin

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers