build problem on OS X with XCode 4.3

Richard Eisenberg eir at cis.upenn.edu
Mon Jul 9 18:49:59 CEST 2012


Has anyone tried building on Lion with XCode 4.3?

My first attempt failed when the /Developer directory couldn't be found, 
as XCode 4.3 changed directory structure. This was easy enough to fix with
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/

Then, I ran into the objdump problem, which I see was fixed a little 
over an hour ago, though I fixed it locally by installing binutils.

Now, I'm having trouble that seems to be a hoopl library built for the 
wrong architecture:

...
ld: warning: ignoring file 
/Users/rae/Documents/ghc/libraries/hoopl/dist-boot/build/libHShoopl-3.9.0.0.a, 
file was built for archive which is not the architecture being linked 
(x86_64)
ld: warning: ignoring file 
/Users/rae/Documents/ghc/libraries/bin-package-db/dist-boot/build/libHSbin-package-db-0.0.0.0.a, 
file was built for archive which is not the architecture being linked 
(x86_64)
Undefined symbols for architecture x86_64:
   "_hooplzm3zi9zi0zi0_CompilerziHooplziDataflow_changeIf_closure", 
referenced from:
...

I'm building from a fresh clone, and it looks like the hoopl library was 
built earlier in the make. Any ideas?
(GHC compiled just fine before the XCode upgrade, but I haven't tried 
for a few weeks.)

Thanks,
Richard



More information about the Cvs-ghc mailing list