Problem running zlib test suite: ghc: unrecognised flag: -fno-stack-protector

Andrés Sicard-Ramírez asr at eafit.edu.co
Sun Aug 30 01:08:21 UTC 2015


Hi,

I'm trying of running the zlib test suite using GHC 7.10.2 and hsc2hs 0.67:

  $ darcs get http://code.haskell.org/zlib/
  $ cd zlib
  $ cabal install
  $ cd test
  $ make test
  hsc2hs --cc=ghc --ld=ghc --lflag=-lz -o
../Codec/Compression/Zlib/Stream.hs
../Codec/Compression/Zlib/Stream.hsc
  ghc: unrecognised flag: -fno-stack-protector
  ...
  compiling ../Codec/Compression/Zlib/Stream_hsc_make.c failed (exit code 1)
  command was: ghc -c ../Codec/Compression/Zlib/Stream_hsc_make.c -o
../Codec/Compression/Zlib/Stream_hsc_make.o -fno-stack-protector
-I/usr/local/stow/ghc-7.10.2/lib/ghc-7.10.2/include/

Am I doing something wrong?

Best,

-- 
Andrés


More information about the Libraries mailing list