discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUstep install on FreeBSD9.1


From: Steven LeMaire
Subject: Re: GNUstep install on FreeBSD9.1
Date: Sat, 6 Apr 2013 20:39:31 -0400

Hi David,

I think I've narrowed it down in the config log:

configure:12794: checking whether objc really works
configure:12824: clang -o conftest -O2 -pipe 
-I/usr/local/include/libxml2/libxml -DHAVE_DLADDR=1 -I/usr/local/include 
-DOBJC2RUNTIME=1 -fno-strict-aliasi
ng  -I/usr/local/GNUstep/System/Library/Headers 
-I/usr/local/GNUstep/Local/Library/Headers 
-I/usr/local/GNUstep/Local/Library/Headers -I/usr/local/includ
e  -fgnu-runtime -x objective-c  -L/usr/local/GNUstep/System/Library/Libraries 
-L/usr/local/GNUstep/Local/Library/Libraries -L/usr/local/GNUstep/Local/Li
brary/Libraries -L/usr/local/lib conftest.c -lrt  -lpthread -rdynamic 
-L/usr/local/lib -pthread -fgnu-runtime -L/root/GNUstep/Library/Libraries 
-L/usr/lo
cal/GNUstep/Local/Library/Libraries 
-L/usr/local/GNUstep/System/Library/Libraries -L/usr/local/lib -l:libobjc.so.16 
-lm     >&5
In file included from conftest.c:97:
In file included from ././config/config.objc.m:2:
././config/objc-common.g:46:8: warning: direct access to objective-c's isa is 
deprecated in favor of object_setClass() and object_getClass() [-Wdeprecate
d-objc-isa-usage]
  obj->isa = self;
       ^
././config/objc-common.g:39:5: note: instance variable is declared here
 id isa;
    ^
././config/objc-common.g:37:12: warning: class 'NSObject' defined without 
specifying a base class [-Wobjc-root-class]
@interface NSObject
           ^
././config/objc-common.g:37:20: note: add a super class to fix this problem
@interface NSObject
                   ^
                    : NSObject 
In file included from conftest.c:97:
././config/config.objc.m:4:12: warning: class 'Test' defined without specifying 
a base class [-Wobjc-root-class]
@interface Test 
           ^
././config/config.objc.m:4:16: note: add a super class to fix this problem
@interface Test 
               ^
                : NSObject 
3 warnings generated.
/usr/bin/ld: conftest: hidden symbol `__i686.get_pc_thunk.bx' in 
/usr/lib/libgcc.a(umodsi3.o) is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
clang: error: linker command failed with exit code 1 (use -v to see invocation)
-------------------

I've tried manually compiling & linking a bare bones objc program, and I get 
the same results at link time.
This is with clang v 3.2, I have libobjc2 installed and I added these options 
to /etc/make.conf

GNUSTEP_WITH_CLANG=yes
USE_GNUSTEP_CONFIGURE=yes
ADDITIONAL_CFLAGS +=-I/usr/local/include
ADDITIONAL_LDFLAGS +=-L/usr/local/lib -lobjc
CC=clang
CXX=clang++

The linking with /usr/lib/libgcc.a seems to be a default ? Is it really needed 
or can it be turned off with some linker switch ? (I haven't found any).

Cheers
Steven



On 2013-04-05, at 3:18 AM, David Chisnall wrote:

> On 5 Apr 2013, at 01:25, Steven LeMaire <photocdn@gmail.com> wrote:
> 
>> configure: error: The Objective-C compiler does not work or is not installed 
>> properly."
> 
> Please can you post the relevant part of the config.log file, telling us what 
> the error message was and what actually failed?
> 
> David
> 
> 
> -- Send from my Jacquard Loom
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]