bugGNUstep - Bugs: bug #33602, Linking GSspell.m with CLang under...

Group
 
 

bug #33602: Linking GSspell.m with CLang under Arch.

Submitter:  César Yáñez Fernández <hokum>
Submitted:  Mon 20 Jun 2011 01:44:42 AM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Declined
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 11 Sep 2011 08:07:40 PM UTC, comment #2: 

As David pointed out this is a compilation problem not a GNUstep bug. You should either find a way to change the order of the linking directories on the command line, or remove the old ObjC runtime from /usr/lib.

Fred Kiefer <FredKiefer>
Group Member
Wed 06 Jul 2011 07:29:46 PM UTC, comment #1: 

Comment by David Chisnall (who hasn't got a user account in this bug tracking system):

#33602 looks like it is caused by -L/usr/lib being before the GNUstep -L directives on the command line, meaning it's not being linked against libobjc2 at all.

Fred Kiefer <FredKiefer>
Group Member
Mon 20 Jun 2011 01:44:42 AM UTC, original submission:  

Greetings everyone, details below:

gnustep-base: r33349
gnustep-make: r33256
libobjc2: r33206
clang version 2.9 (tags/RELEASE_29/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
gcc (GCC) 4.6.0 20110603 (prerelease)
Linker: GNU gold (GNU Binutils 2.21.0.20110430) 1.11
GNU make 3.82
Distribution: Arch Linux updated.

I installed first gnustep-make, then libobjc2, then gnustep-make again, then gnustep-base, in that order, using CC=clang as environment variable.

Configure options: CC=clang ./configure --prefix=/ --sysconfdir=/etc/GNUstep --localstatedir=/var --with-x

Error message follows:

clang GSspell.m -c \
      -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -fPIC -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -march=x86-64 -mtune=generic -O2 -pipe -fgnu-runtime -fconstant-string-class=NSConstantString -I/usr/include/libpng14 -I../Headers/Additions -I../Headers -I../Source/. -I. -I/home/cesar/Library/Headers -I/Developer/Headers \
       -o obj/GSspell.obj/GSspell.m.o
clang  -rdynamic     -Wl,--hash-style=gnu -Wl,--as-needed  -shared-libgcc -fexceptions -fgnu-runtime -o GSspell.service/./GSspell \
./obj/GSspell.obj/GSspell.m.o   -Wl,--hash-style=gnu -Wl,--as-needed -L/usr/lib -lpng14    -L../Source/./obj -L../Model/./obj    -L/home/cesar/Library/Libraries -L/Library/Libraries -L/Network/Library/Libraries -L/System/Library/Libraries     -lgnustep-gui -ltiff -lz -ljpeg -lm   -lgnustep-base    -lobjc   -lm
clang: warning: argument unused during compilation: '-shared-libgcc'
/usr/bin/ld.gold: ../Source/./obj/libgnustep-gui.so: error: undefined reference to 'object_getClass'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: * [GSspell.service/./GSspell] Error 1
make[3]: * [internal-service-run-compile-submake] Error 2
make[2]: * [GSspell.all.service.variables] Error 2
make[1]: * [internal-all] Error 2
make[1]: se sale del directorio `/home/cesar/ko-ya/packages/gnustep-gui-svn/src/gui-build/Tools'
make: * [internal-all] Error 2

Thank you.

César Yáñez Fernández <hokum>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by FredKiefer (Posted a comment)
  • -email is unavailable- added by hokum (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-09-11 FredKiefer StatusNone Invalid
        Open/ClosedOpen Declined

    Back to the top

    Powered by Savane 3.13-aa77.
    Corresponding source code