I want to use parsec
for a personal project. But when I invoke cabal install parsec
, I get an error:
clang: error: unknown argument: '-no-pie'
gcc' failed in phase `C Compiler'. (Exit code: 1)
I am on OS X El Capitan, 10.11.6. If I have understood correctly he error message above, gcc
seems to be the cause. When I check the version of gcc
, I get
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
Besides, I have read this `gcc.exe' failed in phase `C Compiler'. (Exit code: 1) and after stack setup--reinstall
, stack install parsec
worked very well. But cabal always not. Can you help me?
stack ghci
). – Selmner