Bug#621083: gcc-4.4: armhf/cross FTBFS: #error "Must use SJLJ exceptions but configured not to"
Package: gcc-4.4 Version: 4.4.5-14 Severity: wishlist Hi, When building gcc-4.4 cross and native for armhf we get a failure message: gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../src/gcc -I../../src/gcc/build -I../../src/gcc/../include -I../../src/gcc/../libcpp/include -I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/dpd -I../libdecnumber -I/include -DCLOOG_PPL_BACKEND -o build/gencondmd.o build/gencondmd.c In file included from build/gencondmd.c:44:0: ../../src/gcc/except.h:162:6: error: #error "Must use SJLJ exceptions but configured not to" ../../src/gcc/config/arm/arm.md:4509:8: warning: comparison between signed and unsigned integer expressions make[4]: *** [build/gencondmd.o] Error 1 I have not had time yet to find and test a fix. I am just noting the failure. Best regards -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38-2-amd64 (SMP w/8 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages gcc-4.4 depends on: ii binutils 2.21.0.20110327-2 The GNU assembler, linker and bina ii cpp-4.44.4.5-14 The GNU C preprocessor ii gcc-4.4-base 4.4.5-14 The GNU Compiler Collection (base ii libc6 2.11.2-13 Embedded GNU C Library: Shared lib ii libgcc11:4.5.2-6 GCC support library ii libgomp1 4.5.2-6 GCC OpenMP (GOMP) support library Versions of packages gcc-4.4 recommends: ii libc6-dev 2.11.2-13 Embedded GNU C Library: Developmen Versions of packages gcc-4.4 suggests: ii gcc-4.4-doc 4.4.4.nf1-1 documentation for the GNU compiler pn gcc-4.4-locales(no description available) pn gcc-4.4-multilib (no description available) ii libcloog-ppl00.15.9-3the Chunky Loop Generator (runtime pn libgcc1-dbg(no description available) pn libgomp1-dbg (no description available) pn libmudflap0-4.4-dev(no description available) pn libmudflap0-dbg(no description available) pn libppl-c2 (no description available) pn libppl7(no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110406125135.11784.31742.reportbug@enorme.TCLDOMAIN.OFFICE
Bug#621420: Misbuilds busybox on ARM
Package: gcc-4.5 Version: 4.5.2-8 Severity: normal Hi See Debian #621137; gcc-4.5 4.5.2-8 misbuilds busybox: r5 is clobbered in tryexec() as gcc believes it doesn't return, but it does. This doesn't happen with Linaro GCC 4.5 or GCC 4.6, but it does happen with plain FSF 4.5.2. I've asked on the Linaro Toolchain ML which patch fixes this: http://lists.linaro.org/pipermail/linaro-toolchain/2011-April/001047.html But I didn't open an upstream ticket as there might be one already. See IRC log below for details. 00:52 < lool> michaelh1: if I remove references to applet_no from the function and call sites (it's unused anyway) the issue goes away 00:52 < lool> michaelh1: it's flagged __unused_param__ 00:53 < lool> michaelh1: So I have ash.o and am looking at a disassembled dump, and I can't figure what to look for 00:53 < michaelh1> lool: do you have a preprocessed version of it? What compiler and build options does the fault occur at? 00:53 < michaelh1> lool: I'm suspicious that you're going from a all-register version to a also-something-on-the-stack by adding the extra parameter. 00:54 < lool> michaelh1: Right now I'm doing this with Debian's gcc-4.5 00:54 < lool> no Linaro patchset 00:55 < lool> I was using it earlier, but the busybox versions I was using were not xbuild friendly, or did not reproduce 00:55 < lool> Now that I know that this Debian patch triggers it, I might be able to reproduce with Linaro toolchain 00:55 < michaelh1> lool: yip. Can you do a -save-temps run and send me ash.i and ash.s? 00:56 < lool> michaelh1: BTW I can feel how it would have been useful to have "fsf" toolchains in Ubuntu or Debian and Linaro toolchains in Debian :-) 00:56 < michaelh1> lool: yeah, I want to have a plain linaro PPA in the future. Add a plain fsf as well using the same infrastructure. Helps in tracking down what introduced a problem... 00:57 -!- NishanthMenon [~nmenon@nat/ti/x-iiyvawwlphubdqsc] has quit [Quit: Ex-Chat] 00:57 < lool> michaelh1: I'll look at saving the temps; objdump -D isn't useful I guess? 00:58 < lool> http://paste.ubuntu.com/590485/ has one 00:58 < lool> it's awfully big 00:58 < michaelh1> lool: it's easiest to compare outputs from different compilers by running over the .i file. 00:58 * michaelh1 looks 00:59 < michaelh1> lool: is this the broken one? 01:00 < lool> michaelh1: http://people.linaro.org/~lool/ash.s 01:00 < lool> michaelh1: That one is broken yes 01:01 < lool> michaelh1: http://people.linaro.org/~lool/ash.i 01:03 < michaelh1> lool: what options did you pass to GCC? -Os? -O2? 01:05 < lool> michaelh1: Hmm oddly it seems to be -Os 01:05 < lool> gcc -save-temps -Wp,-MD,shell/.ash.o.d -std=gnu99 -Iinclude -Ilibbb -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.18.4)" -D"BB_BT=AUTOCONF_TIMESTAMP" -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement ... 01:05 < lool> ... -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static-libgcc -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -g -Os -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(ash)" -D"KBUILD_MODNAME=KBUILD_STR(ash)" -c -o shell/ash.o shell/ash.c 01:05 < lool> But it should have been -O0 :-( 01:05 < lool> michaelh1: I tried cross-building with Ubuntu's cross and Debian's patch applied, but I can't reproduce with that toolchain 01:05 -!- robher [~robher@173.226.190.126] has quit [Ping timeout: 246 seconds] 01:05 < lool> it might also be other differences between my tree and the Debian one 01:06 < michaelh1> lool: but you can reproduce the problem? 01:06 -!- marciom [~marciom@209.119.62.66] has joined #linaro 01:07 < lool> michaelh1: I can in a Debian gcc-4.5 context 01:07 < michaelh1> lool: and is this for armv4t or armv7-a 01:07 < lool> michaelh1: Debian is armv4t, when cross-building I passed CC="arm-linux-gnueabi-gcc -marm -march=armv4t -mtune=arm9tdmi" and verified that this was used 01:07 < lool> but the cross-build didn't expose the issue 01:08 < lool> I'm trying another cross-build with the exact Debian tree rather than busybox git + Debian patch 01:08 < michaelh1> lool: OK. so tryexec.clone.0 seems to be
Results for 4.5.2 (Debian 4.5.2-8) testsuite on sh4-unknown-linux-gnu
Results for 4.5.2 (Debian 4.5.2-8) testsuite on sh4-unknown-linux-gnu LAST_UPDATED: Tue Mar 29 17:53:55 UTC 2011 (revision 171685) Target: sh4-linux-gnu gcc version 4.5.2 (Debian 4.5.2-8) Native configuration is sh4-unknown-linux-gnu === g++ tests === Running target unix FAIL: g++.dg/debug/dwarf2/icf.C scan-assembler .section.*.debug_dcall FAIL: g++.dg/debug/dwarf2/icf.C scan-assembler New caller FAIL: g++.dg/debug/dwarf2/icf.C scan-assembler Caller DIE offset FAIL: g++.dg/debug/dwarf2/icf.C scan-assembler Callee DIE offset UNRESOLVED: attribute_plugin.c compilation, -I. -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../gcc -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/build/gcc/testsuite/g++/../../../gcc -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../include -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../libcpp/include -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/build/gcc/testsuite/g++/../../../intl -DIN_GCC -fPIC -shared UNRESOLVED: pragma_plugin.c compilation, -I. -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../gcc -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/build/gcc/testsuite/g++/../../../gcc -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../include -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../libcpp/include -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/build/gcc/testsuite/g++/../../../intl -DIN_GCC -fPIC -shared UNRESOLVED: selfassign.c compilation, -I. -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../gcc -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/build/gcc/testsuite/g++/../../../gcc -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../include -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../libcpp/include -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/build/gcc/testsuite/g++/../../../intl -O -DIN_GCC -fPIC -shared UNRESOLVED: dumb_plugin.c compilation, -I. -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../gcc -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/build/gcc/testsuite/g++/../../../gcc -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../include -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../libcpp/include -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/build/gcc/testsuite/g++/../../../intl -DIN_GCC -fPIC -shared UNRESOLVED: header_plugin.c compilation, -I. -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../gcc -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/build/gcc/testsuite/g++/../../../gcc -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../include -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../libcpp/include -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/build/gcc/testsuite/g++/../../../intl -DIN_GCC -fPIC -shared === g++ Summary for unix === # of expected passes22313 # of unexpected failures4 # of expected failures 153 # of unresolved testcases 5 # of unsupported tests 205 Running target unix/-fstack-protector FAIL: g++.dg/debug/dwarf2/icf.C scan-assembler .section.*.debug_dcall FAIL: g++.dg/debug/dwarf2/icf.C scan-assembler New caller FAIL: g++.dg/debug/dwarf2/icf.C scan-assembler Caller DIE offset FAIL: g++.dg/debug/dwarf2/icf.C scan-assembler Callee DIE offset UNRESOLVED: attribute_plugin.c compilation, -I. -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../gcc -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/build/gcc/testsuite/g++/../../../gcc -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../include -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../libcpp/include -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/build/gcc/testsuite/g++/../../../intl -DIN_GCC -fPIC -shared UNRESOLVED: pragma_plugin.c compilation, -I. -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite -I/build/buildd-gcc-4.5_4.5.2-8-sh4-25UMxx/gcc-4.5-4.5.2/src/gcc/testsuite/../../gcc -I/b
Results for 4.4.5 (Debian 4.4.5-15) testsuite on sh4-unknown-linux-gnu
Results for 4.4.5 (Debian 4.4.5-15) testsuite on sh4-unknown-linux-gnu LAST_UPDATED: Sun Mar 13 18:10:06 UTC 2011 (revision 170923) Target: sh4-linux-gnu gcc version 4.4.5 (Debian 4.4.5-15) Native configuration is sh4-unknown-linux-gnu === g++ tests === Running target unix FAIL: g++.dg/torture/pr36191.C -O3 -fomit-frame-pointer (test for excess errors) === g++ Summary for unix === # of expected passes19676 # of unexpected failures1 # of expected failures 159 # of unsupported tests 167 Running target unix/-fstack-protector FAIL: g++.dg/torture/pr36191.C -O3 -fomit-frame-pointer (test for excess errors) === g++ Summary for unix/-fstack-protector === # of expected passes19676 # of unexpected failures1 # of expected failures 159 # of unsupported tests 167 === g++ Summary === # of expected passes39352 # of unexpected failures2 # of expected failures 318 # of unsupported tests 334 /build/buildd-gcc-4.4_4.4.5-15-sh4-wtTmwg/gcc-4.4-4.4.5/build/gcc/testsuite/g++/../../g++ version 4.4.5 (Debian 4.4.5-15) === gcc tests === Running target unix FAIL: gcc.c-torture/execute/pr44683.c execution, -O1 FAIL: gcc.c-torture/execute/pr44683.c execution, -O2 FAIL: gcc.c-torture/execute/pr44683.c execution, -O3 -fomit-frame-pointer FAIL: gcc.c-torture/execute/pr44683.c execution, -O3 -g FAIL: gcc.dg/tree-ssa/pr42585.c scan-tree-dump-times optimized "struct _fat_ptr _ans" 0 FAIL: gcc.dg/tree-ssa/pr42585.c scan-tree-dump-times optimized "struct _fat_ptr _T2" 0 === gcc Summary for unix === # of expected passes51044 # of unexpected failures6 # of expected failures 117 # of unsupported tests 552 Running target unix/-fstack-protector FAIL: gcc.c-torture/compile/limits-blockid.c -O0 (internal compiler error) FAIL: gcc.c-torture/compile/limits-blockid.c -O0 (test for excess errors) FAIL: gcc.c-torture/execute/pr44683.c execution, -O1 FAIL: gcc.c-torture/execute/pr44683.c execution, -O2 FAIL: gcc.c-torture/execute/pr44683.c execution, -O3 -fomit-frame-pointer FAIL: gcc.c-torture/execute/pr44683.c execution, -O3 -g WARNING: program timed out. FAIL: gcc.dg/c99-intconst-1.c (test for excess errors) FAIL: gcc.dg/tree-ssa/pr42585.c scan-tree-dump-times optimized "struct _fat_ptr _ans" 0 FAIL: gcc.dg/tree-ssa/pr42585.c scan-tree-dump-times optimized "struct _fat_ptr _T2" 0 === gcc Summary for unix/-fstack-protector === # of expected passes51042 # of unexpected failures9 # of expected failures 117 # of unsupported tests 552 === gcc Summary === # of expected passes102086 # of unexpected failures15 # of expected failures 234 # of unsupported tests 1104 /build/buildd-gcc-4.4_4.4.5-15-sh4-wtTmwg/gcc-4.4-4.4.5/build/gcc/xgcc version 4.4.5 (Debian 4.4.5-15) === gfortran tests === Running target unix FAIL: gfortran.dg/common_5.f -O (test for warnings, line 6) === gfortran Summary for unix === # of expected passes29513 # of unexpected failures1 # of expected failures 13 # of unsupported tests 266 Running target unix/-fstack-protector FAIL: gfortran.dg/common_5.f -O (test for warnings, line 6) === gfortran Summary for unix/-fstack-protector === # of expected passes29513 # of unexpected failures1 # of expected failures 13 # of unsupported tests 266 === gfortran Summary === # of expected passes59026 # of unexpected failures2 # of expected failures 26 # of unsupported tests 532 /build/buildd-gcc-4.4_4.4.5-15-sh4-wtTmwg/gcc-4.4-4.4.5/build/gcc/testsuite/gfortran/../../gfortran version 4.4.5 (Debian 4.4.5-15) === obj-c++ tests === Running target unix XPASS: obj-c++.dg/comp-types-10.mm (test for excess errors) UNRESOLVED: obj-c++.dg/lookup-2.mm compilation failed to produce executable UNRESOLVED: obj-c++.dg/try-catch-2.mm compilation failed to produce executable UNRESOLVED: obj-c++.dg/try-catch-9.mm compilation failed to produce executable === obj-c++ Summary for unix === # of expected passes436 # of unexpected successes 1 # of expected failures 9 # of unresolved testcases 3 # of unsupported tests 13 Running target unix/-fstack-protector XPASS: obj-c++.dg/comp-types-10.mm (test for excess errors) UNRESOLVED: obj-c++.dg/lookup-2.mm compilation failed to produce executable UNRESOLVED: obj-c++.dg/try-catch-2.mm compilation failed to produce executable UNRESOLVED: obj-c++.dg/try-catch-9.mm compilation failed to produce executable === obj-c++ Summary for unix/-fstack-pro