tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] mob compile error on Snow Leopard


From: Christian Jullien
Subject: Re: [Tinycc-devel] mob compile error on Snow Leopard
Date: Fri, 8 Feb 2013 06:44:44 +0100

Hello Miki,

After ./configure; make

My config.mak contains TARGETOS=Darwin

A very simple "hello world"

tcc -o hello hello.c

Gives me:

/usr/lib/crt1.o:1: error: unrecognized file type
tcc: error: file 'crt1.o' not found
tcc: error: file 'crti.o' not found
tcc: error: file 'crtn.o' not found

C.

From: address@hidden [mailto:address@hidden On Behalf Of Milutin Jovanovic
Sent: jeudi 7 février 2013 17:51
To: address@hidden
Subject: Re: [Tinycc-devel] mob compile error on Snow Leopard


Hi Christian,

This is not a problem on my system.

As you can see Mac OS version is not as complete as for other platforms, mostly 
because tinycc does not support mach-o binaries yet. For this reason, a bunch 
of tests is being skipped. in tests/Makefile you can see:
ifeq ($(TARGETOS),Darwin)
 TESTS := $(filter-out hello test3 btest,$(TESTS))
endif

So, hello test should not be running on your system. Can you check config.mak. 
It should have a line:
TARGETOS=Darwin

Also running 'uname -s' should yield 'Darwin'. Check into this and then we'll 
see what the next step is.


Miki.

On 6 February 2013 01:41, Christian Jullien <address@hidden> wrote:
I continue to test mod before 9.26

I only have access on Snow Leopard on which mod produces this error.

Any MacOS enthusiasts to investigate? Maybe because MacOS does not support 
static compilation.

uname -a
Darwin macos.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 
2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
bash-3.2$

macos:tinycc jullien$ make test
make -C tests test
------------ hello ------------
../tcc -B.. ../examples/ex1.c -o hello && ./hello
/usr/lib/crt1.o:1: error: unrecognized file type
tcc: error: file 'crt1.o' not found
tcc: error: file 'crti.o' not found
In file included from ../examples/ex1.c:2:
In file included from ../include/tcclib.h:11:
/usr/include/stdarg.h:8: error: #error "This header only supports __MWERKS__."
make[1]: *** [hello] Error 1
make: *** [test] Error 2



_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]