MacPorts is designed to not use any software installed outside of MacPorts (with a few exceptions), hence manually installing ghc in / usr/local is expected to have no effect. There are existing bugs on ghc filed in the issue tracker: http://trac.macosforge.org/projects/macports/query? status=new&status=assigned&status=reopened&summary=%7Eghc&order=priority Perhaps one of those is the same as the problem you are reporting. Perhaps this one? http://trac.macosforge.org/projects/macports/ticket/13039 If not, please file a new bug report and Cc the port's maintainer. Instructions for filing bugs are here: http://trac.macosforge.org/projects/macports/wiki/TracTicketing On Dec 17, 2007, at 09:45, Max Brown wrote:
I upgraded to Macports version 1.600. That didn't seem to make a difference.
Since I thought that I need a binary version of ghc to bootstrap, I installed one from here: http://www.haskell.org/ghc/download_ghc_682.html#macosxintel
If I install this into /usr/local, sudo port install ghc fails with the same error, although the binary ghc seems to work ok. If I install this into /opt/local, I seems to at least start compiling ghc. I then get the following error:
$ sudo port install ghc ---> Fetching ghc ---> 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 "env DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib make all" returned error 2 Command output: in /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ ghc/work/ghc-6.6.1/includes ---------------------------------------------------------------------- -- Creating ghcautoconf.h... Done. Creating ghcplatform.h... Done. ../utils/mkdependC/mkdependC -f .depend -- -O -I. -I../rts -- mkDerivedConstants.c gcc -O -I. -I../rts -c mkDerivedConstants.c -o mkDerivedConstants.o gcc -o mkDerivedConstantsHdr -O -I. -I../rts mkDerivedConstants.o ./mkDerivedConstantsHdr >DerivedConstants.h gcc -o mkGHCConstants.o -O -I. -I../rts -c mkDerivedConstants.c -DGEN_HASKELL gcc -o mkGHCConstants -O -I. -I../rts mkGHCConstants.o ./mkGHCConstants >GHCConstants.h ---------------------------------------------------------------------- -- == make boot -r; in /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ ghc/work/ghc-6.6.1/compat ---------------------------------------------------------------------- -- ../utils/mkdependC/mkdependC -f .depend -I. -Iinclude -I../includes -- -O -I. -Iinclude -D__GHC_PATCHLEVEL__=2 -I../libraries/base/cbits -I../libraries/base/include -- cbits/directory.c cbits/rawSystem.c cbits/unicode.c /opt/local/bin/ghc -M -optdep-f -optdep.depend -osuf o -optdep--exclude-module=System.Directory.Internals -H16m -O -I. -Iinclude -Rghc-timing -ignore-package Cabal -I../libraries -fglasgow-exts -no-recomp Compat/Directory.hs Compat/RawSystem.hs Compat/Unicode.hs Distribution/Compat/FilePath.hs Distribution/Compat/ReadP.hs Distribution/Compiler.hs Distribution/GetOpt.hs Distribution/InstalledPackageInfo.hs Distribution/License.hs Distribution/Package.hs Distribution/ParseUtils.hs Distribution/Version.hs Language/Haskell/Extension.hs <<ghc: 34941400 bytes, 5 GCs, 163840/163840 avg/max bytes residency (1 samples), 16M in use, 0.00 INIT (0.00 elapsed), 0.04 MUT (0.20 elapsed), 0.02 GC (0.02 elapsed) :ghc>> make all /opt/local/bin/ghc -H16m -O -I. -Iinclude -Rghc-timing -ignore-package Cabal -I../libraries -fglasgow-exts -no-recomp -c Compat/Directory.hs -o Compat/Directory.o -ohi Compat/Directory.hi
Compat/Directory.hs:27:0: Failed to load interface for `System.Directory.Internals': Use -v to see a list of the files searched for. <<ghc: 30533780 bytes, 5 GCs, 159744/159744 avg/max bytes residency (1 samples), 16M in use, 0.00 INIT (0.00 elapsed), 0.03 MUT (0.06 elapsed), 0.02 GC (0.02 elapsed) :ghc>> make[2]: *** [Compat/Directory.o] Error 1 make[1]: *** [boot] Error 2 make: *** [stage1] Error 1
Error: Status 1 encountered during processing.
Any ideas....?