single-object prelink warnings, empty i386 TOC
single-object prelink warnings, empty i386 TOC
- Subject: single-object prelink warnings, empty i386 TOC
- From: Steve Christensen <email@hidden>
- Date: Sun, 4 Jun 2006 13:01:13 -0700
One of my targets is a static library containing common code that the
rest of the targets used. Just to see if there's any difference in
how things work, I turned on "perform single-object prelink." When I
do so, the build log spits out several unexpected messages. Is this a
configuration problem on my end or something that Xcode's not doing
correctly?
Here are the relevant build settings, pulled from the project file:
ARCHS = (
ppc,
i386,
);
COPY_PHASE_STRIP = YES;
GCC_DEBUGGING_SYMBOLS = full;
GCC_INCREASE_PRECOMPILED_HEADER_SHARING = YES;
GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
GCC_OPTIMIZATION_LEVEL = s;
GCC_PFE_FILE_C_DIALECTS = "c++ objective-c++";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
GCC_VERSION_ppc = 3.3;
GENERATE_MASTER_OBJECT_FILE = YES;
MACH_O_TYPE = staticlib;
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4;
MACOSX_DEPLOYMENT_TARGET_ppc = 10.3;
PREBINDING = NO;
PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = NO;
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
STRIP_INSTALLED_PRODUCT = NO;
STRIP_STYLE = "non-global";
And here's a portion of the build log:
MasterObjectLink "Foo.build/Objects-normal/libFoo.o-ppc-master.o"
cd ...
/usr/bin/ld -r -arch ppc ... -o Foo.build/Objects-normal/
libFoo.o-ppc-master.o
/usr/bin/ld: warning weak symbol references not set in output with
MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1
/usr/bin/ld: warning weak referenced symbols:
[list of Carbon API symbols]
MasterObjectLink "Foo.build/Objects-normal/libFoo.o-i386-master.o"
cd ...
/usr/bin/ld -r -arch i386 ... -o Foo.build/Objects-normal/
libFoo.o-i386-master.o
Libtool "Foo.build/Objects-normal/ppc/libFoo.o" normal ppc
cd ...
setenv MACOSX_DEPLOYMENT_TARGET 10.3
/usr/bin/libtool
-static -arch_only ppc
-o Foo.build/Objects-normal/ppc/libFoo.o
-LOutput/Intermediate\ Pieces
-framework Carbon
-framework QuickTime
-filelist Foo.build/Objects-normal/ppc/Foo.LinkFileList
-syslibroot /Developer/SDKs/MacOSX10.4u.sdk
Libtool "Foo.build/Objects-normal/i386/libFoo.o" normal i386
cd ...
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/usr/bin/libtool
-static -arch_only i386
-o Foo.build/Objects-normal/i386/libFoo.o
-LOutput/Intermediate\ Pieces
-framework Carbon
-framework QuickTime
-filelist Foo.build/Objects-normal/i386/Foo.LinkFileList
-syslibroot /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/libtool: warning for library: Foo.build/Objects-normal/i386/
libFoo.o the table of contents is empty (no object file members in
the library define global symbols)
CreateUniversalBinary "Output/Intermediate Pieces/libFoo.o" normal
"ppc i386"
cd ...
/usr/bin/libtool
-static
Foo.build/Objects-normal/ppc/libFoo.o
Foo.build/Objects-normal/i386/libFoo.o
-o libFoo.o
/usr/bin/libtool: warning for library: libFoo.o for architecture:
i386 the table of contents is empty (no object file members in the
library define global symbols)
_______________________________________________
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