Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. FreeBSD port build 8.4.3_1 - StackOverflowHook (Sumit Raja) 2. Re: FreeBSD port build 8.4.3_1 - StackOverflowHook (Roger Mason) ---------------------------------------------------------------------- Message: 1 Date: Sat, 22 Sep 2018 15:10:34 +0530 From: Sumit Raja <sumitr...@gmail.com> To: beginners@haskell.org Subject: [Haskell-beginners] FreeBSD port build 8.4.3_1 - StackOverflowHook Message-ID: <CAD4nrSfZY6xktZ9SUNnyY5+jPp_S-uisV-=tCwHmEi_=nfr...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" 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 ------------------------------ Message: 2 Date: Sat, 22 Sep 2018 08:55:22 -0230 From: Roger Mason <rma...@mun.ca> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] FreeBSD port build 8.4.3_1 - StackOverflowHook Message-ID: <y658t3tsrj1....@mun.ca> Content-Type: text/plain Hello, Sumit Raja <sumitr...@gmail.com> writes: > 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 ------------------------------ Subject: Digest Footer _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners ------------------------------ End of Beginners Digest, Vol 123, Issue 10 ******************************************