After not receiving any quick responses, I assumed my problem was local and started doing more digging. It turns out that GNU binutils are incompatible with some part of the build process on a Mac. After updating my local source tree to get the objdump fix from Monday, removing binutils (which, after the fix, are no longer necessary) and recompiling from scratch, I compiled successfully.

Thanks,
Richard

On 7/11/12 12:50 PM, Manuel M T Chakravarty wrote:
Firstly, which version of the compiler are you using for bootstrapping? (GHC 
version and architecture, i386 or x86_64?)

Secondly, did you try cleaning everything?

  % make distclean
  % perl boot
  % ./configure
  % make

Manuel


Richard Eisenberg <[email protected]>:
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

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc




_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to