|
From: | Christian JULLIEN |
Subject: | [Tinycc-devel] many test errors on RPi (incl. core dump) after recent changes |
Date: | Fri, 21 Jul 2017 07:48:21 +0200 (CEST) |
See below:
------------ 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_CPU_VERSION=7 -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_CPU_VERSION=7 -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_CPU_VERSION=7 -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_CPU_VERSION=7 -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
Bus error
Makefile:102: recipe for target 'test3' failed
make[1]: *** [test3] Error 135
------------ memtest ------------
gcc -fno-strict-aliasing -I.. -I.. -DCONFIG_TRIPLET="\"arm-linux-gnueabihf\"" -DTCC_CPU_VERSION=7 -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_CPU_VERSION=7 -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_CPU_VERSION=7 -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
Bus error
Makefile:145: recipe for target 'memtest' failed
make[1]: *** [memtest] Error 135
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_CPU_VERSION=7 -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_8plus2double_test... success
ret_6plus2longlong_test... success
ret_mixed_test... success
ret_mixed2_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_many_test... success
stdarg_struct_test... success
arg_align_test... success
./abitest-tcc -B.. -I../include -I.. -I..
ret_int_test... success
ret_longlong_test... success
ret_float_test... success
ret_double_test... Makefile:221: recipe for target 'abitest' failed
make[1]: *** [abitest] Bus error
------------ 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...
Bus error
--- 22_floating_point.expect 2017-07-21 07:41:44.162015050 +0200
+++ 22_floating_point.output 2017-07-21 07:42:36.991996316 +0200
@@ -1,16 +0,0 @@
-69.120003
-69.120000
--44.440000
-700.665200
-0.217330
-1 1 0 0 0 1
-0 1 1 1 0 0
-0 0 0 1 1 1
-69.120003
--44.439999
-700.665222
-0.217330
-12.340000
--12.340000
-2.000000
-0.909297
Makefile:64: recipe for target '22_floating_point.test' failed
make[2]: *** [22_floating_point.test] Error 1
Test: 23_type_coercion...
Bus error
--- 23_type_coercion.expect 2017-07-21 07:41:44.172015046 +0200
+++ 23_type_coercion.output 2017-07-21 07:42:37.051996295 +0200
@@ -1,12 +0,0 @@
-char: a
-char: b
-char: c
-int: 97
-int: 98
-int: 99
-float: 97.000000
-float: 98.000000
-float: 99.000000
-97 97
-97 97
-97.000000 97.000000
Makefile:64: recipe for target '23_type_coercion.test' failed
make[2]: *** [23_type_coercion.test] Error 1
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...
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...
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: 60_errors_and_warnings...
Test: 64_macro_nesting...
Test: 67_macro_concat...
Test: 70_floating_point_literals...
Bus error
--- 70_floating_point_literals.expect 2017-07-21 07:41:44.182015043 +0200
+++ 70_floating_point_literals.output 2017-07-21 07:42:37.871996003 +0200
@@ -1,53 +0,0 @@
-0.123000
-122999996416.000000
-0.000000
-122999996416.000000
-
-123.123001
-123122997002240.000000
-0.000000
-123122997002240.000000
-
-123.000000
-123000003231744.000000
-0.000000
-123000003231744.000000
-
-123000003231744.000000
-0.000000
-123000003231744.000000
-
-
-428.000000
-0.000026
-428.000000
-
-1756112.000000
-0.104672
-1756592.000000
-
-1753088.000000
-0.104492
-1753088.000000
-
-1753088.000000
-0.104492
-1753088.000000
-
-
-3424.000000
-0.000204
-3424.000000
-
-1756112.000000
-0.104672
-1756112.000000
-
-1753088.000000
-0.104492
-1753088.000000
-
-1753088.000000
-0.104492
-1753088.000000
-
Makefile:64: recipe for target '70_floating_point_literals.test' failed
make[2]: *** [70_floating_point_literals.test] Error 1
Test: 71_macro_empty_arg...
Test: 72_long_long_constant...
Test: 73_arm64...
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: 83_utf8_in_identifiers...
Test: 84_hex-float...
Test: 86_memory-model...
Test: 87_dead_code...
Test: 88_codeopt...
Test: 89_nocode_wanted...
Test: 90_struct-init...
Test: 91_ptr_longlong_arith32...
Test: 92_enum_bitfield...
Test: 93_integer_promotion...
Test: 94_generic...
Generating: 95_bitfields.expect
Test: 95_bitfields...
--- 95_bitfields.expect 2017-07-21 07:42:39.031995592 +0200
+++ 95_bitfields.output 2017-07-21 07:42:39.061995581 +0200
@@ -49,16 +49,16 @@
align/size : 1 11
---- TEST 3 - PACKED ----
-bits in use : 00007FFF000003FF
-bits as set : 000038D9000002F5
+bits in use : 7FFF000003FF
+bits as set : 38D9000002F5
values : 15 17 19 06 0e
-align/size : 4 8
+align/size : 1 6
---- TEST 4 - PACKED ----
-bits in use : 0007FFFF00000027
-bits as set : 00078F0F00000023
+bits in use : 07FFFF00000027
+bits as set : 078F0F00000023
values : 03 ffffffff 0f fffffff8 78
-align/size : 4 8
+align/size : 1 7
---- TEST 5 - PACKED ----
bits in use : FFFFFF07FFFFFFFFFFFFFFFF9FFFFFFFFFFF
@@ -67,10 +67,10 @@
align/size : 1 18
---- TEST 6 - PACKED ----
-bits in use : 0000007000FFFFFFFFFFFFFF
-bits as set : 00000030002001FD00000004
+bits in use : 007000FFFFFFFFFFFFFF
+bits as set : 0030002001FD00000004
values : 01 02 03 04 fd
-align/size : 4 12
+align/size : 1 10
@@ -125,16 +125,16 @@
align/size : 1 12
---- TEST 3 - PACKED - WITH ALIGN ----
-bits in use : 001F03FF000003FF
-bits as set : 000E00D9000002F5
+bits in use : 1F03FF000003FF
+bits as set : 0E00D9000002F5
values : 15 17 19 06 0e
-align/size : 4 8
+align/size : 1 7
---- TEST 4 - PACKED - WITH ALIGN ----
-bits in use : 0007FFFF00000027
-bits as set : 00078F0F00000023
+bits in use : 07FFFF00000027
+bits as set : 078F0F00000023
values : 03 ffffffff 0f fffffff8 78
-align/size : 4 8
+align/size : 1 7
---- TEST 5 - PACKED - WITH ALIGN ----
bits in use : FFFFFF07FFFFFFFFFFFFFFFF9FFFFFFFFFFF
@@ -143,10 +143,10 @@
align/size : 1 18
---- TEST 6 - PACKED - WITH ALIGN ----
-bits in use : 0000007000FFFFFFFFFFFFFF
-bits as set : 00000030002001FD00000004
+bits in use : 007000FFFFFFFFFFFFFF
+bits as set : 0030002001FD00000004
values : 01 02 03 04 fd
-align/size : 4 12
+align/size : 1 10
Makefile:64: recipe for target '95_bitfields.test' failed
make[2]: *** [95_bitfields.test] Error 1
Test: 96_nodata_wanted...
--- 96_nodata_wanted.expect 2017-07-21 07:41:44.182015043 +0200
+++ 96_nodata_wanted.output 2017-07-21 07:42:39.091995570 +0200
@@ -12,11 +12,4 @@
96_nodata_wanted.c:25: warning: nonportable conversion from pointer to char/short
[test_data_suppression]
-suppression off
- static data: 8 - 8.0 - 8.0 - main - static string
- static bitfields: 333 44 555555 6 7
- data length is not 0
- text length is not 0
-suppression on
- data length is 0
- text length is 0
+96_nodata_wanted.c:56: error: ARM asm not implemented.
Makefile:64: recipe for target '96_nodata_wanted.test' failed
make[2]: *** [96_nodata_wanted.test] Error 1
make[2]: Target 'all' not remade because of errors.
make[2]: Leaving directory '/home/jullien/tinycc/tests/tests2'
Makefile:80: 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 ...
PPTest 18 ...
PPTest 19 ...
PPTest 20 ...
PPTest 21 ...
PPTest pp-counter ...
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:350: recipe for target 'test' failed
make: *** [test] Error 2
[Prev in Thread] | Current Thread | [Next in Thread] |