FreeBSD port build 8.4.3_1 - StackOverflowHook

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

Hello,
Sumit Raja
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
It isn't clear from your message how you are building ghc. I have ghc-8.4.3 installed from the port on FreeBSD 11.1 and it works without issue. These two lines:
/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:
refer to 8.4.2, which looks a bit fishy to me. Good luck, Roger
participants (2)
-
Roger Mason
-
Sumit Raja