tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Ready for Release 0.9.27


From: Christian Jullien
Subject: Re: [Tinycc-devel] Ready for Release 0.9.27
Date: Fri, 10 Feb 2017 07:09:13 +0100

Hi, first issue comes after big commits made by Michael Matz on 2016-12-15.

More specifically,

2016-12-15 Michael Matz fix aliases on 64 bit was the very last commit without 
error on RPi.

Next commit 2016-12-15 Michael Matz Fix more nocode_wanted jump problems
Generates this error:

Test: 82_nocode_wanted...
--- ../../tests/tests2/82_nocode_wanted.expect  2016-12-15 17:47:11.000000000 
+0100
+++ 82_nocode_wanted.output     2017-02-10 06:49:23.209256266 +0100
@@ -4,6 +4,10 @@
 timeout=2
 timeout=1
 timeout=2
+timeout=2
+timeout=1
+timeout=2
+timeout=1
 timeout=1
 timeout=2
 timeout=1
Makefile:50: recipe for target '82_nocode_wanted.test' failed
make[2]: *** [82_nocode_wanted.test] Error 1

Unfortunately, as said in my previous mail, other errors came with more 
followed commits.

Here is the complete log I get this morning with current mob and especially the 
very annoying: ret_int_test... Makefile:226: recipe for target 'abitest' failed
make[1]: *** [abitest] Segmentation fault

Cloning into 'tinycc'...
remote: Counting objects: 9800, done.
remote: Compressing objects: 100% (2795/2795), done.
remote: Total 9800 (delta 6948), reused 9757 (delta 6913)
Receiving objects: 100% (9800/9800), 3.06 MiB | 1.28 MiB/s, done.
Resolving deltas: 100% (6948/6948), done.
Checking connectivity... done.
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/share/man
Info directory      /usr/local/share/info
Doc directory       /usr/local/share/doc
Target root prefix  -
Source path         /home/jullien/tinycc
C compiler          gcc
Target OS           Linux
CPU                 armv4l
Big Endian          no
Profiling           no
Cross compilers     no
Use libgcc          no
Triplet             arm-linux-gnueabihf
Creating config.mak and config.h
gcc -o tcc.o -c tcc.c -DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" 
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -Wall -g -O2 
-Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-strict-aliasing 
-Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-uninitialized 
-fno-strict-aliasing -I.
gcc -o libtcc.o -c libtcc.c -DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" 
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -Wall -g -O2 
-Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-strict-aliasing 
-Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-uninitialized 
-fno-strict-aliasing -I.
gcc -o tccpp.o -c tccpp.c -DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" 
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -Wall -g -O2 
-Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-strict-aliasing 
-Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-uninitialized 
-fno-strict-aliasing -I.
gcc -o tccgen.o -c tccgen.c -DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" 
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -Wall -g -O2 
-Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-strict-aliasing 
-Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-uninitialized 
-fno-strict-aliasing -I.
gcc -o tccelf.o -c tccelf.c -DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" 
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -Wall -g -O2 
-Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-strict-aliasing 
-Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-uninitialized 
-fno-strict-aliasing -I.
gcc -o tccasm.o -c tccasm.c -DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" 
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -Wall -g -O2 
-Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-strict-aliasing 
-Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-uninitialized 
-fno-strict-aliasing -I.
gcc -o tccrun.o -c tccrun.c -DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" 
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -Wall -g -O2 
-Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-strict-aliasing 
-Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-uninitialized 
-fno-strict-aliasing -I.
gcc -o arm-gen.o -c arm-gen.c -DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" 
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -Wall -g -O2 
-Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-strict-aliasing 
-Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-uninitialized 
-fno-strict-aliasing -I.
gcc -o arm-link.o -c arm-link.c -DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" 
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -Wall -g -O2 
-Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-strict-aliasing 
-Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-uninitialized 
-fno-strict-aliasing -I.
ar rcs libtcc.a libtcc.o tccpp.o tccgen.o tccelf.o tccasm.o tccrun.o arm-gen.o 
arm-link.o
gcc -o tcc tcc.o libtcc.a -Wall -g -O2 -Wdeclaration-after-statement 
-Wno-deprecated-declarations -Wno-strict-aliasing -Wno-pointer-sign 
-Wno-sign-compare -Wno-unused-result -Wno-uninitialized -fno-strict-aliasing 
-I.   -lm -ldl
make -C lib native
make[1]: Entering directory '/home/jullien/tinycc/lib'
mkdir -p arm
gcc -c libtcc1.c -o arm/libtcc1.o -DTCC_TARGET_ARM -Wall -g -O2 
-Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-strict-aliasing 
-Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-uninitialized 
-fno-strict-aliasing -I..
gcc -c armeabi.c -o arm/armeabi.o -DTCC_TARGET_ARM -Wall -g -O2 
-Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-strict-aliasing 
-Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-uninitialized 
-fno-strict-aliasing -I..
gcc -c alloca-arm.S -o arm/alloca-arm.o -DTCC_TARGET_ARM -Wall -g -O2 
-Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-strict-aliasing 
-Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-uninitialized 
-fno-strict-aliasing -I..
ar rcs ../libtcc1.a arm/libtcc1.o arm/armeabi.o arm/alloca-arm.o
make[1]: Leaving directory '/home/jullien/tinycc/lib'
./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
make -C tests
make[1]: Entering directory '/home/jullien/tinycc/tests'
------------ hello-exe ------------
../tcc -B.. -I../include -I.. -I.. ../examples/ex1.c -o hello || (../tcc -vv; 
exit 1) && ./hello
Hello World
------------ hello-run ------------
../tcc -B.. -I../include -I.. -I.. -run ../examples/ex1.c
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="\"arm-linux-gnueabihf\"" 
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP 
-fno-strict-aliasing -I.. -I.. -w -O0 -std=gnu99 -fno-omit-frame-pointer
./tcctest.gcc > test.ref
------------ test3 ------------
../tcc -B.. -I../include -I.. -I.. -DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" 
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -DONE_SOURCE 
-run ../tcc.c -B.. -I../include -I.. -I.. 
-DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" -DTCC_TARGET_ARM -DTCC_ARM_EABI 
-DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -DONE_SOURCE -run ../tcc.c -B.. -I../include 
-I.. -I.. -DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" -DTCC_TARGET_ARM 
-DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -DONE_SOURCE -run ../tcc.c 
-B.. -I../include -I.. -I.. -run tcctest.c > test.out3
Segmentation fault
Makefile:107: recipe for target 'test3' failed
make[1]: *** [test3] Error 139
------------ memtest ------------
gcc -fno-strict-aliasing -I.. -I.. -DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" 
-DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -DONE_SOURCE 
-DMEM_DEBUG=2 ../tcc.c -lm -ldl -o memtest-tcc
./memtest-tcc -B.. -I../include -I.. -I.. 
-DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" -DTCC_TARGET_ARM -DTCC_ARM_EABI 
-DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -DONE_SOURCE ../tcc.c -lm -ldl
./memtest-tcc -B.. -I../include -I.. -I.. 
-DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" -DTCC_TARGET_ARM -DTCC_ARM_EABI 
-DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -DONE_SOURCE -run ../tcc.c -B.. -I../include 
-I.. -I.. ../tests/tcctest.c
Segmentation fault
Makefile:150: recipe for target 'memtest' failed
make[1]: *** [memtest] Error 139
gcc -o abitest-cc abitest.c ../libtcc.a -fno-strict-aliasing -I.. -I.. -lm -ldl 
-w
../tcc -B.. -I../include -I.. -I.. -o abitest-tcc abitest.c ../libtcc.c 
-DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" -DTCC_TARGET_ARM -DTCC_ARM_EABI 
-DTCC_ARM_HARDFLOAT -DTCC_ARM_VFP -DONE_SOURCE -lm -ldl
------------ abitest ------------
./abitest-cc -B.. -I../include -I.. -I..
ret_int_test... success
ret_longlong_test... success
ret_float_test... success
ret_double_test... success
ret_longdouble_test... success
ret_2float_test... success
ret_2double_test... success
ret_mixed3_test... success
reg_pack_test... success
reg_pack_longlong_test... success
sret_test... success
one_member_union_test... success
two_member_union_test... success
many_struct_test... success
many_struct_test_2... success
many_struct_test_3... success
stdarg_test... success
stdarg_struct_test... success
arg_align_test... success
./abitest-tcc -B.. -I../include -I.. -I..
ret_int_test... Makefile:226: recipe for target 'abitest' failed
make[1]: *** [abitest] Segmentation fault
------------ tests2-dir ------------
make -k -C tests2
make[2]: Entering directory '/home/jullien/tinycc/tests/tests2'
Test: 00_assignment...
Test: 01_comment...
Test: 02_printf...
Test: 03_struct...
Test: 04_for...
Test: 05_array...
Test: 06_case...
Test: 07_function...
Test: 08_while...
Test: 09_do_while...
Test: 10_pointer...
Test: 11_precedence...
Test: 12_hashdefine...
Test: 13_integer_literals...
Test: 14_if...
Test: 15_recursion...
Test: 16_nesting...
Test: 17_enum...
Test: 18_include...
Test: 19_pointer_arithmetic...
Test: 20_pointer_comparison...
Test: 21_char_array...
Test: 22_floating_point...
Test: 23_type_coercion...
Test: 24_math_library...
Test: 25_quicksort...
Test: 26_character_constants...
Test: 27_sizeof...
Test: 28_strings...
Test: 29_array_address...
Test: 30_hanoi...
Test: 31_args...
Test: 32_led...
--- ../../tests/tests2/32_led.expect    2017-02-10 06:54:31.118324525 +0100
+++ 32_led.output       2017-02-10 06:55:18.858179490 +0100
@@ -1,4 +1,4 @@
-     _   _       _       _
-  |  _|  _| |_| |_  |_    |
-  | |_   _|   |  _| |_|   |
+
+
+

Makefile:54: recipe for target '32_led.test' failed
make[2]: *** [32_led.test] Error 1
Test: 33_ternary_op...
Test: 35_sizeof...
Test: 36_array_initialisers...
Test: 37_sprintf...
Test: 38_multiple_array_index...
Test: 39_typedef...
Test: 40_stdio...
Test: 41_hashif...
Test: 42_function_pointer...
--- ../../tests/tests2/42_function_pointer.expect       2017-02-10 
06:54:31.118324525 +0100
+++ 42_function_pointer.output  1970-01-01 01:00:00.000000000 +0100
@@ -1,2 +0,0 @@
-yo 24
-42
Makefile:54: recipe for target '42_function_pointer.test' failed
make[2]: *** [42_function_pointer.test] Error 1
Test: 43_void_param...
Test: 44_scoped_declarations...
Test: 45_empty_for...
Test: 46_grep...
Test: 47_switch_return...
Test: 48_nested_break...
Test: 49_bracket_evaluation...
Test: 50_logical_second_arg...
Test: 51_static...
Test: 52_unnamed_enum...
Test: 54_goto...
Test: 55_lshift_type...
Test: 56_btype_excess-1...
Test: 57_btype_excess-2...
Test: 58_function_redefinition...
Test: 59_function_array...
Test: 60_enum_redefinition...
Test: 61_undefined_enum...
Test: 62_enumerator_redefinition...
Test: 63_local_enumerator_redefinition...
Test: 64_macro_nesting...
Test: 67_macro_concat...
Test: 70_floating_point_literals...
Test: 71_macro_empty_arg...
Test: 72_long_long_constant...
Test: 73_arm64...
Test: 74_nocode_wanted...
Test: 75_array_in_struct_init...
Test: 76_dollars_in_identifiers...
Test: 77_push_pop_macro...
Test: 78_vla_label...
Test: 79_vla_continue...
Test: 80_flexarray...
Test: 81_types...
Test: 82_attribs_position...
Test: 82_nocode_wanted...
Test: 83_utf8_in_identifiers...
Test: 84-hex-float...
Test: 86-memory-model...
Test: 86-struct-init...
Test: 87_dead_code...
Test: 87_ptr_longlong_arith32...
Test: 88_codeopt...
make[2]: Target 'all' not remade because of errors.
make[2]: Leaving directory '/home/jullien/tinycc/tests/tests2'
Makefile:85: recipe for target 'tests2-dir' failed
make[1]: *** [tests2-dir] Error 2
------------ pp-dir ------------
make -k -C pp
make[2]: Entering directory '/home/jullien/tinycc/tests/pp'
PPTest 01 ...
PPTest 02 ...
PPTest 03 ...
PPTest 04 ...
PPTest 05 ...
PPTest 06 ...
PPTest 07 ...
PPTest 08 ...
PPTest 09 ...
PPTest 10 ...
PPTest 11 ...
PPTest 12 ...
PPTest 13 ...
PPTest 14 ...
PPTest 15 ...
PPTest 16 ...
PPTest 17 ...
make[2]: Leaving directory '/home/jullien/tinycc/tests/pp'
make[1]: Target 'all' not remade because of errors.
make[1]: Leaving directory '/home/jullien/tinycc/tests'
Makefile:307: recipe for target 'test' failed
make: *** [test] Error 2


From: Tinycc-devel [mailto:address@hidden On Behalf Of Christian JULLIEN
Sent: jeudi 9 février 2017 09:11
To: address@hidden
Subject: Re: [Tinycc-devel] Ready for Release 0.9.27

Sure, I always do ./configure.

I've just made a new test from a brand new checkout and error is gone.
For ARM32/64 I always do a clean checkout, I have the impression that failing 
tests are new (and probably never tested before on RPi).
I'll try today or tomorrow to find the first commit that breaks tcc on RPi.

C.

Le : 09 février 2017 à 08:51 (GMT +01:00)
De : "grischka" <address@hidden>
À : "address@hidden" <address@hidden>
Objet : Re: [Tinycc-devel] Ready for Release 0.9.27


Christian Jullien wrote:
> *- Linux CentOS 6.x [KO]*
> ../tcc -B.. -I../include -I.. -I.. -DCONFIG_LDDIR="\"lib64\"" 
> -DTCC_TARGET_X86_64 ../tcc.c libtcc2 -lm -ldl -Wl,-rpath=. -o tcc2
> 
> libtcc2:0: error: unrecognized character \x7f

Strange, should be libtcc2.so Seems DLLEXT=.so was not set from
configure. Did you ./configure?

> *- Raspberry Pi 3 (ARM) [KO]*
> ret_int_test... Makefile:226: recipe for target 'abitest' failed
> make[1]: *** [abitest] Segmentation fault
> Makefile:54: recipe for target '32_led.test' failed
> Makefile:54: recipe for target '42_function_pointer.test' failed

Are these regressions? If so we would probably need to know by
which commit it was introduced (I'm afraid)

> *- APM X-Gene Mustang board (Aarch64) [KO]*
> 
> make[2]: *** [42_function_pointer.test] Error 1

Not sure about this 42_function_pointer.test. It's some new nifty
test for the linker.

Michael, is it supposed to work on ARM and/or AARCH64?

Thanks,

-- gr



_______________________________________________
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]