• 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
Xcode 2.2 linker problem with 64-bit code and -O0 ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode 2.2 linker problem with 64-bit code and -O0 ?


  • Subject: Xcode 2.2 linker problem with 64-bit code and -O0 ?
  • From: Paul Russell <email@hidden>
  • Date: Thu, 23 Feb 2006 12:22:34 +0000

I have an odd problem with an executable that builds OK for both 64- bit and 32-bit targets when optimisation is enabled (-O3) but which fails to link for a debug build (-O0) for 64-bit targets only (32-bit builds link OK for both debug and deployment targets). The link phase fails claiming that a symbol can't be resolved, but the symbol appears to be a /path/, rather than an actual symbol, as if the linker is getting confused. The linker seems to think that this "symbol" is referenced from a large number of functions throughout the code. The link process looks like this:

Checking Dependencies
Ld /Al2/proj/client/sub-client/proj/grp/prod/ver_latest/legacy/mic/sc/ targ/const/grp/bin/lsa/Mac/build/lsaX.build/Debug/lsaX.build/Objects- normal/ppc64/lsaX normal ppc64
cd /Al2/proj/client/sub-client/proj/grp/prod/ver_latest/legacy/ mic/sc/targ/const/grp/bin/lsa/Mac
/usr/bin/g++-4.0 -o /Al2/proj/client/sub-client/proj/grp/prod/ ver_latest/legacy/mic/sc/targ/const/grp/bin/lsa/Mac/build/lsaX.build/ Debug/lsaX.build/Objects-normal/ppc64/lsaX -L/Al2/proj/client/sub- client/proj/grp/prod/ver_latest/legacy/mic/sc/targ/const/grp/bin/lsa/ Mac/build/Debug -L/Al2/proj/client/sub-client/proj/grp/prod/ ver_latest/legacy/mic/sc/targ/const/grp/bin/lsa/Mac/build/Debug -F/ Al2/proj/client/sub-client/proj/grp/prod/ver_latest/legacy/mic/sc/ targ/const/grp/bin/lsa/Mac/build/Debug -filelist /Al2/proj/client/sub- client/proj/grp/prod/ver_latest/legacy/mic/sc/targ/const/grp/bin/lsa/ Mac/build/lsaX.build/Debug/lsaX.build/Objects-normal/ppc64/ lsaX.LinkFileList -lgrpLib1 -lgrpLib2 -arch ppc64 -mmacosx-version- min=10.3 -lstdc++
can't resolve symbols:
/Al2/proj/client/sub-client/proj/grp/prod/ver_latest/legacy/mic/sc/ targ/const/grp/bin/lsa/Mac/, referenced from:
_SwapInt32Array in lsa.o
ToolVersion() in lsa.o
_main in lsa.o
... lots more functions in various files ...


This is Xcode 2.2, gcc 4.0.1, OS X 10.4.5. Source code is a mixture of C and C++. The executable is a test harness comprising a couple of C/C++ source files and two large-ish static libraries.

Is this a known problem or do I need to file a bug report ? (Also, are 64-bit issues such as this even likely to be fixed now that support for PowerPC and 64-bit code are presumably no longer a priority at Apple ?).

Paul

_______________________________________________
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


  • Prev by Date: Re: Distributed Builds - Overloading System
  • Next by Date: Re: Any compiler warning for default copy constructors?
  • Previous by thread: Re: Any compiler warning for default copy constructors?
  • Next by thread: Framework include???
  • Index(es):
    • Date
    • Thread