From nobody Sun Aug 13 22:11:36 2023 X-Original-To: haskell@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RPBZc5pvzz4qHH4 for ; Sun, 13 Aug 2023 22:11:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RPBZc4nbGz4RDc for ; Sun, 13 Aug 2023 22:11:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691964696; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gH7iU1L/3FQIIjC4+BYo+NVAgtyXKiWw7TpIjS6fX70=; b=ldN5GKoe7DAKymRDfp+PtHB7FPpmTNBJOSFMwzgawcgRJDztRkpToR5GuuR5gohEEDyur5 y8ABq+CiYYKCI3VNCQWktU0Oq/AJUfZfEYQAuaUOYvbdxkZ0lKOgmWyfsl96lNVnr9pR1w wgMnRyxa+r/10Nu4pIWKx18FyaEM6pQ8DN5AKlQ1fydF3oxJGM8xpF4i+a04QZulXt3GHu EFzEDhl8UwjdfMf9yre0jlWMSs0KnZBlO//V0KcwVEm12Dz82ox/J9tzGAFZB5c9Qbofm8 st/7OaTK9f55MJXFtPZlnf1DIA+ocUKOGOHTMbOB3YRzPHhBvZe27krtRR/pbg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691964696; a=rsa-sha256; cv=none; b=Kd9QKaxVPVB+XmCcoKkUtfjVPOn30eFs3qXgadTbi7I9SVxfi1s8M9Jda0AGPjV27LdnHD tZvrskdEPuPJCOwlaF421eIEF+uTjfu0sdymLl1+t8zHotWhEJWMYj/epF2A5ZeGkQIJI5 Q3+kdYu734G3gLLHsKKHTELhXS/V1YMNs8ML7RTV95OO98q3W2R+Cv1xFoP4AWFSCe8cK7 ullbnRk2pfjEcuRqTRk1eAgF9m2VvIKZF2Mzy4PR4yhu1E69JxNqVm2x71kepBazRoHTwz 7CaOP3Pvbyxa/sJ5FOE+7N9eOq+jAGVAX9s5YWuuodBaBS+BOk/Ln1CUdQZGFA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RPBZc3qk1z1J9b for ; Sun, 13 Aug 2023 22:11:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 37DMBa01016676 for ; Sun, 13 Aug 2023 22:11:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 37DMBaWr016675 for haskell@FreeBSD.org; Sun, 13 Aug 2023 22:11:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: haskell@FreeBSD.org Subject: [Bug 273091] lang/ghc 9.4.6 fails to build without the addition of iconv configure flags Date: Sun, 13 Aug 2023 22:11:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kreinholz@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: haskell@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Haskell issues and discussions List-Archive: https://lists.freebsd.org/archives/freebsd-haskell List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-haskell@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273091 --- Comment #6 from Kevin Reinholz --- (In reply to Gleb Popov from comment #3) I created a build log using script, which I then split in half in order to attach to this bug report. Reviewing the log, you are absolutely right that ghc is attempting to build using GCC rather than the system LLVM. As far as I can tell, the configure script checks for the presence of GCC, and if found, selects that as the compiler, rather than defaulting to system LLVM. Even if built using GCC12, I was still able to successfully build and insta= ll ghc-9.4.6 so long as I specified the location of iconv headers and libs: --with-iconv-libraries=3D${LOCALBASE}/lib=20 --with-iconv-includes=3D${LOCALBASE}/include This resolved the problem for me. However, it seems a potentially larger problem is the defaulting to third party installed GCC compiler instead of system LLVM if GCC is present in /usr/local/bin. --=20 You are receiving this mail because: You are the assignee for the bug.=