I am having trouble compiling GHC using mac ports on powerpc OS X (10.5.5)
(using XCode 3.1).
I have also opened a ticket at http://trac.macports.org/ticket/17184 which has
the full build log attached.
The build starts with
nice port -c upgrade ghc
---> Staging gmp into destroot
---> Packaging tgz archive for gmp 4.2.4_0
---> Deactivating gmp 4.2.3_0
---> Installing gmp 4.2.4_0
---> Activating gmp 4.2.4_0
---> Cleaning gmp
---> Fetching ghc
---> Attempting to fetch ghc-6.10.1-src.tar.bz2 from
http://haskell.org/ghc/dist/stable/dist/
---> Attempting to fetch ghc-6.10.1-src-extralibs.tar.bz2 from
http://haskell.org/ghc/dist/stable/dist/
---> Attempting to fetch ghc-6.8.2-darwin-ppc-leopard-bootstrap.tar.bz2 from
http://haskell.org/ghc/dist/6.8.2/
---> Verifying checksum(s) for ghc
---> Extracting ghc
---> Applying patches to ghc
---> Configuring ghc
---> Building ghc with target all
Error: Target org.macports.build returned: shell command "cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-6.10.1
&& env DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib make" returned error 2
Command output:
/private/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-6.10.1/ghc/stage1-inplace/ghc
-optc-O -optc-I/opt/local/include -optc-Wall -optc-W -optc-Wstrict-prototypes
-optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline
-optc-Waggregate-return -optc-I../includes -optc-I. -optc-Iparallel -optc-Ism
-optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-I/opt/local/include
-optc-I../gmp/gmpbuild -optc-I../libffi/build/include -optc-fno-strict-aliasing
-H32m -O -I/opt/local/include -L/opt/local/lib -optc-O2 -I../includes -I.
-Iparallel -Ism -DCOMPILING_RTS -package-name rts -static -I/opt/local/include
-I../gmp/gmpbuild -I../libffi/build/include -I. -dcmm-lint -c
parallel/GranSim.c -o parallel/GranSim.o
Eventually the build fails with
/private/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-6.10.1/ghc/stage1-inplace/ghc
-optc-O -optc-I/opt/local/include -optc-Wall -optc-W -optc-Wstrict-prototypes
-optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline
-optc-Waggregate-return -optc-I../includes -optc-I. -optc-Iparallel -optc-Ism
-optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-I/opt/local/include
-optc-I../gmp/gmpbuild -optc-I../libffi/build/include -optc-fno-strict-aliasing
-H32m -O -I/opt/local/include -L/opt/local/lib -optc-O2 -I../includes -I.
-Iparallel -Ism -DCOMPILING_RTS -package-name rts -static -I/opt/local/include
-I../gmp/gmpbuild -I../libffi/build/include -I. -dcmm-lint -c sm/Sweep.c -o
sm/Sweep.o
/private/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-6.10.1/ghc/stage1-inplace/ghc
-H32m -O -I/opt/local/include -L/opt/local/lib -optc-O2 -I../includes -I.
-Iparallel -Ism -DCOMPILING_RTS -package-name rts -static -I/opt/local/include
-I../gmp/gmpbuild -I../libffi/build/include -I. -dcmm-lint -c Apply.cmm -o
Apply.o
make[1]: *** [Apply.o] Segmentation fault
make: *** [stage1] Error 2
Does anyone have a clue how to proceed?
_______________________________________________
Glasgow-haskell-users mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users