• 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: how can I back down to Xcode 2.2.1, gcc 4.0.0?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how can I back down to Xcode 2.2.1, gcc 4.0.0?


  • Subject: Re: how can I back down to Xcode 2.2.1, gcc 4.0.0?
  • From: Steve Christensen <email@hidden>
  • Date: Sat, 3 Jun 2006 18:31:39 -0700

On Jun 3, 2006, at 5:14 PM, Shawn Erickson wrote:

On Jun 3, 2006, at 4:21 PM, Steve Christensen wrote:

I have been having so many problems since upgrading to Xcode 2.3 and gcc 4.0.1 that I just want to go back to Xcode 2.2.1 and gcc 4.0.0. Universal projects that previously built and ran on both architectures with the older tools only run on PPC. The i386 image in the UB binary is about 4K in size and apparently doesn't contain anything resembling code.

Also, no hints have been forthcoming from the Xcode mailing list so I don't know what to do to try to fix things. All I know is that I have to get software finished and out the door.

In trying to back down to Xcode 2.2.1, etc., I have run the Xcode 2.3 uninstall script, restarted, then run the Xcode 2.2.1 installer, restarted. I rebuild my projects and I end up in the same place as with 2.3. I've even tried running the Xcode 2.2.1 gcc installer standalone to see if that helps but nothing changes. I'm really hoping that I don't have to reinstall the OS so all the other stuff gets wiped and then get back to a known state.

My move from CodeWarrior to Xcode has been an entirely frustrating process at every step of the way. Every little setting has to be exactly perfect or nothing works as expected. Plus, doing what should be a simple tool upgrade throws everything up in the air again, just when I thought I had everything at least somewhat settled.

I don't think I'm doing anything fancy. I just want a set of Universal, dead-code stripped, symbol stripped executables. I don't think that's really what you'd call off-roading. Can somebody, perhaps even at Apple, help me out?

I think we will need more information. I have hit no issues switching several projects (some rather large) from Xcode 2.2.1 to 2.3 and on several different developer systems (including switching some over to DWARF).

I didn't think I had either since, after installing Xcode 2.3 and doing a full, clean rebuild, everything was working fine on my PPC development machine. It was only when I copied the binaries over to my Intel MacBook that I found they wouldn't load. Running "nm -a - arch all ..." would dump out all the global symbols for the PPC part and "nm: no name list" for the i386 part. I also ran nm on the pre- stripped, pre-combined per-architecture objects and they both showed a ton of symbols for methods, data, etc.


Further examination showed that the Intel image within the Universal binary was typically 4100 bytes, and "lipo -detailed_info ..." prints out the following:

fat_magic 0xcafebabe
nfat_arch 2
architecture i386
    cputype CPU_TYPE_I386
    cpusubtype CPU_SUBTYPE_I386_ALL
    offset 4096
    size 4100
    align 2^12 (4096)
architecture ppc
    cputype CPU_TYPE_POWERPC
    cpusubtype CPU_SUBTYPE_POWERPC_ALL
    offset 16384
    size 146628
    align 2^14 (16384)

Are you sure that something in your code didn't change around the same time as the switch to 2.3? ...maybe a wrongly placed #ifdef that is engaged when building for Intel?

No. The code has been relatively unchanged for awhile now, and in any case, there are almost no architecture-specific bits of code that could get turned on/off conditionally.


steve

_______________________________________________
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: how can I back down to Xcode 2.2.1, gcc 4.0.0?
      • From: Niels Meersschaert <email@hidden>
References: 
 >how can I back down to Xcode 2.2.1, gcc 4.0.0? (From: Steve Christensen <email@hidden>)
 >Re: how can I back down to Xcode 2.2.1, gcc 4.0.0? (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: how can I back down to Xcode 2.2.1, gcc 4.0.0?
  • Next by Date: Re: Turning off undo-past-save warning?
  • Previous by thread: Re: how can I back down to Xcode 2.2.1, gcc 4.0.0?
  • Next by thread: Re: how can I back down to Xcode 2.2.1, gcc 4.0.0?
  • Index(es):
    • Date
    • Thread