On 05/04/2012 10:57, Dimitrios Vytiniotis wrote:
OK I found the problem, but it’d be great if someone who knows more
about the build system has something to say about this.
When one types ‘make clean’ and also ‘make distclean’ at the root level
and even ‘make clean’ in the libraries, the following two
stale files inside the directory libraries/Cabal/Cabal:
ghc.mk and GNUMakefile
are NOT deleted! Shouldn’t they be deleted? They are not tracked in git
so they must be temporary.
Those files should be deleted by 'make maintainer-clean', which is
normally the first thing done by validate. I just checked in my tree
and they are gone after 'make maintainer-clean'.
Are you sure you weren't doing 'sh validate --no-clean'?
Cheers,
Simon
Manually deleting these files and doing ‘sh validate’ from scratch seems
to work for me now.
Thanks!
d-
*From:*[email protected] [mailto:[email protected]]
*On Behalf Of *Dimitrios Vytiniotis
*Sent:* Wednesday, April 04, 2012 8:08 PM
*To:* [email protected]
*Subject:* cabal related build failure
Friends, after a make clean and make distclean I try to 'sh validate'
again on my own branch and got the following:
….
/home/dimitris/GHC/ghc-new-flavor/ghc/bindisttest/install
dir/lib/ghc-7.5.20120404/dph-lifted-vseg-0.6.0.1
Registering dph-lifted-vseg-0.6.0.1...
for f in '/home/dimitris/GHC/ghc-new-flavor/ghc/bindisttest/install
dir/lib/ghc-7.5.20120404/package.conf.d'/*; do create () { touch "$1" &&
chmod 644 "$1" ; } && create "$f"; done
/usr/bin/install -c -m 755 -d
"/home/dimitris/GHC/ghc-new-flavor/ghc/bindisttest/install dir/bin"
for i in utils/hp2ps/dist/build/tmp/hp2ps
utils/hpc/dist-install/build/tmp/hpc; do \
/usr/bin/install -c -m 755 $i
"/home/dimitris/GHC/ghc-new-flavor/ghc/bindisttest/install dir/bin" ; \
done
/usr/bin/install -c -m 755 -d
"/home/dimitris/GHC/ghc-new-flavor/ghc/bindisttest/install
dir/lib/ghc-7.5.20120404"
for i in utils/unlit/dist/build/tmp/unlit; do \
/usr/bin/install -c -m 755 $i
"/home/dimitris/GHC/ghc-new-flavor/ghc/bindisttest/install
dir/lib/ghc-7.5.20120404"; \
done
/usr/bin/install -c -m 755 -d
"/home/dimitris/GHC/ghc-new-flavor/ghc/bindisttest/install
dir/share/doc/ghc"
/usr/bin/install -c -m 755 -d
"/home/dimitris/GHC/ghc-new-flavor/ghc/bindisttest/install
dir/share/doc/ghc/html"
/usr/bin/install -c -m 644 docs/index.html
"/home/dimitris/GHC/ghc-new-flavor/ghc/bindisttest/install
dir/share/doc/ghc/html"
/usr/bin/install -c -m 755 -d
"/home/dimitris/GHC/ghc-new-flavor/ghc/bindisttest/install
dir/share/doc/ghc/html/libraries"
for i in libraries/dist-haddock/*; do \
/usr/bin/install -c -m 644 $i
"/home/dimitris/GHC/ghc-new-flavor/ghc/bindisttest/install
dir/share/doc/ghc/html/libraries/"; \
done
/usr/bin/install -c -m 644 libraries/prologue.txt
"/home/dimitris/GHC/ghc-new-flavor/ghc/bindisttest/install
dir/share/doc/ghc/html/libraries/"
/usr/bin/install -c -m 755 libraries/gen_contents_index
"/home/dimitris/GHC/ghc-new-flavor/ghc/bindisttest/install
dir/share/doc/ghc/html/libraries/"
bindisttest/"install dir"/bin/runghc bindisttest/HelloWorld >
bindisttest/output
diff -U 1 bindisttest/output bindisttest/expected_output
bindisttest/"install dir"/bin/ghc --make bindisttest/HelloWorld
[1 of 1] Compiling Main ( bindisttest/HelloWorld.lhs,
bindisttest/HelloWorld.o )
Linking bindisttest/HelloWorld ...
bindisttest/HelloWorld > bindisttest/output
diff -U 1 bindisttest/output bindisttest/expected_output
bindisttest/"install dir"/bin/ghc-pkg check --no-user-package-conf
grep: mk/validate.mk: No such file or directory
Setup.hs:3:8:
Could not find module `Distribution.Simple'
Use -v to see a list of the files searched for.
dimitris@artemis:~/GHC/ghc-new-flavor/ghc$
So everything is built and I am at the point where I am supposed to
start installing and testing but something fails.
Admittedly I did fiddle with my cabal database a bit before doing this,
including upgrading cabal, but I have no clue
what could be going wrong. Is anyone else getting this or got this in
the past?
Does anyone have an idea of what could be causing this message, so that
I go and fix my installation?
Thanks!
d-
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc