[Bug 273091] lang/ghc 9.4.6 fails to build without the addition of iconv configure flags

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 13 Aug 2023 14:38:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273091

--- Comment #2 from Kevin Reinholz <kreinholz@gmail.com> ---
(In reply to Gleb Popov from comment #1)

Actually, while I have lang/gcc12 installed from Ports, my default compiler is
LLVM:

FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git
llvmorg-16.0.6-0-g7cbf1a259152)
Target: x86_64-unknown-freebsd13.2
Thread model: posix
InstalledDir: /usr/bin

I'm not sure why lang/ghc would pick up and select GCC instead of the base
system LLVM. There are no `make config` options to select an alternate compiler
for lang/ghc so it ought to automatically use the default compiler installed in
/usr/bin, rather than poking around in /usr/local/bin.

I have lang/gcc12 installed as a dependency of java/openjdk11, itself a
dependency of editors/libreoffice, but most Ports pick up the default LLVM
system compiler installed in /usr/bin and use that. 

At any rate, feeding those two configure arguments to ghc so it can find iconv
allows ghc to build without errors.

-- 
You are receiving this mail because:
You are the assignee for the bug.