Hi! I'm trying to port an application developed initially on MacOS to GNUstep to have it running under Linux. The code uses Objective-C (latest flavor, no ARC, but Objective-C 2.0) and is compiled on Mountain Lion using clang.
I did this a year ago and was successful once. I'm now repeating the process as the code base has evolved. I redownloaded the GNUstep libraries and tried to build them again (with clang 3.2 downloaded as binary from the LLVM site). I build base successfully (and make) but it fails in GUI: Making all for service GSspell... Compiling file GSspell.m ... Linking service GSspell ... Creating GSspell.service/Resources/Info-gnustep.plist... Segmentation fault (core dumped) make[3]: *** [GSspell.service/Resources/Info-gnustep.plist] Error 1 make[2]: *** [GSspell.all.service.variables] Error 2 make[1]: *** [internal-all] Error 2 make: *** [internal-all] Error 2 root@ubuntu:/usr/local/src/gnustep-gui-0.23.0# ls Any idea on what could be going on ? I configure as follows: ./configure CC=clang CXX=clang++ LD=gcc CFLAGS='-fblocks -fobjc-nonfragile-abi -Os' and compile with: make CC=clang CXX=clang++ LD=gcc CFLAGS='-fblocks -fobjc-nonfragile-abi -Os' PS/ I decided to recompile GNUstep simply because I was experiencing a crash with my compiled binary during the library initializations of GNUstep/libobjc. Namely, here is the backtrace: [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". [New Thread 0xb7021b40 (LWP 8378)] Program received signal SIGSEGV, Segmentation fault. 0xb7a58d50 in init_protocols () from /usr/local/lib/libobjc.so (gdb) where #0 0xb7a58d50 in init_protocols () from /usr/local/lib/libobjc.so #1 0xb7a58c47 in init_protocols () from /usr/local/lib/libobjc.so #2 0xb7a588c1 in objc_init_protocols () from /usr/local/lib/libobjc.so #3 0xb7a517e3 in objc_try_load_category () from /usr/local/lib/libobjc.so #4 0xb7a57251 in __objc_exec_class () from /usr/local/lib/libobjc.so #5 0xb76d15d4 in .objc_load_function () from /home/ldm/work/platform/Clo/queens2/../ORFoundation/libORFoundation.so #6 0xb7fece9b in ?? () from /lib/ld-linux.so.2 #7 0xb7fecf84 in ?? () from /lib/ld-linux.so.2 #8 0xb7fdf20f in ?? () from /lib/ld-linux.so.2 (gdb) quit A debugging session is active. Which happens so early in the process that it is unlikely to be caused by my own code. Note that my libraries (of which libORFoundation.so is one) uses lots of Objective-C 2.0 features as well as categories. Any hint to get unstuck is much appreciated. PS/ The build was attempted on a VM running Ubuntu 12.04 LTS. You can see the GNUstep libs I downloaded below (for versions) root@ubuntu:/usr/local/src# ls gnustep-back-0.23.0 gnustep-gui-0.23.0 gnustep-startup-0.28.0 gnustep-back-0.23.0.tar.gz gnustep-gui-0.23.0.tar.gz gnustep-startup-0.28.0.tar.gz gnustep-base-1.24.3 gnustep-make-2.6.3 old gnustep-base-1.24.3.tar.gz gnustep-make-2.6.3.tar.gz -- Laurent _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev