Link error when building release config of framework
Link error when building release config of framework
- Subject: Link error when building release config of framework
- From: Steve Mills <email@hidden>
- Date: Wed, 2 Jan 2008 12:09:24 -0600
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