Hi all,

I've been updating scripts for building gnustep-base for Android. Sadly,
I'm having issues with building libobjc2.

It's failing on arc.m and looks like a possible bug in clang. I have no
idea how to dig deeper. Other files up to this one seem to be building fine.

David, any thoughts?

Scripts: https://bitbucket.org/ivucica/gnustep-android
I'm using it on non-pristine Ubuntu 14.04.
clang3.4 comes with Android NDK r9d.

The command line below has been taken from "make VERBOSE=y", as generated
by cmake.

ivucica@FloatingBox:~/gnustep-android/gs/gnustep/dev-libs/libobjc2/build$
/tmp/my-android-toolchain/bin/clang34  -DANDROID -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
-target armv5te-none-linux-androideabi -Qunused-arguments
--sysroot=/tmp/my-android-toolchain/sysroot -fpic -funwind-tables
-fsigned-char -no-canonical-prefixes -march=armv5te -mtune=xscale
-msoft-float -fdata-sections -ffunction-sections -Xclang -mnoexecstack
 -fexceptions -fPIC -isystem /tmp/my-android-toolchain/sysroot/usr/include
-isystem /tmp/my-android-toolchain/include/c++/4.6 -isystem
/tmp/my-android-toolchain/include/c++/4.6/arm-linux-androideabi/thumb
-Wno-deprecated-objc-isa-usage -Wno-objc-root-class
-fobjc-runtime=gnustep-1.7 -o CMakeFiles/objc.dir/arc.m.o   -c
/home/ivucica/gnustep-android/gs/gnustep/dev-libs/libobjc2/arc.m -v
clang version 3.4 (https://bitbucket.org/loganchien/clang
c34bb12af3af42f671296cdb978b34b931062d2a) (
https://bitbucket.org/loganchien/llvm
d09f2eff406d17c86d51db7660bd374cf092e6ed)
Target: armv5te-none-linux-androideabi
Thread model: posix
Found candidate GCC installation:
/tmp/my-android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.6
Selected GCC installation:
/tmp/my-android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.6
 "/tmp/my-android-toolchain/bin/clang34" -cc1 -triple
armv5e-none-linux-androideabi -S -disable-free -main-file-name arc.m
-mrelocation-model pic -pic-level 2 -mdisable-fp-elim -fmath-errno
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu arm1022e
-target-feature +soft-float -target-feature +soft-float-abi -target-feature
-neon -target-abi aapcs-linux -msoft-float -mfloat-abi soft -backend-option
-arm-enable-ehabi -backend-option -arm-enable-ehabi-descriptors
-target-linker-version 2.22 -v -ffunction-sections -fdata-sections
-coverage-file /tmp/arc-c22c02.s -resource-dir
/tmp/my-android-toolchain/bin/../lib/clang/3.4 -isystem
/tmp/my-android-toolchain/sysroot/usr/include -isystem
/tmp/my-android-toolchain/include/c++/4.6 -isystem
/tmp/my-android-toolchain/include/c++/4.6/arm-linux-androideabi/thumb -D
ANDROID -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 -isysroot
/tmp/my-android-toolchain/sysroot -internal-isystem
/tmp/my-android-toolchain/sysroot/usr/local/include -internal-isystem
/tmp/my-android-toolchain/bin/../lib/clang/3.4/include
-internal-externc-isystem /tmp/my-android-toolchain/sysroot/include
-internal-externc-isystem /tmp/my-android-toolchain/sysroot/usr/include
-Wno-deprecated-objc-isa-usage -Wno-objc-root-class -std=gnu99
-fno-dwarf-directory-asm -fdebug-compilation-dir
/home/ivucica/gnustep-android/gs/gnustep/dev-libs/libobjc2/build
-ferror-limit 19 -fmessage-length 272 -mstackrealign -mllvm
-disable-global-ctor-const-promotion -fobjc-runtime=gnustep-1.7
-fobjc-dispatch-method=non-legacy -fobjc-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp
-fno-cxx-missing-return-semantics -mnoexecstack -o /tmp/arc-c22c02.s -x
objective-c /home/ivucica/gnustep-android/gs/gnustep/dev-libs/libobjc2/arc.m
clang -cc1 version 3.4 based upon LLVM 3.4 default target
x86_64-pc-linux-gnu
ignoring nonexistent directory
"/tmp/my-android-toolchain/sysroot/usr/local/include"
ignoring nonexistent directory "/tmp/my-android-toolchain/sysroot/include"
ignoring duplicate directory "/tmp/my-android-toolchain/sysroot/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 /tmp/my-android-toolchain/sysroot/usr/include
 /tmp/my-android-toolchain/include/c++/4.6
 /tmp/my-android-toolchain/include/c++/4.6/arm-linux-androideabi/thumb
 /tmp/my-android-toolchain/bin/../lib/clang/3.4/include
End of search list.
 
"/tmp/my-android-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/as"
-mfloat-abi=soft -march=armv5te -o CMakeFiles/objc.dir/arc.m.o
/tmp/arc-c22c02.s
/tmp/arc-c22c02.s: Assembler messages:
/tmp/arc-c22c02.s:5361: Error: Missing symbol name in directive
/tmp/arc-c22c02.s:5361: Error: unrecognized symbol type
".objc_sel_nameaddObject"
/tmp/arc-c22c02.s:5361: Error: junk at end of line, first unrecognized
character is `:'
/tmp/arc-c22c02.s:5363: Error: Missing symbol name in directive
/tmp/arc-c22c02.s:5363: Error: junk at end of line, first unrecognized
character is `"'
/tmp/arc-c22c02.s:5364: Error: junk at end of line, first unrecognized
character is `"'
/tmp/arc-c22c02.s:5366: Error: expected comma after name `' in .size
directive
/tmp/arc-c22c02.s:5434: Error: bad expression
/tmp/arc-c22c02.s:5434: Error: junk at end of line, first unrecognized
character is `.'
clang34: error: assembler command failed with exit code 1 (use -v to see
invocation)


-- 
Ivan Vučica
i...@vucica.net
_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to