HEAD: make clean fails to delete libraries/bootstrapping.conf (directory)
"rm" -f libraries/bootstrapping.conf libraries/integer-gmp/cbits/GmpDerivedConstants.h libraries/integer-gmp/include/HsIntegerGmp.h libraries/integer-gmp2/include/HsIntegerGmp.h libraries/base/include/EventConfig.h mk/config.mk.old mk/project.mk.old compiler/ghc.cabal.old includes/GHCConstants.h includes/DerivedConstants.h includes/ghcautoconf.h includes/ghcplatform.h includes/ghcversion.h utils/ghc-pkg/Version.hs compiler/prelude/primops.txt
rm: cannot remove `libraries/bootstrapping.conf': Is a directory
make[1]: *** [clean_files] Error 1
Then I do
rm -r libraries/bootstrapping.conf
make clean
and this succeeds.
Now I build again:
make
and get an error:
"inplace/bin/ghc-cabal" configure libraries/binary dist-boot "" --with-ghc="/home/ggreif/bin/ghc" --with-ghc-pkg="/home/ggreif/bin/ghc-pkg" --package-db=/home/ggreif/%NoBackup%/ghc7/ghc-head-x86_64/libraries/bootstrapping.conf --disable-library-for-ghci --enable-library-vanilla --disable-library-profiling --disable-shared --configure-option=CFLAGS=" -fno-stack-protector " --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --gcc-options=" -fno-stack-protector " --configure-option=--with-gmp-includes="/home/ggreif/include" --constraint "binary == 0.7.2.3" --constraint "Cabal == 1.21.1.0" --constraint "hpc == 0.6.0.2" --constraint "bin-package-db == 0.0.0.0" --constraint "hoopl == 3.10.0.2" --constraint "transformers == 0.4.2.0" --constraint "terminfo == 0.4.0.1" --with-gcc="/usr/bin/gcc" --configure-option=--with-cc="/usr/bin/gcc" --with-ar="/usr/bin/ar" --with-alex="/home/ggreif/bin/alex" --with-happy="/home/ggreif/bin/happy"
Configuring binary-0.7.2.3...
ghc-cabal: '/home/ggreif/bin/ghc-pkg' exited with an error:
ghc-pkg: ghc no longer supports single-file style package databases
(/home/ggreif/%NoBackup%/ghc7/ghc-head-x86_64/libraries/bootstrapping.conf)
use 'ghc-pkg init' to create the database with the correct format.
make[1]: *** [libraries/binary/dist-boot/package-data.mk] Error 1
But the thing is created as a file now:
$ ls -l libraries/bootstrapping.conf
-rw-r--r-- 1 ggreif grp 3 Dec 18 11:17 libraries/bootstrapping.conf
I can recreate it manually:
$ rm libraries/bootstrapping.conf
$ /home/ggreif/bin/ghc-pkg init libraries/bootstrapping.conf
$ ls -ld libraries/bootstrapping.conf
drwxr-xr-x 2 ggreif grp 96 Dec 18 11:23 libraries/bootstrapping.conf
And now make
works...
Trac metadata
Trac field | Value |
---|---|
Version | 7.9 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Build System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |