[Haskell-beginners] FreeBSD port build 8.4.3_1 - StackOverflowHook

Sumit Raja sumitraja at gmail.com
Sat Sep 22 09:40:34 UTC 2018


Hi,

I'm unable to get a consistent build of the FreeBSD 8.4.3 port on a
1.1-RELEASE-p11-amd64. I had success with a one build (in a jail) but
am now seeing this problem on a VM:

gmake --no-print-directory -f ghc.mk phase=1 phase_1_builds
  HC [stage 0] ghc/stage1/build/tmp/ghc-stage1
Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main.
    Call hs_init_ghc() from your main() function to set these options.
/usr/local/lib/ghc-8.4.2/rts/libHSrts.a(RTS.o): In function `StackOverflowHook':

/home/ben/bin-dist-8.4.2-FreeBSD/ghc/rts/hooks/StackOverflow.c:16:0: error:
     multiple definition of `StackOverflowHook'
ghc/stage1/build/hschooks.o:hschooks.c:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
`gcc7' failed in phase `Linker'. (Exit code: 1)
gmake[3]: *** [ghc/ghc.mk:111: ghc/stage1/build/tmp/ghc-stage1] Error 1

Thanks
Sumit


More information about the Beginners mailing list