error in compiling ghc-6.6.1 on 64-bit linux

Stefan O'Rear stefanor at cox.net
Sun Aug 12 17:37:47 EDT 2007


On Wed, Jul 25, 2007 at 02:50:02PM +0800, an0 wrote:
> The same error "cc1: error: unrecognized option `-fwrapv'" also occured 
> when
> I used the Linux (86_64) binary distribution of ghc-6.6.1 to compile a
> haskell programme with ffi foreign export (that is why I wanted to try to
> build a ghc by myself).
>
> some info:
> gcc -v
> Reading specs from /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/specs
> Configured with: ../configure --enable-threads=posix --prefix=/usr
> --with-local-prefix=/usr/local --infodir=/usr/share/info
> --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada
> --disable-checking --libdir=/usr/lib64 --enable-libgcj 
> --with-slibdir=/lib64
> --with-system-zlib --enable-shared --enable-__cxa_atexit x86_64-suse-linux
> Thread model: posix
> gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)

This seems to be a case of GHC bug #1569:

http://hackage.haskell.org/trac/ghc/ticket/1569

Does the poster's fix (upgrading gcc) work for you?

Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20070812/48f1dffb/attachment.bin


More information about the Glasgow-haskell-bugs mailing list