On 26 May 2005 23:38, Brian Smith wrote:

> I am building on MinGW 3.1/MSYS 1.0/GHC 6.5 snapshot from two days
> ago, using this configuration:
> 
> ./configure --enable-src-tree-alex --enable-src-tree-happy
> --with-ghc=c:/software/ghc-6.5/bin/ghc.exe --host=i386-unknown-mingw32
> --with-gcc=c:/software/mingw-3.1/bin/gcc.exe
> 
> The build works correctly if GHC 6.2.2 is used instead, like this:
> 
> ./configure --enable-src-tree-alex --enable-src-tree-happy
> --with-ghc=c:/software/ghc-6.2.2/bin/ghc.exe
> --host=i386-unknown-mingw32
> --with-gcc=c:/software/mingw-3.1/bin/gcc.exe
> 
> Here is the relevent portion of the make output:
> 
> c:/software/ghc-6.5/bin/ghc.exe -M -optdep-f -optdep.depend  -osuf o 
>  -H16m -O -I. -Iinclude -Rghc-timing -I../../../libraries
> -fglasgow-exts -no-recomp Compa t/Directory.hs Compat/RawSystem.hs
> Compat/Directory.hs:27:7:
>     Cannot import `System.Directory.Internals':
>       it was found in both System/Directory/Internals.hs
>       and package base-1.0.
>       Possible fix: -ignore-package base-1.0
> <<ghc: 18008748 bytes, 3 GCs, 98756/98756 avg/max bytes residency (1
> samples), 1 5M in use, 0.01 INIT (0.00 elapsed), 0.05 MUT (0.03
> elapsed), 0.01 GC (0.00 elap sed) :ghc>>

Yes, we currently have a problem building the HEAD with itself.  Back
off to 6.4 or earlier to build with.

The problem is that the HEAD is now stricter about requiring that
modules are found in one place (only); previously a package module would
silently shadow a local module.  (making local modules shadow package
modules isn't an option).  The problem arises because we have some
modules in our compat library that are there because older versions of
GHC didn't have them, but newer versions of GHC complain because they're
there.  I'm not sure of the best way to work around/fix this yet.  It
might involve copying all the required modules into another location
before building, but that seems a bit of a sledgehammer.

Cheers,
        Simon
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to