Hi,

I'm trying to compile tinycc on an older Intel Mac. It is detected as x86 by 
configure. During the build,
when tcc is used to create libtcc.a, it crashes with a segmentation fault:

gcc -o tcc tcc.o libtcc.a -lm -ldl -Wall -g -O2 -fno-strict-aliasing 
-Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0 
-mpreferred-stack-boundary=2 -march=i386 -falign-functions=0 -m32  
gcc -o tiny_libmaker win32/tools/tiny_libmaker.c -Wall -g -O2 
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0 
-mpreferred-stack-boundary=2 -march=i386 -falign-functions=0 -m32
mkdir -p i386
../tcc -B.. -m32 -D_ANSI_SOURCE -c libtcc1.c -o i386/libtcc1.o -DTCC_TARGET_I386
make[1]: *** [i386/libtcc1.o] Segmentation fault
make: *** [libtcc1.a] Error 2

The uname -a command yields

Darwin Pedro-A-Arandas-mac.local 10.5.0 Darwin Kernel Version 10.5.0: Fri Nov  
5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386 i386

Cheers,/PA


                                          
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to