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

make doctest-cli fails on CPP #if #10607

Open
philderbeast opened this issue Nov 28, 2024 · 0 comments
Open

make doctest-cli fails on CPP #if #10607

philderbeast opened this issue Nov 28, 2024 · 0 comments

Comments

@philderbeast
Copy link
Collaborator

I'm documenting some makefile targets for #10596. I tried the doctest-cli target but it fails.

cabal/Makefile

Lines 134 to 137 in 4da153d

# This is not run as part of validate.sh (we need hackage-security, which is tricky to get).
.PHONY: doctest-cli
doctest-cli :
doctest -D__DOCTEST__ --fast cabal-install/src cabal-install-solver/src cabal-install-solver/src-assertion

$ make doctest-cli
doctest -D__DOCTEST__ --fast cabal-install/src cabal-install-solver/src cabal-install-solver/src-assertion

cabal-install/src/Distribution/Client/HashValue.hs:74:0: error:
     error: missing binary operator before token "("
       74 | #if MIN_VERSION_base16_bytestring(1,0,0)
   |
74 | #if MIN_VERSION_base16_bytestring(1,0,0)
   | ^

cabal-install/src/Distribution/Client/HttpUtils.hs:244:0: error:
     error: missing binary operator before token "("
      244 | #if MIN_VERSION_base16_bytestring(1,0,0)
    |
244 | #if MIN_VERSION_base16_bytestring(1,0,0)
    | ^

cabal-install/src/Distribution/Client/Compat/Tar.hs:7:0: error:
     error: missing binary operator before token "("
        7 | #if MIN_VERSION_tar(0,6,0)
  |
7 | #if MIN_VERSION_tar(0,6,0)
  | ^

cabal-install/src/Distribution/Client/Compat/Tar.hs:26:0: error:
     error: missing binary operator before token "("
       26 | #if MIN_VERSION_tar(0,6,0)
   |
26 | #if MIN_VERSION_tar(0,6,0)
   | ^

cabal-install/src/Distribution/Client/Compat/Tar.hs:54:0: error:
     error: missing binary operator before token "("
       54 | #if MIN_VERSION_tar(0,6,0)
   |
54 | #if MIN_VERSION_tar(0,6,0)
   | ^

cabal-install/src/Distribution/Client/Compat/Tar.hs:1:1: error:
    `gcc' failed in phase `C pre-processor'. (Exit code: 1)
  |
1 | {-# LANGUAGE CPP #-}
  | ^

cabal-install/src/Distribution/Client/HashValue.hs:1:1: error:
    `gcc' failed in phase `C pre-processor'. (Exit code: 1)
  |
1 | {-# LANGUAGE CPP #-}
  | ^

cabal-install/src/Distribution/Client/HttpUtils.hs:1:1: error:
    `gcc' failed in phase `C pre-processor'. (Exit code: 1)
  |
1 | {-# LANGUAGE BangPatterns #-}
  | ^
make: *** [Makefile:137: doctest-cli] Error 1
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

No branches or pull requests

1 participant