Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] GHC 9.0.1 #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

noughtmare
Copy link

@noughtmare noughtmare commented Aug 18, 2021

I have been able to make this work with GHC 9.0.1 and cabal 3.4.0.0 by running:

$ ./configure --with-v2-commands
$ make
<some error>

And then copying this cabal.project to build/101/lib-ehc:

-- this file is meant to be copied to build/101/lib-ehc/cabal.project

packages: .

source-repository-package
    type: git
    location: https://github.com/noughtmare/uhc-util.git
    tag: 2ed3f49fec4f13c1b1302938973c773f20fe0271

source-repository-package
    type: git
    location: https://github.com/noughtmare/chr.git
    tag: d8be9f200ebc052f1a317bca2cccf89ffb8cf8f4
    subdir: chr-core

source-repository-package
    type: git
    location: https://github.com/noughtmare/chr.git
    tag: d8be9f200ebc052f1a317bca2cccf89ffb8cf8f4
    subdir: chr-data

source-repository-package
    type: git
    location: https://github.com/noughtmare/logict-state.git
    tag: a56340e0a88bafc72b17939d66dccead490a5bb2

source-repository-package
    type: git
    location: https://github.com/UU-ComputerScience/uuagc.git
    tag: 0247df1dbfbc41d5952291f282de8dedd9d5e0c6
    subdir: uuagc/trunk/cabal-plugin

allow-newer: pqueue:base

And then running make again.

I know this is a bit unwieldy, but it will not be necessary if the patches are merged and uploaded to Hackage. But perhaps it is good to allow for this kind of package overriding in a better way.

To do:

  • Track the .ghc.environment file (generated here) as a proper Make target.
  • Add comments.
  • Resolve the obsolete AC_HEADER_TIME warning (here).

@noughtmare
Copy link
Author

noughtmare commented Aug 19, 2021

Compiling certain modules will take very long due to pattern match checks, disabling them with -Wno-incomplete-patterns -Wno-incomplete-uni-patterns -Wno-overlapping-patterns -Wno-incomplete-patterns should speed up compile times considerably.

See this GHC issue

The configure I now use looks like this:

./configure --enable-v2-commands --with-ghc-ehc-options="-Wno-incomplete-patterns -Wno-incomplete-uni-patterns -Wno-overlapping-patterns -Wno-incomplete-patterns" --with-gcc-ehc-options="-Wno-address-of-packed-member"

@noughtmare noughtmare changed the title GHC 9.0.1 [WIP] GHC 9.0.1 Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant