Clean build fails with make

Simon Peyton Jones simonpj at microsoft.com
Wed May 29 11:35:20 UTC 2019


|  Anyways the workaround, other than a big `git clean -fdx`, is a removing
|  these three files
|  
|   * includes/dist/build/settings,
|   * lib/settings,
|   * settings
|  
|  Then make will regenerate them.

Excellent, that works.

|  I would be happy to change the cleaning
|  stuff to actually fix the issue, but I am not sure how.

It may not matter.  We don't want to spend lots of time on the old build system.  Is this a once-only thing? I.e. once done will never happen again?  Or might it happen repeatedly?

Simon

|  -----Original Message-----
|  From: John Ericson <git at johnericson.me>
|  Sent: 28 May 2019 23:33
|  To: Ben Gamari <ben at well-typed.com>
|  Cc: Simon Peyton Jones <simonpj at microsoft.com>; GHC developers <ghc-
|  devs at haskell.org>
|  Subject: Re: Clean build fails with make
|  
|  This is the same issue as before; and I don't know how the cleaning works.
|  The good thing is that I think I am done adding things to that. (Perhaps
|  some should be removed, but that won't cause these issues.)
|  
|  Anyways the workaround, other than a big `git clean -fdx`, is a removing
|  these three files
|  
|   * includes/dist/build/settings,
|   * lib/settings,
|   * settings
|  
|  Then make will regenerate them. I would be happy to change the cleaning
|  stuff to actually fix the issue, but I am not sure how.
|  
|  Sorry for more disruption,
|  
|  John
|  
|  On Tue, May 28, 2019, at 5:56 PM, Ben Gamari wrote:
|  > Simon Peyton Jones via ghc-devs <ghc-devs at haskell.org> writes:
|  >
|  > > A 'sh validate` in a clean tree fails as below.
|  > > Is that expected? That is, is validate dead?
|  > > If so let's change the shell script to say "game over, just use
|  > > Hadrian".
|  > > Simon
|  >
|  > John, it looks like this is more fallout from the recent platform
|  > changes. Any thoughts?
|  >
|  > Cheers,
|  >
|  > - Ben
|  >
|  > > "inplace/bin/ghc-cabal" check libraries/ghc-prim
|  > >
|  > > "inplace/bin/ghc-cabal" configure libraries/ghc-prim dist-install
|  > > --with-ghc="/home/simonpj/code/HEAD/inplace/bin/ghc-stage1"
|  > > --with-ghc-pkg="/home/simonpj/code/HEAD/inplace/bin/ghc-pkg"
|  > > --disable-library-for-ghci --enable-library-vanilla
|  > > --enable-library-for-ghci --disable-library-profiling --enable-shared
|  --configure-option=CFLAGS="-Wall -Werror=unused-but-set-variable -Wno-
|  error=inline" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS="
|  > > " --gcc-options="-Wall -Werror=unused-but-set-variable -Wno-
|  error=inline " --with-gcc="gcc"
|  > > --with-ld="ld.gold" --with-ar="ar" --with-alex="/usr/bin/alex" --with-
|  happy="/usr/bin/happy"
|  > >
|  > > Configuring ghc-prim-0.6.1...
|  > >
|  > > ghc-cabal: '/home/simonpj/code/HEAD/inplace/bin/ghc-stage1' exited
|  > > with an
|  > >
|  > > error:
|  > >
|  > > No entry for "target platform string" in
|  > >
|  > > "/home/simonpj/code/HEAD/inplace/lib/settings"
|  > >
|  > > libraries/ghc-prim/ghc.mk:4: recipe for target
|  > > 'libraries/ghc-prim/dist-install/package-data.mk' failed
|  > >
|  > > make[1]: *** [libraries/ghc-prim/dist-install/package-data.mk] Error
|  > > 1
|  > >
|  > > Makefile:123: recipe for target 'all' failed
|  > >
|  > > make: *** [all] Error 2
|  >
|  >
|  > *Attachments:*
|  >  * signature.asc


More information about the ghc-devs mailing list