Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Last login: Sat Feb 27 11:56:22 on console
- kilon-imac:~ kilon$ cd git
- kilon-imac:git kilon$ fish
- Welcome to fish, the friendly interactive shell
- Type help for instructions on how to use fish
- kilon@kilon-imac ~/git> git clone git://repo.or.cz/tinycc.git
- Cloning into 'tinycc'...
- remote: Counting objects: 7868, done.
- remote: Compressing objects: 100% (2327/2327), done.
- remote: Total 7868 (delta 5486), reused 7831 (delta 5459)
- Receiving objects: 100% (7868/7868), 3.32 MiB | 147.00 KiB/s, done.
- Resolving deltas: 100% (5486/5486), done.
- Checking connectivity... done.
- kilon@kilon-imac ~/git> cd tinycc
- kilon@kilon-imac ~/g/tinycc> ./configure
- Binary directory /usr/local/bin
- TinyCC directory /usr/local/lib/tcc
- Library directory /usr/local/lib64
- Include directory /usr/local/include
- Manual directory /usr/local/share/man
- Info directory /usr/local/share/info
- Doc directory /usr/local/share/doc//usr/local/lib/tcc
- Target root prefix
- Source path /Users/kilon/git/tinycc
- C compiler gcc
- cross compilers no
- Target CPU x86-64
- Host OS Darwin
- Target OS Darwin
- Big Endian no
- gprof enabled no
- use libgcc no
- Creating config.mak and config.h
- kilon@kilon-imac ~/g/tinycc> make
- gcc -o tcc.o -c tcc.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
- gcc -o libtcc.o -c libtcc.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
- gcc -o tccpp.o -c tccpp.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
- tccpp.c:836:19: warning: unused function 'tok_size' [-Wunused-function]
- static inline int tok_size(const int *p)
- ^
- 1 warning generated.
- gcc -o tccgen.o -c tccgen.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
- gcc -o tccelf.o -c tccelf.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
- gcc -o tccasm.o -c tccasm.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
- gcc -o tccrun.o -c tccrun.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
- gcc -o x86_64-gen.o -c x86_64-gen.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
- gcc -o i386-asm.o -c i386-asm.c -DTCC_TARGET_X86_64 -I. -Wall -g -O0
- 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 -O0
- gcc -o tiny_libmaker win32/tools/tiny_libmaker.c -I. -Wall -g -O0
- /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 -O0 -fPIC -DTCC_TARGET_X86_64 -D_ANSI_SOURCE
- In file included from libtcc1.c:31:
- In file included from /usr/include/stdint.h:52:
- In file included from /usr/include/sys/_types.h:32:
- /usr/include/sys/cdefs.h:81: warning: #warning "Unsupported compiler detected"
- ../tcc -B.. -c alloca86_64.S -o x86_64/alloca86_64.o -I.. -Wall -g -O0 -fPIC -DTCC_TARGET_X86_64 -D_ANSI_SOURCE
- ../tcc -B.. -c alloca86_64-bt.S -o x86_64/alloca86_64-bt.o -I.. -Wall -g -O0 -fPIC -DTCC_TARGET_X86_64 -D_ANSI_SOURCE
- gcc -o x86_64/tiny_libmaker ../win32/tools/tiny_libmaker.c -I.. -Wall -g -O0 -fPIC -DTCC_TARGET_X86_64 -D_ANSI_SOURCE
- x86_64/tiny_libmaker rcs ../libtcc1.a x86_64/libtcc1.o x86_64/alloca86_64.o x86_64/alloca86_64-bt.o
- if test ! -d x86-64; then mkdir x86-64; fi
- if test ! -L x86-64/libtcc1.a; then ln -sf ../libtcc1.a x86-64/libtcc1.a; fi
- ./texi2pod.pl tcc-doc.texi tcc.pod
- pod2man --section=1 --center="Tiny C Compiler" --release=`cat ./VERSION` tcc.pod > tcc.1
- makeinfo --no-split --html --number-sections -o tcc-doc.html tcc-doc.texi
- makeinfo tcc-doc.texi
- kilon@kilon-imac ~/g/tinycc> make test
- /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
- kilon@kilon-imac ~/g/tinycc> make install
- /Applications/Xcode.app/Contents/Developer/usr/bin/make -C lib native
- make[1]: Nothing to be done for `native'.
- if test ! -d x86-64; then mkdir x86-64; fi
- if test ! -L x86-64/libtcc1.a; then ln -sf ../libtcc1.a x86-64/libtcc1.a; fi
- mkdir -p "/usr/local/bin"
- install -m755 tcc tiny_libmaker "/usr/local/bin"
- cp -P tcc "/usr/local/bin"
- mkdir -p "/usr/local/share/man/man1"
- install -m644 tcc.1 "/usr/local/share/man/man1"
- mkdir -p "/usr/local/share/info"
- install -m644 tcc-doc.info "/usr/local/share/info"
- mkdir -p "/usr/local/lib/tcc"
- mkdir -p "/usr/local/lib/tcc/include"
- mkdir -p "/usr/local/lib/tcc/x86-64"
- install -m644 libtcc1.a "/usr/local/lib/tcc/x86-64"
- install -m644 ./include/stdarg.h ./include/stddef.h ./include/stdbool.h ./include/float.h ./include/varargs.h ./tcclib.h "/usr/local/lib/tcc/include"
- mkdir -p "/usr/local/lib64"
- install -m644 libtcc.a "/usr/local/lib64"
- mkdir -p "/usr/local/include"
- install -m644 ./libtcc.h "/usr/local/include"
- mkdir -p "/usr/local/share/doc//usr/local/lib/tcc"
- install -m644 tcc-doc.html "/usr/local/share/doc//usr/local/lib/tcc"
- kilon@kilon-imac ~/g/tinycc>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement