Ticket #4320 (closed bug: fixed)

Opened 3 years ago

Last modified 2 years ago

GHC Build System: make clean on windows requires ./configure to be rerun

Reported by: dterei Owned by: igloo
Priority: normal Milestone: 7.0.2
Component: Build System Version: 6.13
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Building GHC failed Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

On windows, with the ghc build system, if 'make clean' is run in the top level then the user can't simply run 'make' to build ghc after. The user must run './configure' again before 'make' can be run. The reason for this is 'make clean' removes the inplace mingw gcc binaries and they are installed into the inplace tree by './configure'.

This seems a bug to me. I expect to be able to run 'make' after running 'make clean'. I only expect to have to run './configure' again if I run 'make distclean' or 'make maintainer-clean'.

I checked the gnu standards then and they match my expectations.

 http://www.gnu.org/software/automake/manual/html_node/Clean.html#Clean  http://www.gnu.org/software/automake/manual/standards/Standard-Targets.html#Standard-Targets

Change History

Changed 3 years ago by igloo

  • owner set to igloo
  • milestone set to 7.0.1

Changed 3 years ago by igloo

  • status changed from new to closed
  • resolution set to worksforme

It works for me. If you still think there's a problem, can you please reopen and include the error you get?

Changed 3 years ago by dterei

  • owner igloo deleted
  • status changed from closed to new
  • resolution worksforme deleted

I still have the problem I reported. This is what happens if I run 'make clean && make':

[ 1 of 26] Compiling Data.Binary.Builder ( libraries\binary\src\Data\Binary\Builder.hs, bootstrapping\Data\Binary\Builder.o )
[ 2 of 26] Compiling Data.Binary.Put  ( libraries\binary\src\Data\Binary\Put.hs, bootstrapping\Data\Binary\Put.o )
[ 5 of 26] Compiling Data.Binary.Get  ( libraries\binary\src\Data\Binary\Get.hs, bootstrapping\Data\Binary\Get.o )
[ 6 of 26] Compiling Data.Binary      ( libraries\binary\src\Data\Binary.hs, bootstrapping\Data\Binary.o )
[23 of 26] Compiling Distribution.InstalledPackageInfo.Binary ( libraries\bin-package-db\Distribution\InstalledPackageInfo\Binary.hs, bootstrapping\Distribution\InstalledPackageInfo\Binary.o )
[25 of 26] Compiling Version          ( utils\ghc-pkg\Version.hs, bootstrapping\Version.o )
[26 of 26] Compiling Main             ( utils\ghc-pkg\Main.hs, bootstrapping\Main.o )
Linking utils/ghc-pkg/dist/build/ghc-pkg.exe.exe ...
"inplace/bin/mkdirhier" inplace/lib/package.conf.d/.
"rm" -f inplace/lib/package.conf.d/*
cp utils/ghc-pkg/dist/build/ghc-pkg.exe.exe inplace/bin/ghc-pkg.exe
"inplace/bin/ghc-cabal.exe" configure --with-ghc="C:/dev/HaskellPlatform/bin/ghc.exe" --with-ghc-pkg="C:/dev/HaskellPlatform/bin/ghc-pkg" --with-gcc="C:/dev/cygwin/home/atdavid/Ghc/reg/inplace/mingw/bin/gcc.exe" --configure-option=--with-cc="C:/dev/cygwin/home/atdavid/Ghc/reg/inplace/mingw/bin/gcc.exe"  --package-db=C:/dev/cygwin/home/atdavid/Ghc/reg/libraries/bootstrapping.conf --enable-library-profiling --enable-library-for-ghci --configure-option=CFLAGS=" -fno-stack-protector  " --configure-option=LDFLAGS="  " --constraint "Cabal == 1.11.0" --constraint "hpc == 0.5.0.6" --constraint "extensible-exceptions == 0.1.1.2" --constraint "binary == 0.5.0.2" --constraint "bin-package-db == 0.0.0.0" -- dist-boot libraries/Cabal
Configuring Cabal-1.11.0...
ghc-cabal.exe: Cannot find the program 'gcc' at
'C:/dev/cygwin/home/atdavid/Ghc/reg/inplace/mingw/bin/gcc.exe' or on the path
make[1]: *** [libraries/Cabal/dist-boot/package-data.mk] Error 1
make: *** [all] Error 2

Changed 2 years ago by igloo

  • owner set to igloo
  • milestone changed from 7.0.1 to 7.0.2

Aha, thanks.

Changed 2 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Fixed in HEAD and 7.0 by:

Sun Dec  5 13:20:48 PST 2010  Ian Lynagh <igloo@earth.li>
  * Tweak the cleaning of inplace/; fixes trac #4320
Note: See TracTickets for help on using tickets.