Re: Error building GHC from darwin ports

2005-06-17 Thread Gregory Wright


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 <[EMAIL PROTECTED]> | "In this house, we obey the  
laws

  |of thermodynamics!"
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Error building GHC from darwin ports

2005-06-17 Thread Gregory Wright


Hi David,

I think I have an idea of what is happening.  Recent changes to DP
have moved the work directories to new locations (inside ${prefix}/var),
symlinked to the old location. This can mess up ports that unpack
multiple tarballs in the work directory.

I'll let you know when I have a fix.

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 <[EMAIL PROTECTED]> | "In this house, we obey the  
laws

  |of thermodynamics!"
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Error building GHC from darwin ports

2005-06-17 Thread Gregory Wright


Hi David,

I maintain GHC under darwinports.  You're more likely to get help
for this (apparently DP specific) issue on the darwinports list.

What seems to be happening is that your bootstrap compiler is
not being found.  Since this doesn't happen on my machine (10.4.1
with Xcode 2.1) I suspect there is a bug in darwinports 1.001 (I'm
using the version from cvs HEAD).

I think I may have suggested this before, but

1. run 'sudo port selfupdate'

This will ensure you have the latest portfiles and  
infrastructure.


2. run 'sudo port -dv install ghc > build.log 2>&1'

This will make a complete log of the build.  Send me the log
and I'll try again to diagnose the problem.

As I said, I think a bug has crept into the released version of DP.
The haskell portfile is a good stress test for the system and  
occasionally

finds breakages.


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 <[EMAIL PROTECTED]> | "In this house, we obey the  
laws

  |of thermodynamics!"
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Error building GHC from darwin ports

2005-06-16 Thread David Menendez
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 <[EMAIL PROTECTED]> | "In this house, we obey the laws
  |of thermodynamics!"
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users