Error building GHC from darwin ports

David Menendez zednenem at psualum.com
Fri Jun 17 01:22:58 EDT 2005


I currently have GHC installed using darwin ports, and I've been trying
to upgrade from 6.4_0 to 6.4_8, but I keep hitting a file-not-found
error. Looking at the paths in question, I'm guessing the problem has to
do with the path segment
"/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.
opendarwin.org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/" appearing
twice.

Unfortunately, I don't understand the makefiles well enough to track
down where this is happening. I'm running Mac OS X 10.4 with XCode 2.0
and darwinports 1.001.


Here are the relevant errors:
-----------------------------

/opt/local/var/db/dports/build/file.
_opt_local_var_db_dports_sources_rsync.rsync.opendarwin.
org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/bin/ghc -M -optdep-f
-optdep.depend  -osuf o    -H16m -O -I/usr/include -I/opt/local/include
-L/usr/lib -L/opt/local/lib -cpp -fglasgow-exts -O AbsSyn.lhs First.lhs
GenUtils.lhs GetOpt.lhs Grammar.lhs Info.lhs LALR.lhs Lexer.lhs Main.lhs
ParseMonad.lhs Parser.hs ProduceCode.lhs ProduceGLRCode.lhs Set.lhs
Target.lhs Version.hs

/opt/local/var/db/dports/build/file.
_opt_local_var_db_dports_sources_rsync.rsync.opendarwin.
org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/bin/ghc: line 5:
/opt/local/var/db/dports/build/file.
_opt_local_var_db_dports_sources_rsync.rsync.opendarwin.
org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/var/db/dports/build/file
._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.
org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/lib/ghc-6.4/ghc-6.4: No
such file or directory

/opt/local/var/db/dports/build/file.
_opt_local_var_db_dports_sources_rsync.rsync.opendarwin.
org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/bin/ghc: line 5: exec:
/opt/local/var/db/dports/build/file.
_opt_local_var_db_dports_sources_rsync.rsync.opendarwin.
org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/var/db/dports/build/file
._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.
org_dpupdate_dports_lang_ghc/work/ghc-bootstrap/lib/ghc-6.4/ghc-6.4:
cannot execute: No such file or directory

gmake[2]: *** [depend] Error 126
gmake[1]: *** [boot] Error 1
gmake[1]: Leaving directory
`/opt/local/var/db/dports/build/file.
_opt_local_var_db_dports_sources_rsync.rsync.opendarwin.
org_dpupdate_dports_lang_ghc/work/ghc-6.4/happy'
gmake: ***
[/opt/local/var/db/dports/build/file.
_opt_local_var_db_dports_sources_rsync.rsync.opendarwin.
org_dpupdate_dports_lang_ghc/work/ghc-6.4/happy/src/happy-inplace] Error
2

Warning: the following items did not execute (for ghc):
com.apple.destroot com.apple.build
Error: Unable to upgrade port: 1
-- 
David Menendez <zednenem at psualum.com> | "In this house, we obey the laws
<http://www.eyrie.org/~zednenem>      |        of thermodynamics!"


More information about the Glasgow-haskell-users mailing list