[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] build fails on mac os x 10.
From: |
ben |
Subject: |
[Tinycc-devel] build fails on mac os x 10. |
Date: |
Sat, 07 Apr 2012 11:43:36 +0200 |
User-agent: |
Postbox 3.0.3 (Macintosh/20120304) |
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] build fails on mac os x 10.,
ben <=