bugGNUstep - Bugs: bug #15163, Building Bundles on Darwin 8 with...

Group
 
 

bug #15163: Building Bundles on Darwin 8 with FSF GCC fails (GNUMake

Submitter:  Emanuel Zephir <ezephir>
Submitted:  Wed 07 Dec 2005 09:07:59 AM UTC
   
 
Category:  Makefiles Severity:  3 - Normal
Item Group:  Bug Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 17 Mar 2007 04:04:20 PM UTC, comment #2: 

Adam and Yves fixed this on trunk on 2007-02-16

Thanks

Nicola Pero <nico>
Group Member
Wed 07 Dec 2005 09:10:59 AM UTC, comment #1: 

This is for GNUStep Make 1.11.1, by the way.

Emanuel Zephir <ezephir>
Wed 07 Dec 2005 09:07:59 AM UTC, original submission:  

I first observed this problem attempting to build gnustep-back. Upon attempting to make, I would eventually run into an error similar to the following:

make[3]: Nothing to be done for `internal-subproject-all'.
Making all for bundle libgnustep-back-010...
 Linking bundle libgnustep-back-010 ...
/usr/bin/ld: warning undefined symbols:
___objc_class_name_NSConstantString
___objc_class_name_NSObject

... lots of symbols from Darwin, GNUStep, Std C Library ...

_ungetc
_mblen
/usr/bin/ld: /usr/X11R6/lib/libX11.a(HVC.o) has external relocation entries in non-writable section (__TEXT,__text) for symbols:
restFP
saveFP
make[2]: * [libgnustep-back-010.bundle/./libgnustep-back-010] Error 1
make[1]: * [libgnustep-back-010.all.bundle.variables] Error 2
make: * [internal-all] Error 2

After a long time in #gnustep I got this working. I suggest changing BUNDLE_LD for Darwin from /usr/bin/ld to $(CC) in target.make. In addition, change BUNDLE_LDFLAGS to include only -bundle. It seems that gcc handle's the situation well and links everything appropriately (including /usr/lib/bundle1.o).

If you choose to solve the problem this way, also note that -bundle cannot be the first argument to FSF GCC. I rearranged BUNDLE_LINK_CMD to account for this.

Emanuel Zephir <ezephir>

 

(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 nico (Posted a comment)
  •  

    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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-03-17 nico Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code