FreeBSD port build 8.4.3_1 - StackOverflowHook

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

FreeBSD port build 8.4.3_1 - StackOverflowHook

Sumit Raja
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
_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: FreeBSD port build 8.4.3_1 - StackOverflowHook

Roger Mason
Hello,

Sumit Raja <[hidden email]> 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
_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: FreeBSD port build 8.4.3_1 - StackOverflowHook

Sumit Raja
In reply to this post by Sumit Raja
> From: Roger Mason <[hidden email]>
> 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.

It was a standard port build using portsnap and make && make install.
Clean install of the ports tree using a fresh ghc to bootstrap worked
correctly - I think the ports tree was very broken.

-Sumit
_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: FreeBSD port build 8.4.3_1 - StackOverflowHook

Roger Mason

Sumit Raja <[hidden email]> writes:

>
> It was a standard port build using portsnap and make && make install.
> Clean install of the ports tree using a fresh ghc to bootstrap worked
> correctly - I think the ports tree was very broken.

Glad to hear you got it fixed.

Roger
_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners