On 7 April 2012 05:43, ben
<address@hidden> wrote:
hi
I try to build tinycc from the mob branch for mac os x snow leopard without success.
error:
-------
ld: warning: in libtcc.a, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
"_tcc_free", referenced from:
system infos:
--------------------
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.6.8
BuildVersion: 10K549
$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
error reproduction
-------------------------
$ mkdir mob && cd mob
$ git clone git://repo.or.cz/tinycc.git
$ cd tinycc/
$ git checkout mob
$ ./configure
Binary directory /usr/local/bin
TinyCC directory /usr/local/lib/tcc
Library directory /usr/local/lib
Include directory /usr/local/include
Manual directory /usr/local/share/man
Info directory /usr/local/share/info
Doc directory /usr/local/share/doc/tcc
Target root prefix
Source path /homes/ben/local/tcc/mob/tinycc
C compiler gcc
Target OS Darwin
CPU x86
Big Endian no
gprof enabled no
cross compilers no
use libgcc no
Creating config.mak and config.h
$ make 1> log
ld: warning: in libtcc.a, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
"_tcc_free", referenced from:
_parse_option_D in tcc.o
_main in tcc.o
_main in tcc.o
_main in tcc.o
_main in tcc.o
"_cstr_free", referenced from:
_main in tcc.o
"_tcc_print_stats", referenced from:
_main in tcc.o
"_tcc_new", referenced from:
[...]
$ tail -4 log
gcc -o i386-gen.o -c i386-gen.c -DTCC_TARGET_I386 -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 -m32gcc -o i386-asm.o -c i386-asm.c -DTCC_TARGET_I386 -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 -m32ar rcs libtcc.a libtcc.o tccpp.o tccgen.o tccelf.o tccasm.o tccrun.o i386-gen.o i386-asm.ogcc -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
_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel