Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Mar 2019 16:33:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        haskell@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 236263] lang/ghc: build fails if LOCALBASE != /usr/local
Message-ID:  <bug-236263-16154-bSEhnVzi7k@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-236263-16154@https.bugs.freebsd.org/bugzilla/>
References:  <bug-236263-16154@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-haskell mailing
list <haskell@FreeBSD.org> for maintainer-feedback:
Bug 236263: lang/ghc: build fails if LOCALBASE !=3D /usr/local
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236263



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


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
 .
 .
[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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236263-16154-bSEhnVzi7k>