build fails on OSX 10.6 (snow leopard)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
High
|
Cyrus Harmon |
Bug Description
sh make.sh on the current latest cvs revision returns an error on the backtrace.c compilation with gcc i686-apple-
I am working on the latest beta version of Snow Leopard OSX (June 8th).
uname -a:
Darwin ******.vub.ac.be 10.0.0b1 Darwin Kernel Version 10.0.0b1: Fri May 29 00:02:02 PDT 2009; root:xnu-
The current working revision for backtrace.c is 1.45
gcc version:
Target: i686-apple-darwin10
Configured with: /var/tmp/
make output:
//entering make-target-1.sh
//building runtime system and symbol table file
rm -f *.[do] sbcl sbcl.nm sbcl.h core *.tmp
echo '#include "genesis/config.h"' >sbcl.h
echo '#include "genesis/
In file included from darwin-os.c:21:
/usr/include/
gcc -g -Wall -O2 -fdollars-
In file included from alloc.c:21:
runtime.h: In function 'CONS':
runtime.h:151: warning: cast to pointer from integer of different size
runtime.h: In function 'SYMBOL':
runtime.h:157: warning: cast to pointer from integer of different size
runtime.h: In function 'FDEFN':
runtime.h:163: warning: cast to pointer from integer of different size
gcc -g -Wall -O2 -fdollars-
In file included from backtrace.c:19:
runtime.h: In function 'CONS':
runtime.h:151: warning: cast to pointer from integer of different size
runtime.h: In function 'SYMBOL':
runtime.h:157: warning: cast to pointer from integer of different size
runtime.h: In function 'FDEFN':
runtime.h:163: warning: cast to pointer from integer of different size
/var/folders/
make: *** [backtrace.o] Error 1
I tried adding the -D_XOPEN_SOURCE, -D_XOPEN_SOURCE=600 and -m32 flags to the CFLAGS
-D_XOPEN_SOURCE changes nothing to the above error.
-D_XOPEN_SOURCE=600 changes the output to:
produces the following output:
//entering make-target-1.sh
//building runtime system and symbol table file
rm -f *.[do] sbcl sbcl.nm sbcl.h core *.tmp
echo '#include "genesis/config.h"' >sbcl.h
echo '#include "genesis/
In file included from darwin-os.c:21:
/usr/include/
gcc -g -Wall -O2 -fdollars-
In file included from alloc.c:21:
runtime.h: In function 'CONS':
runtime.h:151: warning: cast to pointer from integer of different size
runtime.h: In function 'SYMBOL':
runtime.h:157: warning: cast to pointer from integer of different size
runtime.h: In function 'FDEFN':
runtime.h:163: warning: cast to pointer from integer of different size
In file included from thread.h:20,
interrupt.h: In function 'sigcopyset':
interrupt.h:32: error: 'NSIG' undeclared (first use in this function)
interrupt.h:32: error: (Each undeclared identifier is reported only once
interrupt.h:32: error: for each function it appears in.)
interrupt.h: At top level:
interrupt.h:102: error: 'NSIG' undeclared here (not in a function)
make: *** [alloc.o] Error 1
Adding -m32 changes nothing to the above:
//entering make-target-1.sh
//building runtime system and symbol table file
rm -f *.[do] sbcl sbcl.nm sbcl.h core *.tmp
echo '#include "genesis/config.h"' >sbcl.h
echo '#include "genesis/
In file included from darwin-os.c:21:
/usr/include/
gcc -g -Wall -O2 -fdollars-
In file included from thread.h:20,
interrupt.h: In function 'sigcopyset':
interrupt.h:32: error: 'NSIG' undeclared (first use in this function)
interrupt.h:32: error: (Each undeclared identifier is reported only once
interrupt.h:32: error: for each function it appears in.)
interrupt.h: At top level:
interrupt.h:102: error: 'NSIG' undeclared here (not in a function)
description: | updated |
tags: | added: build |
description: | updated |
description: | updated |
description: | updated |
summary: |
- source build error in backtrace.c on OSX + build fails on OSX 10.6 (snow leopard) |
description: | updated |
Changed in sbcl: | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: os-darwin |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
http:// duriansoftware. com/joe/ PSA:-avoiding- the-%22ucontext -routines- are-deprecated% 22-error- on-Mac- OS-X-Snow- Leopard. html
This blog entry might contain relevant information for this bug.