thanks for the reply , so it looks it builds fine just one test that fails

here is the full log

http://pastebin.com/yvVb0uqB

I will play around with it and see if it has any problems, I was not able
to find -flat_namespace in the makefile but I will keep testing and be back
with any problem.

On Sat, Feb 27, 2016 at 12:20 AM Sean Lynch <[email protected]> wrote:

> Can you paste the full build output? You can probably figure out what's
> wrong by looking at differences between how libtcc was built and the gcc
> command line for libtcc_test. As for why it's using gcc, I'm guessing
> that's just part of the test.
>
> The 10.4 and 10.10 aren't related to the version of MacOS you're running;
> they're the version of the SDK the respective files were built/linked
> against. If I had to guess I'd say that gcc is defaulting to the 10.4 SDK
> while libtcc was built with clang, which is defaulting to the 10.10 sdk.
>
> tcc not supporting -flat_namespace I don't know about. Maybe just remove
> that from the options passed in the makefile, at least from the tcc version
> of the command line?
>
> On Fri, Feb 26, 2016 at 1:14 PM, Dimitris Chloupis <[email protected]>
> wrote:
>
>> Hey guys I am interested into using TinyC on macos (Yosemite up to date
>> with latest XCODE) , I have done
>>
>> ./configure
>> make
>> make test
>>
>> but I am getting this error report
>>
>> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C tests test
>> 'PROGS_CROSS=i386-tcc i386-win-tcc x86_64-win-tcc arm-linux-fpa-tcc
>> arm-linux-fpa-ld-tcc arm-linux-gnu-tcc arm-linux-gnueabi-tcc c67-tcc
>> arm-win-mingw32ce-tcc'
>> ------------ hello-run ------------
>> ../tcc -B.. -I.. -I.. -I../include -L.. -run ../examples/ex1.c
>> Hello World
>> gcc -o libtcc_test libtcc_test.c ../libtcc.a -I..
>> -Wl,-flat_namespace,-undefined,warning -DTCC_TARGET_X86_64 -D_ANSI_SOURCE
>> -lm -ldl   -I..
>> ld: warning: object file (../libtcc.a(libtcc.o)) was built for newer OSX
>> version (10.10) than being linked (10.4)
>> ld: warning: object file (../libtcc.a(tccelf.o)) was built for newer OSX
>> version (10.10) than being linked (10.4)
>> ld: warning: object file (../libtcc.a(tccrun.o)) was built for newer OSX
>> version (10.10) than being linked (10.4)
>> ld: warning: object file (../libtcc.a(tccgen.o)) was built for newer OSX
>> version (10.10) than being linked (10.4)
>> ld: warning: object file (../libtcc.a(tccpp.o)) was built for newer OSX
>> version (10.10) than being linked (10.4)
>> ld: warning: object file (../libtcc.a(tccasm.o)) was built for newer OSX
>> version (10.10) than being linked (10.4)
>> ld: warning: object file (../libtcc.a(i386-asm.o)) was built for newer
>> OSX version (10.10) than being linked (10.4)
>> ld: warning: object file (../libtcc.a(x86_64-gen.o)) was built for newer
>> OSX version (10.10) than being linked (10.4)
>> ------------ libtest ------------
>> ./libtcc_test -B.. -I.. -I.. -I../include -L..
>> Hello World!
>> fib(32) = 2178309
>> add(32, 64) = 96
>> gcc -o abitest-cc abitest.c ../libtcc.a -I..
>> -Wl,-flat_namespace,-undefined,warning -DTCC_TARGET_X86_64 -D_ANSI_SOURCE
>> -lm -ldl   -I..
>> ld: warning: object file (../libtcc.a(libtcc.o)) was built for newer OSX
>> version (10.10) than being linked (10.4)
>> ld: warning: object file (../libtcc.a(tccelf.o)) was built for newer OSX
>> version (10.10) than being linked (10.4)
>> ld: warning: object file (../libtcc.a(tccrun.o)) was built for newer OSX
>> version (10.10) than being linked (10.4)
>> ld: warning: object file (../libtcc.a(tccgen.o)) was built for newer OSX
>> version (10.10) than being linked (10.4)
>> ld: warning: object file (../libtcc.a(tccpp.o)) was built for newer OSX
>> version (10.10) than being linked (10.4)
>> ld: warning: object file (../libtcc.a(tccasm.o)) was built for newer OSX
>> version (10.10) than being linked (10.4)
>> ld: warning: object file (../libtcc.a(i386-asm.o)) was built for newer
>> OSX version (10.10) than being linked (10.4)
>> ld: warning: object file (../libtcc.a(x86_64-gen.o)) was built for newer
>> OSX version (10.10) than being linked (10.4)
>> ../tcc -B.. -I.. -I.. -I../include -L.. -o abitest-tcc abitest.c
>> ../libtcc.c -I..   -Wl,-flat_namespace,-undefined,warning
>> -DTCC_TARGET_X86_64 -D_ANSI_SOURCE -DONE_SOURCE -lm -ldl  -I..
>> tcc: error: unsupported linker option '-flat_namespace'
>> make[1]: *** [abitest-tcc] Error 1
>> make: *** [test] Error 2
>>
>> Also why its using gcc ?
>>
>> _______________________________________________
>> Tinycc-devel mailing list
>> [email protected]
>> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>>
>>
> _______________________________________________
> Tinycc-devel mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to