5

I am using Arch Linux ARM with ghc 6.12.3-1 and gcc 4.7.1-5. When I try to compile cabal[TAR] using:

sh bootstrap.sh

Error

Checking installed packages for ghc-6.12.3...
Cabal-1.14.0 will be downloaded and installed.
transformers-0.3.0.0 will be downloaded and installed.
mtl-2.1 will be downloaded and installed.
deepseq-1.3.0.0 will be downloaded and installed.
text-0.11.2.0 will be downloaded and installed.
parsec-3.1.2 will be downloaded and installed.
network-2.3.0.11 will be downloaded and installed.
time is already installed and the version is ok.
HTTP-4000.2.3 will be downloaded and installed.
zlib-0.5.3.3 will be downloaded and installed.
random is already installed and the version is ok.

Downloading Cabal-1.14.0...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  270k  100  270k    0     0   392k      0 --:--:-- --:--:-- --:--:--  443k
ghc: could not execute: /usr/lib/distcc/bin/gcc

Error during cabal-install bootstrap:
Compiling the Setup script failed
1
  • 2
    Looks like its trying to use distcc?
    – Jivings
    Aug 16 '12 at 6:43
4

Looks like ghc is configured to use distcc version of gcc. I don't know Arch Linux too much so I can't check this but maybe it was build with "--with-gcc=/usr/lib/distcc/bin/gcc" or something like this. This should be fixed by installing distcc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.