tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] version d0db21757afc625a6299aec51cbc282f36abb85f


From: Somchai Smythe
Subject: [Tinycc-devel] version d0db21757afc625a6299aec51cbc282f36abb85f
Date: Sun, 19 Nov 2017 15:48:45 +0700

While things usually work greak, the last few commits just don't work.
For commit d0db21757afc625a6299aec51cbc282f36abb85f:

$ ./configure --prefix=/usr/local --mandir=/usr/local/man --cpu=x86_64
Perhaps you want ./configure --config-musl
Binary directory    /usr/local/bin
TinyCC directory    /usr/local/lib/tcc
Library directory   /usr/local/lib
Include directory   /usr/local/include
Manual directory    /usr/local/man
Info directory      /usr/local/share/info
Doc directory       /usr/local/share/doc
Source path
/home/mrham/Downloads/outgoing/wonderland/tcc-d0db21757afc625a6299aec51cbc282f36abb85f
C compiler          gcc (7.2)
Target OS           Linux
CPU                 x86_64
Triplet             x86_64-linux-gnu
Creating config.mak and config.h
address@hidden:~/Downloads/outgoing/wonderland/tcc-d0db21757afc625a6299aec51cbc282f36abb85f$
make -j8
gcc -o tcc.o -c tcc.c -DCONFIG_TRIPLET="\"x86_64-linux-gnu\""
-DTCC_TARGET_X86_64       -DONE_SOURCE=0 -Wall -g -O2
-Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign
-Wno-sign-compare -Wno-unused-result -I.
gcc -o libtcc.o -c libtcc.c -DCONFIG_TRIPLET="\"x86_64-linux-gnu\""
-DTCC_TARGET_X86_64       -DONE_SOURCE=0 -Wall -g -O2
-Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign
-Wno-sign-compare -Wno-unused-result -I.
gcc -o tccpp.o -c tccpp.c -DCONFIG_TRIPLET="\"x86_64-linux-gnu\""
-DTCC_TARGET_X86_64       -DONE_SOURCE=0 -Wall -g -O2
-Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign
-Wno-sign-compare -Wno-unused-result -I.
gcc -o tccgen.o -c tccgen.c -DCONFIG_TRIPLET="\"x86_64-linux-gnu\""
-DTCC_TARGET_X86_64       -DONE_SOURCE=0 -Wall -g -O2
-Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign
-Wno-sign-compare -Wno-unused-result -I.
gcc -o tccelf.o -c tccelf.c -DCONFIG_TRIPLET="\"x86_64-linux-gnu\""
-DTCC_TARGET_X86_64       -DONE_SOURCE=0 -Wall -g -O2
-Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign
-Wno-sign-compare -Wno-unused-result -I.
gcc -o tccasm.o -c tccasm.c -DCONFIG_TRIPLET="\"x86_64-linux-gnu\""
-DTCC_TARGET_X86_64       -DONE_SOURCE=0 -Wall -g -O2
-Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign
-Wno-sign-compare -Wno-unused-result -I.
gcc -o tccrun.o -c tccrun.c -DCONFIG_TRIPLET="\"x86_64-linux-gnu\""
-DTCC_TARGET_X86_64       -DONE_SOURCE=0 -Wall -g -O2
-Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign
-Wno-sign-compare -Wno-unused-result -I.
gcc -o x86_64-gen.o -c x86_64-gen.c
-DCONFIG_TRIPLET="\"x86_64-linux-gnu\"" -DTCC_TARGET_X86_64
-DONE_SOURCE=0 -Wall -g -O2 -Wdeclaration-after-statement
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare
-Wno-unused-result -I.
gcc -o x86_64-link.o -c x86_64-link.c
-DCONFIG_TRIPLET="\"x86_64-linux-gnu\"" -DTCC_TARGET_X86_64
-DONE_SOURCE=0 -Wall -g -O2 -Wdeclaration-after-statement
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare
-Wno-unused-result -I.
gcc -o i386-asm.o -c i386-asm.c
-DCONFIG_TRIPLET="\"x86_64-linux-gnu\"" -DTCC_TARGET_X86_64
-DONE_SOURCE=0 -Wall -g -O2 -Wdeclaration-after-statement
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare
-Wno-unused-result -I.
./texi2pod.pl tcc-doc.texi tcc.pod
pod2man --section=1 --center="Tiny C Compiler" --release="0.9.27"
tcc.pod > tcc.1
makeinfo --no-split --html --number-sections -o tcc-doc.html tcc-doc.texi
makeinfo tcc-doc.texi
ar rcs libtcc.a libtcc.o tccpp.o tccgen.o tccelf.o tccasm.o tccrun.o
x86_64-gen.o x86_64-link.o i386-asm.o
gcc -o tcc tcc.o libtcc.a -lm -ldl
make[1]: Entering directory
'/home/mrham/Downloads/outgoing/wonderland/tcc-d0db21757afc625a6299aec51cbc282f36abb85f/lib'
../tcc -c libtcc1.c -o libtcc1.o -B..
../tcc -c alloca86_64.S -o alloca86_64.o -B..
../tcc -c alloca86_64-bt.S -o alloca86_64-bt.o -B..
../tcc -c va_list.c -o va_list.o -B..
../tcc -c bcheck.c -o bcheck.o -B..
../tcc -ar rcs ../libtcc1.a libtcc1.o alloca86_64.o alloca86_64-bt.o
va_list.o bcheck.o
make[1]: Leaving directory
'/home/mrham/Downloads/outgoing/wonderland/tcc-d0db21757afc625a6299aec51cbc282f36abb85f/lib'
$
$
$ make test
make -C tests
make[1]: Entering directory
'/home/mrham/Downloads/outgoing/wonderland/tcc-d0db21757afc625a6299aec51cbc282f36abb85f/tests'
------------ hello-exe ------------
../tcc -B.. -I../include -I.. -I.. ../examples/ex1.c -o hello &&
./hello || (set -x; ../tcc -vv; ldd ../tcc; exit 1)
Hello World
------------ hello-run ------------
../tcc -B.. -I../include -I.. -I.. -run ../examples/ex1.c || (set -x;
../tcc -vv; ldd ../tcc; exit 1)
Hello World
gcc -o libtcc_test libtcc_test.c ../libtcc.a -fno-strict-aliasing -I..
-I..  -lm -ldl
------------ libtest ------------
./libtcc_test -B.. -I../include -I.. -I..
Hello World!
fib(32) = 2178309
add(32, 64) = 96
gcc -o tcctest.gcc tcctest.c -DCONFIG_TRIPLET="\"x86_64-linux-gnu\""
-DTCC_TARGET_X86_64 -fno-strict-aliasing -I.. -I..  -w -O0 -std=gnu99
-fno-omit-frame-pointer
./tcctest.gcc > test.ref
./tcctest.gcc: Symbol `getenv' causes overflow in R_X86_64_PC32 relocation
Segmentation fault (core dumped)
Makefile:85: recipe for target 'test.ref' failed
make[1]: *** [test.ref] Error 139
make[1]: Leaving directory
'/home/mrham/Downloads/outgoing/wonderland/tcc-d0db21757afc625a6299aec51cbc282f36abb85f/tests'
Makefile:346: recipe for target 'test' failed
make: *** [test] Error 2


If it matters, this is on an Ubuntu 17.10 system.

Version da8c62f75d893449e232944fc62566c020b4d010 works fine.

Is 'make test' no longer supported?  Is there some new way to test
things?  Are there some new prerequisites I need to install?



reply via email to

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