|
From: | Mathias Bauer |
Subject: | Re: Problem with catching exceptions on ARM |
Date: | Tue, 04 Feb 2014 14:00:48 +0100 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Am 03.02.14 16:03, schrieb Mathias Bauer:
Am 03.02.14 16:01, schrieb Luboš Doležel:On Mon, 03 Feb 2014 15:55:00 +0100, Mathias Bauer wrote:Unfortunately it turned out that neither the 3.4 nor the trunk version of clang are usable on arm at all: http://llvm.org/bugs/show_bug.cgi?id=18622 Regards, MathiasHi, David Chisnall gave me a piece of advice that adding "-integrated-as" into CFLAGS helps. And it does (although it still is a bug).Thanks! I will try ASAP.
Unfortunately the result is different, but in no way better:
[ 179s] [ 1%] Building C object CMakeFiles/objc.dir/abi_version.c.o [ 179s] /usr/bin/clang -DGC_DEBUG -DGNUSTEP -DNO_LEGACY -DTYPE_DEPENDENT_DISPATCH -D_BSD_SOURCE=1 -D_XOPEN_SOURCE=700 -D__BSD_VISIBLE=1 -D__OBJC_RUNTIME_INTERNAL__=1 -Dobjc_EXPORTS -std=gnu99 -integrated-as -save-temps -v -mcpu=cortex-a8 -mfloat-abi=hard -target armv7hl-suse-linux-gnueabi -fexceptions -fPIC -o CMakeFiles/objc.dir/abi_version.c.o -c /home/abuild/rpmbuild/BUILD/libobjc2-1.8pre/abi_version.c [ 179s] clang version 3.4 (branches/release_34 198681) [ 179s] Target: armv7hl-suse-linux-gnueabi [ 179s] Thread model: posix [ 179s] Found candidate GCC installation: /usr/bin/../lib/gcc/armv7hl-suse-linux-gnueabi/4.8 [ 179s] Found candidate GCC installation: /usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.8 [ 179s] Selected GCC installation: /usr/bin/../lib/gcc/armv7hl-suse-linux-gnueabi/4.8 [ 179s] "/usr/bin/clang-3.4" -cc1 -triple armv7-suse-linux-gnueabi -E -disable-free -disable-llvm-verifier -main-file-name abi_version.c -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -fmath-errno -mconstructor-aliases -fuse-init-array -target-cpu cortex-a8 -target-abi aapcs-linux -mfloat-abi hard -v -coverage-file /home/abuild/rpmbuild/BUILD/libobjc2-1.8pre/Build/abi_version.i -resource-dir /usr/bin/../lib/clang/3.4 -D GC_DEBUG -D GNUSTEP -D NO_LEGACY -D TYPE_DEPENDENT_DISPATCH -D _BSD_SOURCE=1 -D _XOPEN_SOURCE=700 -D __BSD_VISIBLE=1 -D __OBJC_RUNTIME_INTERNAL__=1 -D objc_EXPORTS -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.4/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -std=gnu99 -fdebug-compilation-dir /home/abuild/rpmbuild/BUILD/libobjc2-1.8pre/Build -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fexceptions -fdiagnostics-show-option -vectorize-slp -o abi_version.i -x c /home/abuild/rpmbuild/BUILD/libobjc2-1.8pre/abi_version.c [ 180s] clang -cc1 version 3.4 based upon LLVM 3.4svn default target armv7l-unknown-linux-gnueabi [ 180s] ignoring nonexistent directory "/include" [ 180s] #include "..." search starts here: [ 180s] #include <...> search starts here: [ 180s] /usr/local/include [ 180s] /usr/bin/../lib/clang/3.4/include [ 180s] /usr/include [ 180s] End of search list. [ 180s] "/usr/bin/clang-3.4" -cc1 -triple armv7-suse-linux-gnueabi -S -disable-free -disable-llvm-verifier -main-file-name abi_version.c -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -fmath-errno -mconstructor-aliases -fuse-init-array -target-cpu cortex-a8 -target-abi aapcs-linux -mfloat-abi hard -v -coverage-file /home/abuild/rpmbuild/BUILD/libobjc2-1.8pre/Build/abi_version.s -resource-dir /usr/bin/../lib/clang/3.4 -std=gnu99 -fdebug-compilation-dir /home/abuild/rpmbuild/BUILD/libobjc2-1.8pre/Build -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fexceptions -fdiagnostics-show-option -vectorize-slp -o abi_version.s -x cpp-output abi_version.i [ 180s] clang -cc1 version 3.4 based upon LLVM 3.4svn default target armv7l-unknown-linux-gnueabi [ 180s] #include "..." search starts here: [ 180s] End of search list. [ 181s] "/usr/bin/clang-3.4" -cc1as -triple armv7-suse-linux-gnueabi -filetype obj -main-file-name abi_version.c -target-cpu cortex-a8 -mrelax-all -o CMakeFiles/objc.dir/abi_version.c.o abi_version.s [ 181s] abi_version.s:40:13: error: unexpected token in argument list [ 181s] bl endsWith(PLT)
... and many more of that. Regards, Mathias
[Prev in Thread] | Current Thread | [Next in Thread] |