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
Unrecognized --compiler flag? #6007
Comments
Try bare `--ghcjs`
…Sent from my iPhone
On 20 Apr 2019, at 20.40, blankhart ***@***.***> wrote:
Cabal 2.4.1.0 does not seem to recognize the --compiler flag on the command line:
cabal: unrecognized 'new-build' option `--compiler=ghcjs'
The documentation (https://cabal.readthedocs.io/en/latest/nix-local-build.html) suggests that this option should be recognized.
For background I am trying to build a GHCJS project that succeeds when the following is in the cabal.project file, but fails when the toolchain is omitted:
compiler: ghcjs
with-compiler: /opt/ghcjs/8.4/bin/ghcjs
with-hc-pkg: /opt/ghcjs/8.4/bin/ghcjs-pkg
Without specifying the compiler toolchain, Cabal produces the following error (using installations from hvr's very useful Ubuntu PPA):
> cabal new-build client --with-compiler=ghcjs-8.4.0.1 --with-hc-pkg=ghcjs-pkg-8.4.0.1
cabal: Version mismatch between ghc and ghc-pkg: /opt/ghcjs/bin/ghcjs-8.4.0.1 is version 8.4.0.1 /opt/ghcjs/bin/ghcjs-pkg-8.4.0.1 is version 8.4.2.20180420
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It builds with that change, thanks. I.e., using
And not:
Glad to close this issue but would note that the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cabal 2.4.1.0 does not seem to recognize the
--compiler
flag on the command line:The documentation (https://cabal.readthedocs.io/en/latest/nix-local-build.html) suggests that this option should be recognized.
For background I am trying to build a GHCJS project that succeeds when the following is in the
cabal.project
file, but fails when the toolchain is omitted:Without specifying the compiler toolchain, Cabal produces the following error (using installations from hvr's very useful Ubuntu PPA):
The text was updated successfully, but these errors were encountered: