Error building GHC from darwin ports

Gregory Wright gwright at comcast.net
Fri Jun 17 14:11:19 EDT 2005


David,

Try 'sudo port clean ghc' and then 'sudo port -dv install ghc'.

The bootstrap compiler script is edited automatically by the portfile
so it points to the proper location of the executable.  If you interrupt
the build for any reason and restart it (without cleaning) you can
have the path expanded twice, which would explain what you are
seeing.

Best Wishes,
Greg


On Jun 17, 2005, at 1:22 AM, David Menendez wrote:

> 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!"
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>



More information about the Glasgow-haskell-users mailing list