I confirm it also works when boostraped with gcc 4.7.2 on my fully up to
date RPi
$ uname -a
Linux *** 3.6.11+ #362 PREEMPT Tue Jan 22 14:52:21 GMT 2013 armv6l GNU/Linux
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.7/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5+rpi1'
--with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.7 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-gnu-unique-object --disable-libitm --enable-plugin --enable-objc-gc
--disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard
--enable-checking=release --build=arm-linux-gnueabihf
--host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5+rpi1)
Only issue is the need to add to test2/Makefile (other solution is to add
symlinks in /usr/include)
ifneq (,$(wildcard /usr/include/arm-linux-gnueabihf))
TCCFLAGS+=-I/usr/include/arm-linux-gnueabihf
endif
$ make
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...
--- 22_floating_point.expect 2013-01-27 15:22:31.338791069 +0100
+++ 22_floating_point.output 2013-01-29 06:35:56.252253633 +0100
@@ -13,4 +13,4 @@
12.340000
-12.340000
2.000000
-0.909297
+0.000000
Test: 23_type_coercion...
Test: 24_math_library...
--- 24_math_library.expect 2013-01-27 15:22:31.348790914 +0100
+++ 24_math_library.output 2013-01-29 06:35:56.492250008 +0100
@@ -1,18 +1,18 @@
-0.119712
-0.992809
-0.120579
-0.120290
-1.450506
-0.119429
-0.120288
-1.007209
-0.119427
-1.127497
0.120000
--2.120264
--0.920819
-0.775357
-0.346410
+3.416443
+0.000000
+0.120000
+0.120000
+0.000000
+0.120000
+0.120000
+-0.240000
+3.213791
+-0.120000
+-nan
+-nan
+3.222519
+0.250000
12.000000
13.000000
12.000000
Test: 25_quicksort...
Test: 26_character_constants...
Test: 27_sizeof...
Test: 28_strings...
Test: 29_array_address...
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: 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...
From: [email protected]
[mailto:[email protected]] On Behalf Of Jerry
Reed
Sent: mardi 29 janvier 2013 03:42
To: [email protected]
Cc: [email protected]
Subject: Re: [Tinycc-devel] Segmentation Faults and test failures on ARM
(Raspbian/Raspberry Pi)
Hi Thomas:
I am running a test script now on the Raspberry Pi using your latest push.
So far (10 runs or so), so good....
I will update the list with more results in a while.
Regards,
Jerry
On Mon, Jan 28, 2013 at 5:00 PM, Thomas Preud'homme <[email protected]>
wrote:
Thomas Preud'homme <[email protected]> wrote:
>Jerry Reed <[email protected]> wrote:
>
>>Thank you so much for all your work, Thomas.
>>
>>On the BeagleBone briefly. When I configure with
>>
>>./configure
>>
>>Then the tests fail like this:
>>
>>Test: 11_precedence...
>>tcc: error: undefined symbol '__aeabi_idiv'
>
>We'll work on this after the release.
>
>>make[1]: *** [11_precedence.test] Error 255
>>make[1]: Leaving directory `/home/root/tinycc/tests2'
>>make: *** [test] Error 2
>>
>>An error I remember seeing before. So I rebuilt with
>>
>>./configure --with-libgcc
>>
>>Later tests spew lots of diff's related to math/floating point, but I
>>haven't seen a Segmentation fault in 30 runs or so on the BeagleBone.
>>I'll
>>leave the test looping, but it does seem that the build would have Seg
>>faulted on the Pi by now.
>>
>>Building on the Pi with-libgcc still gives Segmentation fault however,
>>so
>>perhaps the chip/environment on the Pi makes the problem worse either
>>with
>>libtcc or with libgcc?
>
>I have a fix for the random segfaults. However I'll probably only push
>tomorrow as I didn't manage to connect to the wifi with my laptop so
>far.
I managed to do a quick push. Please try extensively. I'll see for the
header issue on the raspbian as soon as I have a better connectivity.
Cheers.
Thomas
--
Interested in bats? Check out my blog at: http://www.karaokebats.com/
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel