Hadrian: Suddenly a full build fails with: Rules may not be recursive

2019-06-21 Thread Roland Senn
Hi,

Suddenly I'm unable to build! As usual, I did:

git pull upstream master --recurse-submodules=yes
git submodule update --init --recursive


$ hadrian/build.sh clean
Up to date
| Removing Hadrian files...
| Remove directory _build/stage0
| Remove directory _build/stage1
| Remove directory _build/stage2
| Remove directory _build/stage3
| Remove directory sdistprep
| Remove directory _build (after build completes)
| Done.

... + statistics

$ hadrian/build.sh -c --flavour=devel2 -j2
Up to date
| Running boot...
Error when running Shake build system:
  at action, called at src/Rules.hs:68:19 in main:Rules
  at apply1, called at
src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.2-
fca156899176fbf7a9b05f30b3ec991784b3e60af38a503ea1cb277fd96f971e:Develo
pment.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (KeyValue ("hadrian/cfg/system.config","host-
os"))
  at need, called at src/Hadrian/Oracles/TextFile.hs:90:9 in
main:Hadrian.Oracles.TextFile
* Depends on: hadrian/cfg/system.config
  at &%>, called at src/Rules/Configure.hs:21:5 in main:Rules.Configure
* Depends on: hadrian/cfg/system.config mk/config.h compiler/ghc.cabal
rts/rts.cabal
  at apply1, called at
src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.2-
fca156899176fbf7a9b05f30b3ec991784b3e60af38a503ea1cb277fd96f971e:Develo
pment.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (KeyValue ("hadrian/cfg/system.config","host-
os"))
* Raised the exception:
Build system error - recursion detected:
  Key type:   OracleQ KeyValue
  Key value:  OracleQ (KeyValue ("hadrian/cfg/system.config","host-
os"))
Rules may not be recursive


OS is Linux Debian 9 (x86_64)

Any ideas what's wrong??

Many thanks and kind regards
   Roland
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Hadrian: Suddenly a full build fails with: Rules may not be recursive

2019-06-21 Thread Matthew Pickering
The -c flag is broken.

Run ./boot and ./configure manually and then it should work (without -c)

Cheers,

Matt

On Fri, Jun 21, 2019 at 5:55 PM Roland Senn  wrote:
>
> Hi,
>
> Suddenly I'm unable to build! As usual, I did:
>
> git pull upstream master --recurse-submodules=yes
> git submodule update --init --recursive
>
>
> $ hadrian/build.sh clean
> Up to date
> | Removing Hadrian files...
> | Remove directory _build/stage0
> | Remove directory _build/stage1
> | Remove directory _build/stage2
> | Remove directory _build/stage3
> | Remove directory sdistprep
> | Remove directory _build (after build completes)
> | Done.
>
> ... + statistics
>
> $ hadrian/build.sh -c --flavour=devel2 -j2
> Up to date
> | Running boot...
> Error when running Shake build system:
>   at action, called at src/Rules.hs:68:19 in main:Rules
>   at apply1, called at
> src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.2-
> fca156899176fbf7a9b05f30b3ec991784b3e60af38a503ea1cb277fd96f971e:Develo
> pment.Shake.Internal.Rules.Oracle
> * Depends on: OracleQ (KeyValue ("hadrian/cfg/system.config","host-
> os"))
>   at need, called at src/Hadrian/Oracles/TextFile.hs:90:9 in
> main:Hadrian.Oracles.TextFile
> * Depends on: hadrian/cfg/system.config
>   at &%>, called at src/Rules/Configure.hs:21:5 in main:Rules.Configure
> * Depends on: hadrian/cfg/system.config mk/config.h compiler/ghc.cabal
> rts/rts.cabal
>   at apply1, called at
> src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.2-
> fca156899176fbf7a9b05f30b3ec991784b3e60af38a503ea1cb277fd96f971e:Develo
> pment.Shake.Internal.Rules.Oracle
> * Depends on: OracleQ (KeyValue ("hadrian/cfg/system.config","host-
> os"))
> * Raised the exception:
> Build system error - recursion detected:
>   Key type:   OracleQ KeyValue
>   Key value:  OracleQ (KeyValue ("hadrian/cfg/system.config","host-
> os"))
> Rules may not be recursive
>
>
> OS is Linux Debian 9 (x86_64)
>
> Any ideas what's wrong??
>
> Many thanks and kind regards
>Roland
> ___
> ghc-devs mailing list
> ghc-devs@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Hadrian: Suddenly a full build fails with: Rules may not be recursive

2019-06-21 Thread Brandon Allbery
"-c" is a bad option that conflates configuration and build, and leads to
this when certain kinds of configuration changes happen and alter the build
rules that are already running. Stop using "-c" and reconfigure properly
(./boot etc.). Yes, it's "convenient", right up until this happens. And
eventually this *will* happen, because configuration should not be done via
build rules.

On Fri, Jun 21, 2019 at 12:55 PM Roland Senn  wrote:

> Hi,
>
> Suddenly I'm unable to build! As usual, I did:
>
> git pull upstream master --recurse-submodules=yes
> git submodule update --init --recursive
>
>
> $ hadrian/build.sh clean
> Up to date
> | Removing Hadrian files...
> | Remove directory _build/stage0
> | Remove directory _build/stage1
> | Remove directory _build/stage2
> | Remove directory _build/stage3
> | Remove directory sdistprep
> | Remove directory _build (after build completes)
> | Done.
>
> ... + statistics
>
> $ hadrian/build.sh -c --flavour=devel2 -j2
> Up to date
> | Running boot...
> Error when running Shake build system:
>   at action, called at src/Rules.hs:68:19 in main:Rules
>   at apply1, called at
> src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.2-
> fca156899176fbf7a9b05f30b3ec991784b3e60af38a503ea1cb277fd96f971e:Develo
> pment.Shake.Internal.Rules.Oracle
> * Depends on: OracleQ (KeyValue ("hadrian/cfg/system.config","host-
> os"))
>   at need, called at src/Hadrian/Oracles/TextFile.hs:90:9 in
> main:Hadrian.Oracles.TextFile
> * Depends on: hadrian/cfg/system.config
>   at &%>, called at src/Rules/Configure.hs:21:5 in main:Rules.Configure
> * Depends on: hadrian/cfg/system.config mk/config.h compiler/ghc.cabal
> rts/rts.cabal
>   at apply1, called at
> src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.2-
> fca156899176fbf7a9b05f30b3ec991784b3e60af38a503ea1cb277fd96f971e:Develo
> pment.Shake.Internal.Rules.Oracle
> * Depends on: OracleQ (KeyValue ("hadrian/cfg/system.config","host-
> os"))
> * Raised the exception:
> Build system error - recursion detected:
>   Key type:   OracleQ KeyValue
>   Key value:  OracleQ (KeyValue ("hadrian/cfg/system.config","host-
> os"))
> Rules may not be recursive
>
>
> OS is Linux Debian 9 (x86_64)
>
> Any ideas what's wrong??
>
> Many thanks and kind regards
>Roland
> ___
> ghc-devs mailing list
> ghc-devs@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>


-- 
brandon s allbery kf8nh
allber...@gmail.com
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Hadrian: Suddenly a full build fails with: Rules may not be recursive

2019-06-21 Thread Shayne Fletcher via ghc-devs
Sorry @Matthew Pickering . Fired off my
response before I saw yours!

On Fri, Jun 21, 2019 at 1:55 PM Shayne Fletcher 
wrote:

> I think this is because `--configure` is currently broken
> https://gitlab.haskell.org/ghc/ghc/issues/16809. You can work around by
> running bootstrap and configure manually for now.
>
> On Fri, Jun 21, 2019 at 12:55 PM Roland Senn  wrote:
>
>> Hi,
>>
>> Suddenly I'm unable to build! As usual, I did:
>>
>> git pull upstream master --recurse-submodules=yes
>> git submodule update --init --recursive
>>
>>
>> $ hadrian/build.sh clean
>> Up to date
>> | Removing Hadrian files...
>> | Remove directory _build/stage0
>> | Remove directory _build/stage1
>> | Remove directory _build/stage2
>> | Remove directory _build/stage3
>> | Remove directory sdistprep
>> | Remove directory _build (after build completes)
>> | Done.
>>
>> ... + statistics
>>
>> $ hadrian/build.sh -c --flavour=devel2 -j2
>> Up to date
>> | Running boot...
>> Error when running Shake build system:
>>   at action, called at src/Rules.hs:68:19 in main:Rules
>>   at apply1, called at
>> src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.2-
>> fca156899176fbf7a9b05f30b3ec991784b3e60af38a503ea1cb277fd96f971e:Develo
>> pment.Shake.Internal.Rules.Oracle
>> * Depends on: OracleQ (KeyValue ("hadrian/cfg/system.config","host-
>> os"))
>>   at need, called at src/Hadrian/Oracles/TextFile.hs:90:9 in
>> main:Hadrian.Oracles.TextFile
>> * Depends on: hadrian/cfg/system.config
>>   at &%>, called at src/Rules/Configure.hs:21:5 in main:Rules.Configure
>> * Depends on: hadrian/cfg/system.config mk/config.h compiler/ghc.cabal
>> rts/rts.cabal
>>   at apply1, called at
>> src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.2-
>> fca156899176fbf7a9b05f30b3ec991784b3e60af38a503ea1cb277fd96f971e:Develo
>> pment.Shake.Internal.Rules.Oracle
>> * Depends on: OracleQ (KeyValue ("hadrian/cfg/system.config","host-
>> os"))
>> * Raised the exception:
>> Build system error - recursion detected:
>>   Key type:   OracleQ KeyValue
>>   Key value:  OracleQ (KeyValue ("hadrian/cfg/system.config","host-
>> os"))
>> Rules may not be recursive
>>
>>
>> OS is Linux Debian 9 (x86_64)
>>
>> Any ideas what's wrong??
>>
>> Many thanks and kind regards
>>Roland
>> ___
>> ghc-devs mailing list
>> ghc-devs@haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>>
>
>
> --
> *Shayne Fletcher*
> Language Engineer */* +1 917 699 7663
> *Digital Asset* , creators of *DAML
> *
>


-- 
*Shayne Fletcher*
Language Engineer */* +1 917 699 7663
*Digital Asset* , creators of *DAML
*

-- 
This message, and any attachments, is for the intended recipient(s) only, 
may contain information that is privileged, confidential and/or proprietary 
and subject to important terms and conditions available at 
http://www.digitalasset.com/emaildisclaimer.html 
. If you are not the 
intended recipient, please delete this message.
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Hadrian: Suddenly a full build fails with: Rules may not be recursive

2019-06-21 Thread Shayne Fletcher via ghc-devs
I think this is because `--configure` is currently broken
https://gitlab.haskell.org/ghc/ghc/issues/16809. You can work around by
running bootstrap and configure manually for now.

On Fri, Jun 21, 2019 at 12:55 PM Roland Senn  wrote:

> Hi,
>
> Suddenly I'm unable to build! As usual, I did:
>
> git pull upstream master --recurse-submodules=yes
> git submodule update --init --recursive
>
>
> $ hadrian/build.sh clean
> Up to date
> | Removing Hadrian files...
> | Remove directory _build/stage0
> | Remove directory _build/stage1
> | Remove directory _build/stage2
> | Remove directory _build/stage3
> | Remove directory sdistprep
> | Remove directory _build (after build completes)
> | Done.
>
> ... + statistics
>
> $ hadrian/build.sh -c --flavour=devel2 -j2
> Up to date
> | Running boot...
> Error when running Shake build system:
>   at action, called at src/Rules.hs:68:19 in main:Rules
>   at apply1, called at
> src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.2-
> fca156899176fbf7a9b05f30b3ec991784b3e60af38a503ea1cb277fd96f971e:Develo
> pment.Shake.Internal.Rules.Oracle
> * Depends on: OracleQ (KeyValue ("hadrian/cfg/system.config","host-
> os"))
>   at need, called at src/Hadrian/Oracles/TextFile.hs:90:9 in
> main:Hadrian.Oracles.TextFile
> * Depends on: hadrian/cfg/system.config
>   at &%>, called at src/Rules/Configure.hs:21:5 in main:Rules.Configure
> * Depends on: hadrian/cfg/system.config mk/config.h compiler/ghc.cabal
> rts/rts.cabal
>   at apply1, called at
> src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.18.2-
> fca156899176fbf7a9b05f30b3ec991784b3e60af38a503ea1cb277fd96f971e:Develo
> pment.Shake.Internal.Rules.Oracle
> * Depends on: OracleQ (KeyValue ("hadrian/cfg/system.config","host-
> os"))
> * Raised the exception:
> Build system error - recursion detected:
>   Key type:   OracleQ KeyValue
>   Key value:  OracleQ (KeyValue ("hadrian/cfg/system.config","host-
> os"))
> Rules may not be recursive
>
>
> OS is Linux Debian 9 (x86_64)
>
> Any ideas what's wrong??
>
> Many thanks and kind regards
>Roland
> ___
> ghc-devs mailing list
> ghc-devs@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>


-- 
*Shayne Fletcher*
Language Engineer */* +1 917 699 7663
*Digital Asset* , creators of *DAML
*

-- 
This message, and any attachments, is for the intended recipient(s) only, 
may contain information that is privileged, confidential and/or proprietary 
and subject to important terms and conditions available at 
http://www.digitalasset.com/emaildisclaimer.html 
. If you are not the 
intended recipient, please delete this message.
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: [ANNOUNCE] GHC 8.8.1-alpha2 is now available

2019-06-21 Thread George Colpitts
Will 8.8.1 use llvm 7.0.1? I don't see it mentioned in the release notes.

Cheers
George


On Sat, Jun 15, 2019 at 4:36 PM Ben Gamari  wrote:

> Hello everyone,
>
> The GHC team is pleased to announce the second and likely last alpha
> release of GHC 8.8.1. The source distribution, binary distributions, and
> documentation are available at
>
> https://downloads.haskell.org/~ghc/8.8.1-alpha2
>
> A draft of the release notes is also available [1].
>
> This release is the culmination of over 3000 commits by over one hundred
> contributors and has several new features and numerous bug fixes
> relative to GHC 8.6:
>
>  * Profiling now works correctly on 64-bit Windows (although still may
>be problematic on 32-bit Windows due to platform limitations; see
>#15934)
>
>  * A new code layout algorithm for amd64's native code generator
>
>  * The introduction of a late lambda-lifting pass which may reduce
>allocations significantly for some programs.
>
>  * Further work on Trees That Grow, enabling improved code re-use of the
>Haskell AST in tooling
>
>  * More locations where users can write `forall` (GHC Proposal #0007)
>
>  * Further work on the Hadrian build system
>
> This release brings a number of fixes since alpha 1:
>
>  * A number of linker fixes (#16779, #16784)
>
>  * The process, binary, Cabal, time, terminfo libraries have all been
>bumped to their final release versions
>
>  * A regression rendering TemplateHaskell unusable in cross-compiled
>configurations has been fixed (#16331)
>
>  * A regression causing compiler panics on compilation of some programs
>has been fixed (#16449)
>
>  * -Wmissing-home-modules now handles hs-boot files correctly (#16551)
>
>  * A regression causing some programs to fail at runtime has been fixed
>(#16066)
>
> Due to on-going work on our release and testing infrastructure this
> cycle is proceeding at a pace significantly slower than expected.
> However, we anticipate that this investment will allow us to release a
> more reliable, easier-to-install compiler on the planned six-month
> release cadence in the future.
>
> As always, if anything looks amiss do let us know.
>
> Happy compiling!
>
> Cheers,
>
> - Ben
>
> [1]
> https://downloads.haskell.org/ghc/8.8.1-alpha2/docs/html/users_guide/8.8.1-notes.html
> ___
> Glasgow-haskell-users mailing list
> glasgow-haskell-us...@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users
>
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs