maintainer-feedback requested: [Bug 236263] lang/ghc: build fails if LOCALBASE != /usr/local

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Mar 5 16:33:57 UTC 2019


Bugzilla Automation <bugzilla at FreeBSD.org> has asked freebsd-haskell mailing
list <haskell at FreeBSD.org> for maintainer-feedback:
Bug 236263: lang/ghc: build fails if LOCALBASE != /usr/local
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236263



--- Description ---
lang/ghc fails to build with the default options (notably BOOT=off) if
LOCALBASE != /usr/local:


=============================
 .
 .
[1 of 1] Compiling Main 	    ( Setup.hs, Setup.o )
Linking Setup ...
cc: warning: argument unused during compilation: '-nopie'
[-Wunused-command-line-argument]
cc: warning: argument unused during compilation: '-nopie'
[-Wunused-command-line-argument]
/usr/bin/ld: cannot find -liconv
cc: error: linker command failed with exit code 1 (use -v to see invocation)
`cc' failed in phase `Linker'. (Exit code: 1)
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/ghc
=============================

It seems the pre-built bootstrap version of ghc has hard-coded references to
/usr/local.  Is there a way to override those references?


More information about the freebsd-haskell mailing list