Re: [Haskell-cafe] possible bug for ghc 7 + xcode 4 on snow leopard?

to answer the question of the other poster, ghc 7.0.2 packaged installer, 64
bit build
Jurrien, I wound up doing something similar, namely just wholesale copying
the 10.5 sdk into the sdks folder.
i'm still curious why this problem even exists!
2011/3/10 Jurriën Stutterheim
I solved it by making a symlink from /Developer/SDKs/MacOSX10.6.sdk to /Developer/SDKs/MacOSX10.5.sdk (which is missing with XCode 4). So far it seems to work :)
Jurriën
On 10 Mar, 2011, at 06:53 , Carter Schonwald wrote:
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
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

ok, now I've installed XCode 4 and run into the very same problems. As already said, XCode 4 targets snow leopard only. That's why the MacOSX10.5.sdk is missing. unfortunately the ghc packages for snow leopard are configured to support leopard still. See: /Library/Frameworks/GHC.framework/Versions/Current/usr/share/doc/ghc/html/libraries/ghc-7.0.2/src/Config.html So we either have to copy or symling /Developer-old/SDKs/MacOSX10.5.sdk to /Developer/SDKs or someone is going to recompile ghc with snow leopard only in mind. - Steffen

There is no guarantee that /Developer-old/ is still on the system, so depending on it for symlinking is probably not a good idea. So far I have had no problems symlinking /Developer/SDKs/MacOSX10.6.sdk to /Developer/SDKs/MacOSX10.5.sdk. This could be one alternative. However, separate Snow Leopard builds would be preferable, since they would not depend on a workaround to function. Jurriën On 11 Mar, 2011, at 10:00 , steffen wrote:
ok, now I've installed XCode 4 and run into the very same problems.
As already said, XCode 4 targets snow leopard only. That's why the MacOSX10.5.sdk is missing. unfortunately the ghc packages for snow leopard are configured to support leopard still.
See: /Library/Frameworks/GHC.framework/Versions/Current/usr/share/doc/ghc/html/libraries/ghc-7.0.2/src/Config.html
So we either have to copy or symling /Developer-old/SDKs/MacOSX10.5.sdk to /Developer/SDKs or someone is going to recompile ghc with snow leopard only in mind.
- Steffen _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Carter Schonwald
-
Jurriën Stutterheim
-
steffen