Ticket #4909 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

ghc-7.0 cannot be compiled on Snow Leopard

Reported by: kazu-yamamoto Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.0.1
Keywords: Cc:
Operating System: MacOS X Architecture: x86
Type of failure: Installing GHC failed Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

When I tried to compile the latest ghc-7.0 branch, I can do it on Linux but cannot on Snow Leopard. The following is the error message:

% make
===--- updating makefiles phase 0
make -r --no-print-directory -f ghc.mk phase=0 just-makefiles
===--- updating makefiles phase 1
make -r --no-print-directory -f ghc.mk phase=1 just-makefiles
ghc.mk:734: libraries/hpc/dist-boot/build/.depend-v.haskell: No such file or directory
"inplace/bin/hsc2hs" --cc=/usr/bin/gcc --ld=/usr/bin/gcc  --cflag=-march=i686 --cflag=-m32 --cflag=-isysroot --cflag=/Developer/SDKs/MacOSX10.5.sdk --cflag=-mmacosx-version-min=10.5 --cflag=-fno-stack-protector   --cflag=-D__GLASGOW_HASKELL__=700 '--cflag=-march=i686' '--cflag=-m32' '--cflag=-isysroot' '--cflag=/Developer/SDKs/MacOSX10.5.sdk' '--cflag=-mmacosx-version-min=10.5' '--cflag=-fno-stack-protector' '--cflag=-Ilibraries/hpc/.' '--cflag=-isystem/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/directory-1.0.1.1/include' '--cflag=-isystem/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/unix-2.4.0.2/include' '--cflag=-isystem/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/old-time-1.0.0.5/include' '--cflag=-isystem/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/base-4.2.0.2/include' '--cflag=-isystem/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/include' '--cflag=-isystem/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/include' '--lflag=-L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/directory-1.0.1.1' '--lflag=-L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/unix-2.4.0.2' '--lflag=-L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/old-time-1.0.0.5' '--lflag=-L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/old-locale-1.0.0.2' '--lflag=-L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/filepath-1.1.0.4' '--lflag=-L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/containers-0.3.0.0' '--lflag=-L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/array-0.3.0.1' '--lflag=-L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/base-4.2.0.2' '--lflag=-L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/integer-gmp-0.2.0.1' '--lflag=-L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/ghc-prim-0.2.0.0' '--lflag=-L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3' '--lflag=-L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3' '--lflag=-ldl' '--lflag=-liconv' '--lflag=-lm' '--lflag=-ldl'   libraries/hpc/./Trace/Hpc/Reflect.hsc -o libraries/hpc/dist-boot/build/Trace/Hpc/Reflect.hs
ld: warning: in libraries/hpc/dist-boot/build/Trace/Hpc/Reflect_hsc_make.o, file was built for i386 which is not the architecture being linked (x86_64)
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
linking libraries/hpc/dist-boot/build/Trace/Hpc/Reflect_hsc_make.o failed (exit code 1)
command was: /usr/bin/gcc libraries/hpc/dist-boot/build/Trace/Hpc/Reflect_hsc_make.o -o libraries/hpc/dist-boot/build/Trace/Hpc/Reflect_hsc_make -L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/directory-1.0.1.1 -L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/unix-2.4.0.2 -L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/old-time-1.0.0.5 -L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/old-locale-1.0.0.2 -L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/filepath-1.1.0.4 -L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/containers-0.3.0.0 -L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/array-0.3.0.1 -L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/base-4.2.0.2 -L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/integer-gmp-0.2.0.1 -L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/ghc-prim-0.2.0.0 -L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3 -L/Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3 -ldl -liconv -lm -ldl
make[1]: *** [libraries/hpc/dist-boot/build/Trace/Hpc/Reflect.hs] Error 1
make: *** [all] Error 2

Change History

Changed 2 years ago by maeder

With ghc-6.12.3 you can only built a 32Bit ghc. Which "ghc-7.0 branch" do you mean? I could successfully compile ghc-7.0.1 from the official sources for 32Bit and 64Bit (using a 64Bit ghc-6.10.4). I'm using the 64Bit version now, because the 32Bit version has the bug #4860

Changed 2 years ago by kazu-yamamoto

I'm referring to  http://darcs.haskell.org/ghc-7.0/ghc/. What should I call it? I'm compile it with Haskell platform 2010.2.0.0. Its GHC 6.12.3 is 32bit.

Changed 2 years ago by maeder

I suppose this version changes constantly. Maybe better choices are source distributions from http://www.haskell.org/ghc/dist/current/dist/ or http://www.haskell.org/ghc/dist/stable/dist/ see http://www.haskell.org/ghc/download

The links "Documentation" and "Check build status" don't work currently.

Changed 2 years ago by kazu-yamamoto

  • status changed from new to closed
  • resolution set to fixed

I can compile ghc-7.0 on Snow Leopard today. So, I would close this ticket.

Note: See TracTickets for help on using tickets.