tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] Compiling TinyCC for OSX?


From: John Smith
Subject: [Tinycc-devel] Compiling TinyCC for OSX?
Date: Thu, 8 Jan 2015 19:28:31 +0000

Does TinyCC compile for OSX?
Hi people...

I was trying to compile tinyCC for OSX... I tried downloading from the main 
website and compiling, but that failed. So I checked the internet.

First I came across this page 
http://stackoverflow.com/questions/3712902/problems-compiling-tcc-on-os-x which 
had an answer telling me to use "git". So I installed git and used that to 
install tinycc.

I tried compiling, but I got this error. (I did ./configure first... don't 
worry)


air% make
gcc -o tcc.o -c tcc.c -DTCC_TARGET_X86_64 -I.  -Wall -g -O2 
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0
gcc -o libtcc.o -c libtcc.c -DTCC_TARGET_X86_64 -I.  -Wall -g -O2 
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0
gcc -o tccpp.o -c tccpp.c -DTCC_TARGET_X86_64 -I.  -Wall -g -O2 
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0
gcc -o tccgen.o -c tccgen.c -DTCC_TARGET_X86_64 -I.  -Wall -g -O2 
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0
gcc -o tccelf.o -c tccelf.c -DTCC_TARGET_X86_64 -I.  -Wall -g -O2 
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0
gcc -o tccasm.o -c tccasm.c -DTCC_TARGET_X86_64 -I.  -Wall -g -O2 
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0
tccasm.c:545:72: warning: data argument not used by format string
      [-Wformat-extra-args]
            sprintf(sname, (n?".%s%d":".%s"), get_tok_str(tok1, NULL), n);
                                      ~~~~~                            ^
1 warning generated.
gcc -o tccrun.o -c tccrun.c -DTCC_TARGET_X86_64 -I.  -Wall -g -O2 
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0
gcc -o x86_64-gen.o -c x86_64-gen.c -DTCC_TARGET_X86_64 -I.  -Wall -g -O2 
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0
gcc -o i386-asm.o -c i386-asm.c -DTCC_TARGET_X86_64 -I.  -Wall -g -O2 
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0
ar rcs libtcc.a libtcc.o tccpp.o tccgen.o tccelf.o tccasm.o tccrun.o 
x86_64-gen.o i386-asm.o
gcc -o tcc tcc.o libtcc.a -lm -ldl -I.  -Wall -g -O2 -fno-strict-aliasing 
-Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0  
gcc -o tiny_libmaker win32/tools/tiny_libmaker.c -I.  -Wall -g -O2 
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0 
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C lib native
mkdir -p x86_64
../tcc -B.. -c libtcc1.c -o x86_64/libtcc1.o -I..  -Wall -g -O2 
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0 
-fPIC -DTCC_TARGET_X86_64 -D_ANSI_SOURCE
libtcc1.c:31: error: include file 'stdint.h' not found
make[1]: *** [x86_64/libtcc1.o] Error 1
make: *** [libtcc1.a] Error 2



So... I looked at the README file... and it says "on OSX use gmake, not make".

So I type in "gmake", and it says "gmake not found".

Now what? I'm lost...





reply via email to

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