From nobody Tue Aug 23 10:50:34 2022 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 4MBmGf36Slz4ZLt1 for ; Tue, 23 Aug 2022 10:50:34 +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 4MBmGf163zz3tKD for ; Tue, 23 Aug 2022 10:50:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4MBmGf0CKWzRJ2 for ; Tue, 23 Aug 2022 10:50:34 +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 27NAoXQ2008652 for ; Tue, 23 Aug 2022 10:50:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27NAoXZ2008651 for haskell@FreeBSD.org; Tue, 23 Aug 2022 10:50:33 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 264192] lang/ghc: poudriere based build used odd mix of devel/llvm10 and system toolchain Date: Tue, 23 Aug 2022 10:50:34 +0000 X-Bugzilla-Reason: CC 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: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: haskell@FreeBSD.org X-Bugzilla-Flags: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661251834; 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=X6ciz62Vfv1gX7ySIzumbkUAKWR0A6R3jb8h9hTx+Hc=; b=rHhlf8DEwG1nCDJER7obX8SQka/Dub8BVEy/J3fgI3alvEZvViL3ct/xMZlYSXg3ZUSYTT z2cMSIqIbTlYGjtcTLF3YotB7lWa++qLuQeE8f/Av2xDFWyTe0lWPv3UDCeOQGNwaMUoJk roHhdkV29EOuVRZtnbwhjLws5QGQFSrCPZA9K06lKjnUFxoA5nBLu/E3HVtCTG+4HYby7f GpVZ2TAbxyV/dyAZDqakeR/P5ykTkpx7Ql1MebZitEu6kP86GpmMnF7e4fjk0PrWVT/xNh CwC+A+a5uIviUs8lOlI9HmrHdH62+qJTPdOYG2aTQd/3ZxrmXCbj6P2hCzSSYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661251834; a=rsa-sha256; cv=none; b=hq/6ITwHqvLOWE/V68Gv/jn8o0ugIoLxd1XMoHn0eFmflzlOsViR2yQic4caM4MGcQi6wi wWFWFAvrvHWD1njUPLY6XQnqxrY0hL6hdqxoIObADiZFgaxEHPhcJIYdR4ubt5Eu52MbWW ryUQQUVMUNIpTN4OMcHDhc7ZZ8qRAeTbgOlO2xXy+btFJS0cqiXTKTk1k6QVe7tfBXZ0ub zPmDupfRVh0DqW2QrNstnqtJfCFI6DN+iQA/3oF6ubyl57A4x0GXFU+v6bLBmTH3G1bcPZ QVlgRwpikP9YlhllEZrm3qJ6MPjNSPuj5Tmw06xG5jmL3LVoVaHekTxRv0p+/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264192 --- Comment #34 from Mark Millard --- [A similar submittal of again having the wrong mix of llc versions in use may need to be submitted.] For ghc-9.2.4 builds, should the early: /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.7-boot/lib/ghc-8.10.7/bin/ghc . .= . related command activity be using: /usr/local/llvm12/bin/llc . . . commands? Or should it be using: /usr/local/llvm10/bin/llc . . . commands? What I see is only /usr/local/llvm12/bin/llc based despite the Makefile file listing BOOT_LLVM_VERSION as 10: LLVM_VERSION?=3D 12 BOOT_GHC_VERSION=3D 8.10.7 # LLVM version that bootstrap compiler uses BOOT_LLVM_VERSION=3D 10 I ask because the existing builds on the servers for armv7 again look like they did for when this was submitted, where an incorrect mix of llc versions had been in use. The failure is now before the haddock issues again, as well. (The below is from my personal test build so I would watch the build commands, instead of being from the FreeBSD build servers.) LLVM ERROR: out of memory Allocation failed PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace. Stack dump: 0. Program arguments: /usr/local/llvm12/bin/llc -O1 -enable-tbaa -relocation-model=3Dstatic -mcpu=3Dgeneric -mattr=3D+strict-align /tmp/ghc24288_0/ghc_6.bc -o /tmp/ghc24288_0/ghc_7.lm_s 1. Running pass 'Function Pass Manager' on module '/tmp/ghc24288_0/ghc_6.bc'. 2. Running pass 'ARM Instruction Selection' on function '@"s17Rl_info$def"' LLVM ERROR: out of memory Allocation failed HC [stage 1] libraries/Cabal/Cabal/dist-install/build/Distribution/Simple/PreProcess.o `llc12' failed in phase `LLVM Compiler'. (Exit code: -6) gmake[2]: *** [compiler/ghc.mk:288: compiler/stage2/build/GHC/Hs/Instances.= p_o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... gmake[1]: *** [Makefile:128: all] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/ghc/work/ghc-9.2.4' =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure = to the maintainer. *** Error code 1 If: /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.7-boot/lib/ghc-8.10.7/bin/ghc . .= . should use: /usr/local/llvm10/bin/llc . . . then a new problem looks like it would need submittal and fixing. For reference, the recent http://ampere2.nyi.freebsd.org/data/main-armv7-default/p85ef7d020401_s0fd8d= 3589/logs/errors/ghc-9.2.4.log lists: LLVM ERROR: out of memory Allocation failed PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace. Stack dump: 0. Program arguments: /usr/local/llvm12/bin/llc -O1 -enable-tbaa -relocation-model=3Dstatic -mcpu=3Dgeneric -mattr=3D+strict-align /tmp/ghc22379_0/ghc_6.bc -o /tmp/ghc22379_0/ghc_7.lm_s 1. Running pass 'Function Pass Manager' on module '/tmp/ghc22379_0/ghc_6.bc'. 2. Running pass 'ARM Instruction Selection' on function '@"s17Rl_info$def"' HC [stage 1] compiler/stage2/build/GHC/StgToCmm/Monad.p_o `llc12' failed in phase `LLVM Compiler'. (Exit code: -6) gmake[2]: *** [compiler/ghc.mk:288: compiler/stage2/build/GHC/Hs/Instances.= p_o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... gmake[1]: *** [Makefile:128: all] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/ghc/work/ghc-9.2.4' =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure = to the maintainer. *** Error code 1 --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=