possible bug for ghc 7 + xcode 4 on snow leopard?

Hey All, As of installing xcode 4 earlier today, i'm getting errors of the form ld: library not found for -lcrt1.10.5.o collect2: ld returned 1 exit status for any haskell code that invokes ld in its cabal install process. 1) is this related to some problem in xcode / what the haskell code defaults to linking to? 2) is this something completely unrelated? thanks! -Carter

after experimenting by just naively moving the old Developer directory back to its original location preceding the installation of xcode 4, everything builds properly now. still, this is not a reasonable long term solution. Any ideas about how this might be fixed? On Thu, Mar 10, 2011 at 12:33 AM, Carter Schonwald < carter.schonwald@gmail.com> wrote:
Hey All, As of installing xcode 4 earlier today,
i'm getting errors of the form ld: library not found for -lcrt1.10.5.o collect2: ld returned 1 exit status
for any haskell code that invokes ld in its cabal install process. 1) is this related to some problem in xcode / what the haskell code defaults to linking to? 2) is this something completely unrelated?
thanks! -Carter

Hi, I haven't installed XCode 4 yet, but the crt1.10.5.o is the c runtime file defining the symbol "start" which any program will be linked with being the programs real entry point. Disassembling "crt1.10.5.o" (for Leopard) and "crt1.10.6.o" (for Snow Leopard) reveals the very same code for the symbol "start", but "crt1.10.5.o" additionally defines "dyld_stub_binding_helper" and "__dyld_func_lookup". I think I read that XCode 4 is snow leopard+ only, therefore I guess "crt1.10.5.o" was deleted when you've install Xcode 4. Maybe a symbolic link "ln -s crt1.10.6.o crt1.10.5.o" in /usr/lib shall do just fine, but I will keep a copy of "crt1.10.5.o" before upgrading to Xcode 4 just in case and report any findings. - Steffen

Questions: 1. How did you install ghc-7? Using a binary package? The one for leopard or snow leopard? 2. Which compiler flags did you use? Does it work with another backend?

I don't have Xcode4 (yet), but I'd be very surprised if Apple created an environment that cut off development for older releases. In the past, the SDKs for some older releases have been an optional part of the install. That is, you've had to go to the customize installation screen and explicitly enable older SDKs. With the latest Xcodes, for example, the SDK for 10.3 was optional. I'm a little surprised that 10.5 would be put in that category... but it's possible. Can someone with Xcode4 start the installer and go to the Customize screen and see if the SDK for 10.5 is an option there? (You can do this safely even if you've already installed... in fact, prior installers let you install a previously not-installed component at this point.) - Mark

the latest xcode installer has no customization dialogues.
On Fri, Mar 11, 2011 at 9:46 AM, Mark Lentczner
I don't have Xcode4 (yet), but I'd be very surprised if Apple created an environment that cut off development for older releases.
In the past, the SDKs for some older releases have been an optional part of the install. That is, you've had to go to the customize installation screen and explicitly enable older SDKs. With the latest Xcodes, for example, the SDK for 10.3 was optional. I'm a little surprised that 10.5 would be put in that category... but it's possible.
Can someone with Xcode4 start the installer and go to the Customize screen and see if the SDK for 10.5 is an option there? (You can do this safely even if you've already installed... in fact, prior installers let you install a previously not-installed component at this point.)
- Mark
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

fyi all: the relevant GHC ticket has already been done and the difference in how to build the ghc pkg has been identified. On Fri, Mar 11, 2011 at 11:39 AM, Carter Schonwald < carter.schonwald@gmail.com> wrote:
the latest xcode installer has no customization dialogues.
On Fri, Mar 11, 2011 at 9:46 AM, Mark Lentczner
wrote: I don't have Xcode4 (yet), but I'd be very surprised if Apple created an environment that cut off development for older releases.
In the past, the SDKs for some older releases have been an optional part of the install. That is, you've had to go to the customize installation screen and explicitly enable older SDKs. With the latest Xcodes, for example, the SDK for 10.3 was optional. I'm a little surprised that 10.5 would be put in that category... but it's possible.
Can someone with Xcode4 start the installer and go to the Customize screen and see if the SDK for 10.5 is an option there? (You can do this safely even if you've already installed... in fact, prior installers let you install a previously not-installed component at this point.)
- Mark
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

There is no SDK for older Mac OS X Releases in XCode 4, but for iPhone... Not even in the Resources/Packages. Indeed Apple did remove support for older Systems then snow leopard in its new development tools. For that reason and problems with no support of IB Plugins one is encouraged not to delete XCode 3.

well, the xcode 4 installer doesn't delete those files, it just moves them
to developer-old
On Sat, Mar 12, 2011 at 5:36 AM, steffen
There is no SDK for older Mac OS X Releases in XCode 4, but for iPhone... Not even in the Resources/Packages. Indeed Apple did remove support for older Systems then snow leopard in its new development tools. For that reason and problems with no support of IB Plugins one is encouraged not to delete XCode 3.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Carter Schonwald
-
Mark Lentczner
-
steffen