gnustep-dev
[Top][All Lists]
Advanced

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

Issues linking on NetBSD and Clang


From: Riccardo Mottola
Subject: Issues linking on NetBSD and Clang
Date: Sat, 22 Sep 2018 12:23:01 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0

Hi,


I have upgraded to NetBSD 8 on x86. This means I updated userland as well as dependencies, thus I need to reconfigure and rebuild also GNUstep.


I configured to use clang and libobjc2 this way:

./configure --prefix=/ --with-layout=gnustep --with-library-combo=ng-gnu-gnu CC=clang CXX=clang++

knowing that we have issues with "gnu" I used "ng". This should enable the modern runtime, right?


However, when configuring base, I get an issue:

configure:7855: checking whether objc really works
configure:7875: clang -o conftest -g -O2  -I/Local/Library/Headers -I/Local/Library/Headers -I/System/Library/Headers -I/usr/pkg/include -I/System/Library/Headers  -x objective-c -L/Local/Library/Libraries -L/Local/Library/Libraries -L/System/Library/Libraries -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/System/Library/Libraries conftest.c -lrt  -lpthread -rdynamic -pthread -fexceptions -fobjc-runtime=gnustep-1.8 -fblocks -L/home/multix/GNUstep/Library/Libraries -L/Local/Library/Libraries -L/System/Library/Libraries -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lpthread -lobjc -lm -lpthread  >&5
In file included from conftest.c:104:
In file included from ././config/config.objc.m:2:
././config/objc-common.g:54:3: warning: assignment to Objective-C's isa is deprecated in favor of object_setClass() [-Wdeprecated-objc-isa-usage]
  obj->isa = self;
  ^  ~~~~~~~
  object_setClass( , )
././config/objc-common.g:47:5: note: instance variable is declared here
 id isa;
    ^
1 warning generated.
/System/Library/Libraries/libobjc.so: undefined reference to `_Unwind_GetDataRelBase'
/System/Library/Libraries/libobjc.so: undefined reference to `_Unwind_SetGR'
/System/Library/Libraries/libobjc.so: undefined reference to `_Unwind_GetLanguageSpecificData' /System/Library/Libraries/libobjc.so: undefined reference to `_Unwind_DeleteException' /System/Library/Libraries/libobjc.so: undefined reference to `__gcc_personality_v0' /System/Library/Libraries/libobjc.so: undefined reference to `_Unwind_Resume_or_Rethrow' /System/Library/Libraries/libobjc.so: undefined reference to `_Unwind_RaiseException'
/System/Library/Libraries/libobjc.so: undefined reference to `_Unwind_SetIP'
/System/Library/Libraries/libobjc.so: undefined reference to `_Unwind_GetRegionStart' /System/Library/Libraries/libobjc.so: undefined reference to `_Unwind_GetTextRelBase' /System/Library/Libraries/libobjc.so: undefined reference to `_Unwind_Resume'
/System/Library/Libraries/libobjc.so: undefined reference to `_Unwind_GetIP'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
configure:7875: $? = 1


I wonder why "gcc personality" ?


I am confused.


Riccardo




reply via email to

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