• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Link error when building release config of framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Link error when building release config of framework


  • Subject: Re: Link error when building release config of framework
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 02 Jan 2008 10:48:57 -0800

We've seen this before when linking a gcc4.0-built executable against a link library built with gcc 3.3.

As your Release configuration will prefer to get link libraries from the shared Release configuration build products folder, this may be a result of having an old stale library in that folder that you haven't rebuilt using gcc 4 and Xcode 3.

Chris

Top-posted from my iPhone

On Jan 2, 2008, at 10:09 AM, Steve Mills <email@hidden> wrote:

I'm getting the following errors only when building a release build of a framework. The debug build does not generate these errors. The errors look like this:

ld: /depot/8.0.x/creatortech/desktop/mac/MAAEL/build/MAAEL.build/ Release/MAAEL.build/Objects-normal/ppc/MAAEL Utes.o has local relocation entries in non-writable section (__TEXT,__symbol_stub1)
/Xcode2.5/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/ libtool: internal link edit command failed



Here is the full build transcript:

Checking Dependencies
Ld /depot/8.0.x/creatortech/desktop/mac/MAAEL/build/MAAEL.build/ Release/MAAEL.build/Objects-normal/ppc/MAAEL normal ppc
cd /depot/8.0.x/creatortech/desktop/mac/MAAEL
/Xcode2.5/usr/bin/g++-4.0 -o /depot/8.0.x/creatortech/desktop/mac/ MAAEL/build/MAAEL.build/Release/MAAEL.build/Objects-normal/ppc/MAAEL -L/depot/8.0.x/creatortech/desktop/mac/MAAEL/build/Release -F/depot/ 8.0.x/creatortech/desktop/mac/MAAEL/build/Release -filelist /depot/ 8.0.x/creatortech/desktop/mac/MAAEL/build/MAAEL.build/Release/ MAAEL.build/Objects-normal/ppc/MAAEL.LinkFileList -framework Carbon - arch ppc -Wl,-single_module -compatibility_version 1 - current_version 1 -install_name /Users/tut/Library/Frameworks/ MAAEL.framework/Versions/A/MAAEL -Wl,-Y,1455 -dynamiclib -mmacosx- version-min=10.3 -Wl,-dead_strip -isysroot /Xcode2.5/SDKs/ MacOSX10.3.9.sdk
ld: /depot/8.0.x/creatortech/desktop/mac/MAAEL/build/MAAEL.build/ Release/MAAEL.build/Objects-normal/ppc/MAAEL Utes.o has local relocation entries in non-writable section (__TEXT,__symbol_stub1)
/Xcode2.5/usr/bin/../libexec/gcc/powerpc-apple-darwin8/4.0.1/ libtool: internal link edit command failed


Ld /depot/8.0.x/creatortech/desktop/mac/MAAEL/build/MAAEL.build/ Release/MAAEL.build/Objects-normal/i386/MAAEL normal i386
cd /depot/8.0.x/creatortech/desktop/mac/MAAEL
/Xcode2.5/usr/bin/g++-4.0 -o /depot/8.0.x/creatortech/desktop/mac/ MAAEL/build/MAAEL.build/Release/MAAEL.build/Objects-normal/i386/ MAAEL -L/depot/8.0.x/creatortech/desktop/mac/MAAEL/build/Release -F/ depot/8.0.x/creatortech/desktop/mac/MAAEL/build/Release -filelist / depot/8.0.x/creatortech/desktop/mac/MAAEL/build/MAAEL.build/Release/ MAAEL.build/Objects-normal/i386/MAAEL.LinkFileList -framework Carbon -arch i386 -Wl,-single_module -compatibility_version 1 - current_version 1 -install_name /Users/tut/Library/Frameworks/ MAAEL.framework/Versions/A/MAAEL -Wl,-Y,1455 -dynamiclib -mmacosx- version-min=10.4 -Wl,-dead_strip -isysroot /Xcode2.5/SDKs/ MacOSX10.4u.sdk
ld: /depot/8.0.x/creatortech/desktop/mac/MAAEL/build/MAAEL.build/ Release/MAAEL.build/Objects-normal/i386/AEUtilities.o has local relocation entries in non-writable section (__TEXT,__textcoal_nt)
/Xcode2.5/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/libtool: internal link edit command failed



Searching the Xcode documention in Xcode for "local relocation" only locates the section about linking, but only the word "relocation" is referenced under dead code stripping. Any ideas about what's wrong? The file MAAEL Utes.cp only has one small function in it:


OSErr FSSpecFromPathName(FSSpec* const spec, const StringPtr path, const short pathLen)
{
AliasHandle alias = nil;
OSErr err = NewAliasMinimalFromFullPath(pathLen, path, nil, nil, &alias);


   if(err == noErr) {
       Boolean            wasChanged;

       err = ResolveAlias(nil, alias, spec, &wasChanged);
   }

   if(alias)
       DisposeHandle((Handle)alias);

   return err;
}


Steve Mills Drummer, Mac geek http://sjmills5.home.mchsi.com/


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Link error when building release config of framework
      • From: Steve Mills <email@hidden>
References: 
 >Link error when building release config of framework (From: Steve Mills <email@hidden>)

  • Prev by Date: BFD error in Debugger for Xcode 3.0
  • Next by Date: ld linking /usr/local/lib/libxxx.dylib instead of ImageIO/.../lib
  • Previous by thread: Link error when building release config of framework
  • Next by thread: Re: Link error when building release config of framework
  • Index(es):
    • Date
    • Thread