From nobody Sun Aug 28 20:55:40 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 4MG5SX21HJz4bLnT for ; Sun, 28 Aug 2022 20:55:40 +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 4MG5SX0sMKz3h5p for ; Sun, 28 Aug 2022 20:55:40 +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 4MG5SW6v99z1BwJ for ; Sun, 28 Aug 2022 20:55:39 +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 27SKtdPv086559 for ; Sun, 28 Aug 2022 20:55:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27SKtdfV086558 for haskell@FreeBSD.org; Sun, 28 Aug 2022 20:55:39 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: Sun, 28 Aug 2022 20:55:40 +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=1661720140; 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=3KI1WSs7lQx2EE0fMGD90dfW682USgY1AdglGRLMVKI=; b=LWK5WzaMMKmgxg/Huz91aIxF7t8UmvrOE1m+JTFlEoMN7BHQismOD+iE+kMWALGO0jHaPD 01SoNY25GG1q93bIcirPSrWQwOtzOaI0QT2Yj5HfQpuv7mniyj+wCh654MiWaduPe8mBKQ bBwx51WcBeEEMZ2fu/bYIsa8ZrM5/QGUuizBG+1guqOejHDTA0WlLErbr2GRpZc+XkZ8pW WcQP9eFA0HV6DebC96x2U94t61Va+BWGgu/WLd8XOR99ix3oqG2J4RmjXUZQSo8XWXsLwz 1tkx76VAgUTTE6ygH8djJZEs/S7nCudGGK6Wj4yBeIcwXI6Y62SYE5y66Prc2w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661720140; a=rsa-sha256; cv=none; b=I5Lj4hNRPO7q1rc8KotEJQQZSL+tKbDWXUJwauK7VdtK0jdaquDDGbkEQQhh6eQctd+Dec qiaMSQoXnAVHk3WigfkUvpWvOSsSjCTDLNEloBxDsmSqR4anfeeeZ6gXz/IJF5wHr+XqC7 9NgpHsyLFZYmqEsYeveweNpUecx9BKpEpmunYmHDWA4Hf9REsJe8A6Z2nu1OTJrxyCXXbA jt5mlfVNFBVLGtdgwMuL7MLjTVqriGH73E6HAekj/yrkQHOetRZLqMMpAzCgo8KkOjZXzq fdTgfvIc5y29duIQKuFDUygkq2Lev9GcsVOhpQQJ55N+xHqdh4EcxkEkQ6ffCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264192 --- Comment #50 from Mark Millard --- (In reply to Mark Millard from comment #49) On the OPi+2e (so a Cortex-A7 form of armv7 -- without aarch64 present), UFS context, I tried: # /usr/local/llvm12/bin/llc -O1 -enable-tbaa -relocation-model=3Dstatic -mcpu=3Dgeneric -mattr=3D+strict-align ghc2478_0/ghc_6.bc -o ghc2478_0/ghc_= 7.lm_s Ultimately, lcc on the OPi+2e, processing the ghx_6.bc in question, got: # /usr/local/llvm12/bin/llc -O1 -enable-tbaa -relocation-model=3Dstatic -mcpu=3Dgeneric -mattr=3D+strict-align ghc2478_0/ghc_6.bc -o ghc2478_0/ghc_= 7.lm_s 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 ghc2478_0= /ghc_6.bc -o ghc2478_0/ghc_7.lm_s 1. Running pass 'Function Pass Manager' on module 'ghc2478_0/ghc_6.bc'. 2. Running pass 'ARM Instruction Selection' on function '@"clp2g_info$def"' #0 0x221ac0a0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/local/llvm12/bin/../lib/libLLVM-12.so+0x20ac0a0) #1 0x221a9d1c llvm::sys::RunSignalHandlers() (/usr/local/llvm12/bin/../lib/libLLVM-12.so+0x20a9d1c) #2 0x221acd08 (/usr/local/llvm12/bin/../lib/libLLVM-12.so+0x20acd08) #3 0x24d2eed8 handle_signal /usr/main-src/lib/libthr/thread/thr_sig.c:0:3 Abort trap (core dumped) But it was interesting to watch: direct armv7 does not limit processes to 2 GiBytes of SIZE (as top lables it) but keeps the RES under 2 GiBytes --but aarch64's handling of chroot to armv7 prevents getting to such a state if I remember right. On the OPi+2e, before the failure: PID JID USERNAME PRI NICE SIZE RES STATE C TIME C= PU COMMAND 1291 0 root 25 0 2489Mi 1705Mi biowr 2 23:02 6.7= 2% /usr/local/llvm12/bin/llc -O1 -enable-tbaa -relocation-model=3Dstatic -mcpu=3Dgeneric -mattr=3D+strict-align ghc2478_0/ghc_6.bc For reference, from shortly before the process did fail for out of memory: (modified variant of top that tracks various "Maximum Observed" figures) Mem: . . ., 1680Mi MaxObsActive, 190356Ki MaxObsWired, 1932Mi MaxObs(Act+Wir+Lndry) Swap: 3072Mi Total, 1014Mi Used, 2058Mi Free, 33% Inuse, 1014Mi MaxObsUsed, 2708Mi MaxObs(Act+Lndry+SwapUsed), 2888Mi MaxObs(Act+Wir+Lndry+SwapUsed) I'm rerunning with time -l and will report the result. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=