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

bootstrap.sh fails with: "error: missing binary operator before token" #5940

Open
gantsevdenis opened this issue Mar 15, 2019 · 1 comment
Open

Comments

@gantsevdenis
Copy link

denis:~/cabal-install-2.4.1.0 $ ./bootstrap.sh 
Using gcc for C compiler. If this is not what you want, set CC.
Using /usr/lib/gcc/x86_64-linux-gnu/5/collect2 instead.
Checking installed packages for ghc-7.10.3...
deepseq is already installed and the version is ok.
binary is already installed and the version is ok.
time is already installed and the version is ok.
transformers is already installed and the version is ok.
mtl is already installed and the version is ok.
text is already installed and the version is ok.
parsec is already installed and the version is ok.
network-uri is already installed and the version is ok.
network is already installed and the version is ok.
HTTP is already installed and the version is ok.
zlib is already installed and the version is ok.
random is already installed and the version is ok.
stm is already installed and the version is ok.
hashable is already installed and the version is ok.
async is already installed and the version is ok.
base16-bytestring is already installed and the version is ok.
base64-bytestring is already installed and the version is ok.
cryptohash-sha256 is already installed and the version is ok.
resolv is already installed and the version is ok.
mintty-0.1.2 will be downloaded and installed.
echo is already installed and the version is ok.
edit-distance is already installed and the version is ok.
ed25519 is already installed and the version is ok.
tar is already installed and the version is ok.
digest is already installed and the version is ok.
zip-archive is already installed and the version is ok.
hackage-security-0.5.3.0 will be downloaded and installed.
Cabal-2.4.1.0 will be downloaded and installed.

Downloading Cabal-2.4.1.0...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  727k  100  727k    0     0   971k      0 --:--:-- --:--:-- --:--:--  972k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21825    0 21825    0     0  47365      0 --:--:-- --:--:-- --:--:-- 47342

Distribution/Parsec/ParseResult.hs:32:0:
     error: missing binary operator before token "("
     #if MIN_VERSION_base(4,10,0)
     ^

Distribution/Parsec/ParseResult.hs:88:0:
     error: missing binary operator before token "("
     #if MIN_VERSION_base(4,10,0)
     ^

Error during cabal-install bootstrap:
Compiling the Setup script failed.

$ uname -a
Linux denis-Aspire-VN7-791G 4.15.0-45-generic #48~16.04.1-Ubuntu SMP Tue Jan 29 18:03:48 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
@23Skidoo
Copy link
Member

If possible, try using a newer GHC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants