Re: Which ghc versions can build ghc-6.8.1?

2007-12-11 Thread Simon Marlow

Gregory Wright wrote:


Can 6.4 build 6.8.1?  Or is a later version required?


We test the GHC build with 6.2.2, and the latest released version 
(previously 6.6.1, now 6.8.1).  It's not unlikely that bugs have crept in 
that make the build fail with 6.4.x; if you find any such bugs then please 
do let us have a fix.


Cheers,
Simon

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


Which ghc versions can build ghc-6.8.1?

2007-12-06 Thread Gregory Wright


Hi,

I'm the process of updating MacPort's ghc to 6.8.1 and adding support  
for

Leopard (OS X 10.5) and have been having] some trouble.

The first task is just to get 6.8.1 running on Tiger (10.4).  On PPC,  
I use
ghc 6.4 as a bootstrap compiler and on Intel ghc 6.6.  I am traveling  
with

only a PPC PowerBook G4/OS X 10.4, so that's all I've been able to
test with.

The problem is that ghc 6.4 can not build 6.8.1.  It seems related to  
Cabal.
Using the 6.4 bootstrap compiler (with the version of Cabal that it  
shipped

with) I get:

ranlib libHSrts_thr_debug.a

== Finished recursively making `all' for ways: p  debug  thr thr_p  
thr_debug ...
PWD = /opt/local/var/macports/build/_Users_gwright_src_macports- 
trunk_dports_lang_ghc/work/ghc-6.8.1/rts


make -C libraries boot
rm -f -rf bootstrapping.Cabal
cp -R Cabal bootstrapping.Cabal
/usr/bin/find bootstrapping.Cabal \( -name *.o -o -name *.hi \) \
 -exec rm -f -f {} \;
touch stamp/bootstrapping.Cabal
rm -f -rf bootstrapping.filepath
cp -R filepath bootstrapping.filepath
/usr/bin/find bootstrapping.filepath \( -name *.o -o -name *.hi \) \
 -exec rm -f -f {} \;
touch stamp/bootstrapping.filepath
rm -f -rf ifBuildable
mkdir ifBuildable
cp ifBuildable.hs ifBuildable/
cd ifBuildable  /opt/local/var/macports/build/ 
_Users_gwright_src_macports-trunk_dports_lang_ghc/work/ghc-bootstrap/ 
bin/ghc -Wall --make ifBuildable -o ifBuildable

Chasing modules from: ifBuildable
Compiling Main ( ifBuildable.hs, ifBuildable.o )
Linking ...
ld: warning prebinding disabled because dependent library: /opt/local/ 
lib/libgmp.3.dylib is not prebound

rm -f -rf base/setup
mkdir base/setup
cp base/Setup.*hs base/setup
cd base/setup  /opt/local/var/macports/build/ 
_Users_gwright_src_macports-trunk_dports_lang_ghc/work/ghc-bootstrap/ 
bin/ghc -Wall -cpp --make Setup.*hs -o Setup \
  -DCABAL_VERSION=1,2,2,0 -i../../ 
bootstrapping.Cabal -i../../bootstrapping.filepath

Chasing modules from: Setup.hs
Compiling System.FilePath.Posix ( ../../bootstrapping.filepath/System/ 
FilePath/Posix.hs, ../../bootstrapping.filepath/System/FilePath/ 
Posix.o )
Compiling System.FilePath  ( ../../bootstrapping.filepath/System/ 
FilePath.hs, ../../bootstrapping.filepath/System/FilePath.o )

Compiling Main ( Setup.hs, Setup.o )

Setup.hs:19:18: Not in scope: `buildHook'

Setup.hs:21:30: Not in scope: `buildHook'

Setup.hs:22:18: Not in scope: `makefileHook'

Setup.hs:24:33: Not in scope: `makefileHook'

Setup.hs:25:18: Not in scope: `instHook'

Setup.hs:26:29: Not in scope: `instHook'

Setup.hs:33:12: Not in scope: `compilerFlavor'

Setup.hs:33:45: Not in scope: data constructor `GHC'
make[1]: *** [base/setup/Setup] Error 1
make: *** [stage1] Error 2


If I upgrade the bootstrap compiler's Cabal to 1.1.6.2, the build  
still fails.

(The old version of Cabal was unregistered according the instructions
for working with older versions of ghc  Cabal.)

ranlib libHSrts_thr_debug.a

== Finished recursively making `all' for ways: p  debug  thr thr_p  
thr_debug ...

PWD = /Users/gwright/Desktop/ghc-6.8.1/rts

make -C libraries boot
rm -f -rf bootstrapping.Cabal
cp -R Cabal bootstrapping.Cabal
/usr/bin/find bootstrapping.Cabal \( -name *.o -o -name *.hi \) \
 -exec rm -f -f {} \;
touch stamp/bootstrapping.Cabal
rm -f -rf bootstrapping.filepath
cp -R filepath bootstrapping.filepath
/usr/bin/find bootstrapping.filepath \( -name *.o -o -name *.hi \) \
 -exec rm -f -f {} \;
touch stamp/bootstrapping.filepath
rm -f -rf ifBuildable
mkdir ifBuildable
cp ifBuildable.hs ifBuildable/
cd ifBuildable  /opt/local/bin/ghc -Wall --make ifBuildable -o  
ifBuildable

Chasing modules from: ifBuildable
Compiling Main ( ifBuildable.hs, ifBuildable.o )
Linking ...
rm -f -rf base/setup
mkdir base/setup
cp base/Setup.*hs base/setup
cd base/setup  /opt/local/bin/ghc -Wall -cpp --make Setup.*hs -o  
Setup \
  -DCABAL_VERSION=1,2,2,0 -i../../ 
bootstrapping.Cabal -i../../bootstrapping.filepath

Chasing modules from: Setup.hs
Compiling System.FilePath.Posix ( ../../bootstrapping.filepath/System/ 
FilePath/Posix.hs, ../../bootstrapping.filepath/System/FilePath/ 
Posix.o )
Compiling System.FilePath  ( ../../bootstrapping.filepath/System/ 
FilePath.hs, ../../bootstrapping.filepath/System/FilePath.o )

Compiling Main ( Setup.hs, Setup.o )

Setup.hs:22:18: Not in scope: `makefileHook'

Setup.hs:24:33: Not in scope: `makefileHook'
make[1]: *** [base/setup/Setup] Error 1
make: *** [stage1] Error 2


With my installed 6.6.1 (and the Cabal 1.1.6.2 shipped with it) I was  

Re: Which ghc versions can build ghc-6.8.1?

2007-12-06 Thread Chris Kuklewicz
Gregory Wright wrote:
 
 Hi,
 
 I'm the process of updating MacPort's ghc to 6.8.1 and adding support for
 Leopard (OS X 10.5) and have been having] some trouble.

Great.  I am using 10.5 on a PPC

You ought to read the ongoing saga at
http://hackage.haskell.org/trac/ghc/ticket/1843
In general, we cannot yet make ghc-6.8.1 on a powerpc running OS X 10.5 (XCode 
3.0).

My guess is that there is more than one fatal issue.

 The first task is just to get 6.8.1 running on Tiger (10.4).  On PPC, I use
 ghc 6.4 as a bootstrap compiler and on Intel ghc 6.6.  I am traveling with
 only a PPC PowerBook G4/OS X 10.4, so that's all I've been able to
 test with.

There are two binaries of ghc 6.8.1 for Tiger (10.4) posted on the site, so if
you are _really_ hard up for a bootstrap

 The problem is that ghc 6.4 can not build 6.8.1.  It seems related to
 Cabal.

The latest Cabal is 1.2 (well, 1.2.2.0) and allows for packages to compile under
6.8 and 6.6 and hopefully 6.4.  Any attempt to support more than one of those
ghc versions ought to be equipped with Cabal 1.2

 Using the 6.4 bootstrap compiler (with the version of Cabal that it shipped
 with) I get:

snip

 If I upgrade the bootstrap compiler's Cabal to 1.1.6.2, the build still
 fails.

Why only upgrade to 1.1.6.2 and not 1.2.whatever ?

 
 Can 6.4 build 6.8.1?  Or is a later version required?  If possible, I want
 to use the existing bootstrap compiler for OS X  10.5, since building a
 new one is a lot of work, especially to root out unnecessary dependencies.
 And it would mean terminating support for Panther (10.3).  We only promise
 support for the most recent two OS version, so dropping Panther is not a
 big deal,
 but I try not to gratuitously drop support for older version if I can
 avoid it.
 
 If a later version bootstrap compiler is needed, we should take the
 opportunity to update the documentation.

You might ask on the #haskell IRC channel...

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