#4860: Text.Regex crasher
-----------------------------+----------------------------------------------
Reporter: batkins | Owner:
Type: bug | Status: new
Priority: high | Milestone: 7.0.2
Component: libraries/base | Version: 7.0.1
Resolution: | Keywords: regex crash
Testcase: | Blockedby:
Difficulty: | Os: MacOS X
Blocking: | Architecture: x86
Failure: Runtime crash |
-----------------------------+----------------------------------------------
Comment(by maeder):
The problem can also be fixed by re-adding the flags "--cflag=-m32
--lflag=-m32" to `HSC2HS_EXTRA` in the hsc2hs script. The only spot where
hsc2hs is called is:
{{{
Creating dist/build/Text/Regex/Posix (and its parents)
/Users/Shared/maeder/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc
--cflag=-D__GLASGOW_HASKELL__=700 --cflag=-DHAVE_REGEX_H
--cflag=-DSPLIT_BASE=1
--cflag=-I/Users/Shared/maeder/lib/ghc-7.0.1.20101215/bytestring-0.9.1.8/include
--cflag=-I/Users/Shared/maeder/lib/ghc-7.0.1.20101215/base-4.3.1.0/include
--cflag=-I/Users/Shared/maeder/lib/ghc-7.0.1.20101215/include
--cflag=-I/Users/Shared/maeder/lib/ghc-7.0.1.20101215/include
--lflag=-L/home/maeder/.cabal/lib/regex-base-0.93.2/ghc-7.0.1.20101215
--lflag=-L/home/maeder/.cabal/lib/mtl-2.0.1.0/ghc-7.0.1.20101215
--lflag=-L/home/maeder/.cabal/lib/transformers-0.2.2.0/ghc-7.0.1.20101215
--lflag=-L/Users/Shared/maeder/lib/ghc-7.0.1.20101215/containers-0.4.0.0
--lflag=-L/Users/Shared/maeder/lib/ghc-7.0.1.20101215/bytestring-0.9.1.8
--lflag=-L/Users/Shared/maeder/lib/ghc-7.0.1.20101215/array-0.3.0.2
--lflag=-L/Users/Shared/maeder/lib/ghc-7.0.1.20101215/base-4.3.1.0
--lflag=-liconv --lflag=-L/Users/Shared/maeder/lib/ghc-7.0.1.20101215
/integer-gmp-0.2.0.3 --lflag=-L/Users/Shared/maeder/lib/ghc-7.0.1.20101215
/ghc-prim-0.2.0.0 --lflag=-L/Users/Shared/maeder/lib/ghc-7.0.1.20101215
--lflag=-lm --lflag=-ldl
--lflag=-L/Users/Shared/maeder/lib/ghc-7.0.1.20101215 -o
dist/build/Text/Regex/Posix/Wrap.hs Text/Regex/Posix/Wrap.hsc
Building regex-posix-0.94.4...
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4860#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs