|
From: | Riccardo Mottola |
Subject: | Re: objc compiler not detected |
Date: | Fri, 04 Oct 2013 10:45:04 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0 SeaMonkey/2.21 |
Hi Wolfgang Wolfgang Lux wrote:
I tried building the test standalone I can reproduce the error (just building config.objc.m). The problem reproduces:Riccardo Mottola wrote:configure:13173: checking whether objc really works configure:13203: gcc -o conftest -g -O2 -I/Local/Library/Headers -I/Local/Library/Headers -I/System/Library/Headers -I/usr/pkg/include -fgnu-runtime -x objective-c -L/Local/Library/Libraries -L/Local/Library/Libraries -L/System/Library/Libraries -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c -lrt -lpthread -rdynamic -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -shared-libgcc -pthread -fexceptions -fgnu-runtime -L/home/multix/GNUstep/Library/Libraries -L/Local/Library/Libraries -L/System/Library/Libraries -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lobjc -lm >&5 In file included from ./config/config.objc.m:2:0, from conftest.c:97: ./config/objc-common.g:30:1: warning: cannot find interface declaration for 'NXConstantString' configure:13207: $? = 0 configure:13213: ./conftest objc runtime: cannot find class Test Abort (core dumped)So this is the real problem. The compiler apparently produces an executable for the source file, but when running it it doesn't find the Test class (which is defined in config/config.objc.m). Not sure why this happens.
grid$ ./conftest objc runtime: cannot find class Test [1] Abort trap (core dumped) ./conftest the stacktrace doesn't reveal anything useful to my eyes: #0 0xbbb37c17 in _lwp_kill () from /usr/lib/libc.so.12 #1 0xbbb37bb6 in raise () from /usr/lib/libc.so.12 #2 0xbbb371f7 in abort () from /usr/lib/libc.so.12 #3 0xbbbbdf93 in objc_verror () from /usr/lib/libobjc.so.3 #4 0xbbbbdfd2 in objc_error () from /usr/lib/libobjc.so.3 #5 0xbbbbd3a3 in objc_get_class () from /usr/lib/libobjc.so.3 #6 0x080489a5 in main () at config.objc.m:21Did I manage to get a broken runtime? I hope not. I wonder what could be going bad here.
I reduced the compile line to:gcc -o conftest -g -O2 -fgnu-runtime -x objective-c config.objc.m -lrt -lpthread -rdynamic -shared-libgcc -pthread -fexceptions -fgnu-runtime -lobjc -lm
since we do not need all the headers and libraries anyway (and the compiler is much faster! wow!). However, same error :(
Riccardo
[Prev in Thread] | Current Thread | [Next in Thread] |