[GHC] #14064: Compiling problem on FreeBSD 11 ("failed in phase")
GHC
ghc-devs at haskell.org
Fri Aug 4 03:33:09 UTC 2017
#14064: Compiling problem on FreeBSD 11 ("failed in phase")
-------------------------------------+-------------------------------------
Reporter: ohho | Owner: (none)
Type: bug | Status: infoneeded
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Resolution: | Keywords:
Operating System: FreeBSD | Architecture: x86_64
Type of failure: GHC doesn't work | (amd64)
at all | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by ohho):
Replying to [comment:7 bgamari]:
> * I can't reproduce the `conc038` failure
I rebuilt GHC 8.2.1 today with ld override disabled, tested again and it's
gone.\\
So I guess this is also caused by the linker problem.
Without `--disable-ld-override`, I actually got the following error during
the compiling phase:
{{{
HC [stage 1] compiler/stage2/build/SysTools/Terminal.p_o
HC [stage 1] iserv/stage2_p/build/GHCi/Utils.p_o
HC [stage 1] libraries/time/dist-install/build/Data/Time/Format/Locale.o
HC [stage 1] libraries/time/dist-
install/build/Data/Time/LocalTime/Internal/TimeOfDay.o
/usr/local/bin/ld.gold: fatal error: cannot mix -r with dynamic object
/usr/lib/libthr.so
collect2: error: ld returned 1 exit status
`gcc5' failed in phase `Linker'. (Exit code: 1)
gmake[1]: *** [iserv/ghc.mk:93: iserv/stage2_p/build/GHCi/Utils.p_o] Error
1
gmake[1]: *** Waiting for unfinished jobs....
gmake: *** [Makefile:127: all] Error 2
}}}
Also, in rts/dist/build, `ffi.h` and `ffitarget.h` were reported missing
during `make binary-dist`.\\
I'm not sure if these headers are needed, the ones in /usr/local/include
(installed by libffi) are identical to what were packed in the official
tarball.\\
(Did I miss some steps in the building process?)
I've tried 3 different ways to bootstrap the build:
* GHC 7.10.2 from ports
* GHC 8.0.2 official binary distribution
* GHC 8.2.1 itself
It seemed that using 8.0.2 I could get the best test result.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14064#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list