Comment 0 for bug 393845

Revision history for this message
Beef (yvdriess) wrote : source build error in backtrace.c on OSX

sh make.sh on the current latest cvs revision returns an error on the backtrace.c compilation with gcc i686-apple-darwin10-gcc-4.2.1.
I am working on the latest beta version of Snow Leopard OSX.

Darwin soft85.vub.ac.be 10.0.0b1 Darwin Kernel Version 10.0.0b1: Fri May 29 00:02:02 PDT 2009; root:xnu-1456~1/RELEASE_I386 i386

The current working revision for backtrace.c is 1.45

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/constants.h"' >>sbcl.h
In file included from darwin-os.c:21:
/usr/include/ucontext.h:42:2: error: #error ucontext routines are deprecated, and require _XOPEN_SOURCE to be defined
gcc -g -Wall -O2 -fdollars-in-identifiers -mmacosx-version-min=10.4 -I. -no-cpp-precomp -c -o alloc.o alloc.c
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-identifiers -mmacosx-version-min=10.4 -I. -no-cpp-precomp -c -o backtrace.o backtrace.c
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/Xl/XlQeJ38BFsitkLrLLB5-OU+++TI/-Tmp-//ccy8ZPrF.s:851:suffix or operands invalid for `mov'
make: *** [backtrace.o] Error 1