Ok, but help me to better understand the purpose of a tcc build on Darwin. * Currently, "./configure; make" produces on Sierra (Darwin) a tcc executable (so far so good). * This tcc version runs on Darwin (as tcc- vv), so to me it is a Sierra compatible binary. I don't understand quite well why it should display Linux but let say it's Ok. * Now, what am I supposed to do with it? It is for example unable to compile "Hello World"
byas:tinycc jullien$ cat foo.c #include <stdio.h> int main() { printf("Hello World\n"); } Compile only wit -c byas:tinycc jullien$ ./tcc -c foo.c In file included from foo.c:1: In file included from /usr/include/stdio.h:64: /usr/include/sys/cdefs.h:81: warning: #warning "Unsupported compiler detected" Trying to produce an executable byas:tinycc jullien$ ./tcc foo.c /usr/lib/crt1.o: error: unrecognized file type tcc: error: file 'crt1.o' not found tcc: error: file 'crti.o' not found In file included from foo.c:1: In file included from /usr/include/stdio.h:64: /usr/include/sys/cdefs.h:81: warning: #warning "Unsupported compiler detected" tcc: error: library 'c' not found tcc: error: file '/usr/local/lib/tcc/libtcc1.a' not found tcc: error: file 'crtn.o' not found tcc: error: undefined symbol 'printf' -----Original Message----- From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of grischka Sent: dimanche 26 février 2017 14:27 To: tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] What is the exact Darwin port status? (i.e. macOS) Christian Jullien wrote: > What tcc knows (it thinks it is Linux, I can fix this one easily): > > tcc version 0.9.27 (x86_64 Linux) No, this is correct. This message is trying to tell you that this tcc will create executables for a Linux OS running on a x86_64 processor. These executables will not work on windows or arm or darwin. --- grischka _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel