GNU bug report logs - #77431
[PATCH] gnu: zig: Set rss_max to unlimited

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Tommy Langhelle <tomlanghe@HIDDEN>; Keywords: patch; dated Tue, 1 Apr 2025 14:00:15 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 77431 <at> debbugs.gnu.org:


Received: (at 77431) by debbugs.gnu.org; 4 Apr 2025 12:34:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 04 08:34:48 2025
Received: from localhost ([127.0.0.1]:37383 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u0gG0-0002tl-3s
	for submit <at> debbugs.gnu.org; Fri, 04 Apr 2025 08:34:48 -0400
Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:57453)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <tomlanghe@HIDDEN>)
 id 1u0fcA-00012g-K8
 for 77431 <at> debbugs.gnu.org; Fri, 04 Apr 2025 07:53:39 -0400
Received: by mail-lf1-x12e.google.com with SMTP id
 2adb3069b0e04-5493b5bc6e8so2323620e87.2
 for <77431 <at> debbugs.gnu.org>; Fri, 04 Apr 2025 04:53:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1743767611; x=1744372411; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=3jei8sfzg60MxWteAHQmn7tlS+YQaBwyPd95oenTLhs=;
 b=lD4gON/+QvnCSzCkgfdVxkuNypNONhUwoHQkPiELYr9GhzdV6ZJ+tNsb4hcqQ9ER6N
 Ze73jLBf6FIiTOMGf+xjyFBx3CjfPe1F65I0PQY3ythclzJ4bEj23tQhKzgmfouVwUK6
 FN5j9uDTZzNAGIfFSkmbWIDu2PEhBXOHGNDq+1XEm5N2LF2cGH01atPcpJWwgt5WHK0O
 07oZegCPBCimP2+naVVPdgxJTp5O5JgZl6JCE8JCdqPdYIt1RYQhQKZjUBUOmCg68HeK
 zfkQv2R1zyteCTGsB5CMcS1A1bp0+5EOfQPVWqWBx4vyJpSwMcNF3KsvazeSlQBnrlxG
 9sQA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1743767611; x=1744372411;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=3jei8sfzg60MxWteAHQmn7tlS+YQaBwyPd95oenTLhs=;
 b=GbypU8vEidgr4YWeLuQUFYPf8tCzDpcCOK9naw5zIxixnK1qoE4Hb+iiSNl3W1O1iw
 tqRtrRjKiJuXGlduTmPQsw3q/+7pKowsjfAFFBjHGCO5JzPnKHwfFELx3FGoAQAHdYkr
 WfeCOdWPnLlw7OUK61nyL32U9thKP/fUx4zb59/yP+Wbnx6BcXVqUhwPuyBU3y2Ek4e9
 GrR5oWKgfc/MWDOuhb4qbjM6nP0bFxmvGjvYovaMafDR8MQDQk4J7mkFWlVWc04crqYH
 3pFmz89IlA45PeWriOKRdVCd7PQFjnoXXnSuVSlubN7t012VJscCnPiCF08fVNCKIwME
 qf+g==
X-Gm-Message-State: AOJu0YwuTmFNgPoAPn1UmgVd6GIxcxLYkbFRLir+SB7yL1oXl0gL+8lf
 gQUGnRku1cf9T/poe2L1B8sgX1+L73UFKKvYjW95VlvpcZIzBEYBcdXJJ3ss
X-Gm-Gg: ASbGncs2JfWijc2N3BTaEBxLfKF990NWjlC46LBjD7jtlB6Ud5af+de8ATiyyrQMuG7
 vax4om03g1ZORnDE0w5zyhMPLzzLLPORjiWn6V3Lkxk/+zkPrIYuvtOCVRrWmWULOxhieD8kgjt
 EUkDGII9lH8rw9np8yIm7FYibZOZFwYLPdFwmiZXKUihnyPk6GZk71mxhtLKZaAMzdn5fTCVSbh
 NLLmvBU+du7FMJyJy0JQJF+rKHUvwH3w0lexC3hZUtQRiDxvGuAJ3FWz3BaKk4EPsbBtTNDQzVQ
 Worj5tskMEnWF5H0zV6er4vHGXdFK3734gLuVMSupz6giOdp3HWZ3OgEApYfApmfxrQvefBX2An
 mTIJD1oYSh2JArjZfNfynxHBE
X-Google-Smtp-Source: AGHT+IFrN5vEkyjMdQa/5dh0AZiYJTAb03PJA4uhoOE9aSRhHDLm51EmWwjkZF+ae6jJ9PIn4/gA1Q==
X-Received: by 2002:a05:6512:1107:b0:54b:117c:a3b4 with SMTP id
 2adb3069b0e04-54c2338ae20mr632623e87.54.1743767610975; 
 Fri, 04 Apr 2025 04:53:30 -0700 (PDT)
Received: from localhost.localdomain (ti0040q160-3815.bb.online.no.
 [82.164.117.21]) by smtp.gmail.com with ESMTPSA id
 2adb3069b0e04-54c1e672306sm408101e87.237.2025.04.04.04.53.30
 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);
 Fri, 04 Apr 2025 04:53:30 -0700 (PDT)
From: Tommy Langhelle <tomlanghe@HIDDEN>
X-Google-Original-From: Tommy Langhelle <tommy.langhelle@HIDDEN>
To: 77431 <at> debbugs.gnu.org
Subject: [PATCH v2] gnu: zig: Set rss_max to unlimited for 0.14
Date: Fri,  4 Apr 2025 13:53:19 +0200
Message-ID: <20250404115319.73520-1-tommy.langhelle@HIDDEN>
X-Mailer: git-send-email 2.41.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77431
X-Mailman-Approved-At: Fri, 04 Apr 2025 08:34:43 -0400
Cc: hako@HIDDEN, Tommy Langhelle <tommy.langhelle@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Upstream sets this for CI purposes, but it fails my ARM builds. The
limit itself doesn't make too much sense as long as zig builds and the
build host is big enough, so simply allowing unlimited rss should be
fine.

* gnu/packages/zig.scm (zig-0.14)[source]: Set max_rss to unlimited.
---
 gnu/packages/zig.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index 733251242e..17c859ad70 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -1871,7 +1871,12 @@ (define-public zig-0.14
         (search-patches
          "zig-0.14-use-baseline-cpu-by-default.patch"
          "zig-0.14-use-system-paths.patch"
-         "zig-0.14-fix-runpath.patch"))))
+         "zig-0.14-fix-runpath.patch"))
+         (snippet
+          #~(begin
+            #$(origin-snippet (package-source zig-0.13))
+            (substitute* "build.zig"
+              ((".max_rss = [0-9_]+,") ".max_rss = 0,"))))))
     (inputs
      (modify-inputs (package-inputs zig-0.13)
        (replace "clang" clang-19)

base-commit: e7aeec67feaa5cf888f0aae14400fc015390aa8e
-- 
2.41.0





Information forwarded to guix-patches@HIDDEN:
bug#77431; Package guix-patches. Full text available.

Message received at 77431 <at> debbugs.gnu.org:


Received: (at 77431) by debbugs.gnu.org; 4 Apr 2025 12:34:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 04 08:34:48 2025
Received: from localhost ([127.0.0.1]:37381 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u0gFv-0002td-QC
	for submit <at> debbugs.gnu.org; Fri, 04 Apr 2025 08:34:48 -0400
Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:45139)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <tomlanghe@HIDDEN>)
 id 1u0fOj-0000OR-VA
 for 77431 <at> debbugs.gnu.org; Fri, 04 Apr 2025 07:39:50 -0400
Received: by mail-wm1-x32e.google.com with SMTP id
 5b1f17b1804b1-43cfebc343dso13320755e9.2
 for <77431 <at> debbugs.gnu.org>; Fri, 04 Apr 2025 04:39:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1743766779; x=1744371579; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=yQ3G8iEnlmMNZsbBIbDkxZgT72scyW7tCK7+Y/lpHcs=;
 b=fdV/qlSRRM1jW+4eTzRHb5umo8TfJ2b/QXbRPgT1uwVtBFtL5jH3DimrAt+FXnhVbc
 gRaqaLv3KL2iMgDxKUxYngYzQW6DIgiXu6er/L5KkoBmkXZV1H2Vxz7S9LG15yNVaQe4
 JQ6TnlX2U0oL6IVzyTd1HGQQsUWEeZgm1+i8p9Nkk02fS2ansnAzDsfD0Lu9lM7UkdTc
 cGaf09Q7V2BSMBa5ndfuY5uX9nKUZX+6aeLak+Q1d4KVi3D1+XkbmcCiU561mr6doZ1i
 Bz4K+BvXOX3YVc6ZLrlZ94HcHroZ1BkxP/L3fqWwoos+PrRx+Gb4uuq1guqvO/sOV9fi
 X16g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1743766779; x=1744371579;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=yQ3G8iEnlmMNZsbBIbDkxZgT72scyW7tCK7+Y/lpHcs=;
 b=FbR+x/IqLfxColc3QZrjNCEXAOUsNE4Ev5JIPM51lCys6GLlzcD8qSxWIfdfU2BPXk
 Zyjj4+A3ARlWo5CKvTUbd/Rse6AUZSB+ZN4aP4BlLa813MYoskOtFBes/BffyqzjeInQ
 7UQcoSLVo4ZnEulSEdDzFAcD9LHM0pVus9CR0FmXDA2zHeegod17RKG0VFo0R6+cu5QZ
 OAlg2KnkSbKXRBWcoGiC5oXmtL2UHtKgI4P0TscDzUFLR8Pf/QNOXDeSz9XG0Typ1+UC
 W4CYpgLUURRrpc5z8YZm8X/bYRSxUnc1cR9mA4kTCsPSQEKbPpIfTVW/7N7bWQlmw7Ga
 12rA==
X-Gm-Message-State: AOJu0Ywp9c3WhT3zZ3HL+7u6EaLwAUU0yxSswnO7Ui9eBi+1pSqdOWZ9
 ja6zoRdG7LWxVioo67yebejUfavGxa4tTGMcyqWrofl36OUZnOr9qqvpeC3B4pHNnhIUxu3xAcO
 /TjBg10B7NofGqR5Sk1ghgg4rSxI=
X-Gm-Gg: ASbGncsTnqQAb28GioKb1GaGG7mNNRN+8FeeRhUkxGgfHw+ksFrcPxx+pNaiBY4p9B2
 qbDXM159SXJubhhBkBMVzAJXOkaAfVTWbPcPwPniX1wzUIU9Dn9u0a9+c3PyKOzzxn9peP2NrjJ
 J8zqIq/S7DEE3BnTRU6xd5T2PzvguTFuVsKhl/Gn5a8hwUPJ12Uqb2N3rEsQ==
X-Google-Smtp-Source: AGHT+IEMIJg66UI11d44Yn1J1CRZnA1YLQf53QQBNwEOyw1g7mZh06a0DjJO6DA/44V4idqTCunwIiwhXV+awsUfGsY=
X-Received: by 2002:a5d:5f90:0:b0:391:3988:1c97 with SMTP id
 ffacd0b85a97d-39cb35bd8ebmr2537145f8f.17.1743766778936; Fri, 04 Apr 2025
 04:39:38 -0700 (PDT)
MIME-Version: 1.0
References: <20250401083336.27759-1-tommy.langhelle@HIDDEN>
 <87o6xfvr8d.wl-hako@HIDDEN>
In-Reply-To: <87o6xfvr8d.wl-hako@HIDDEN>
From: Tommy Langhelle <tomlanghe@HIDDEN>
Date: Fri, 4 Apr 2025 13:39:27 +0200
X-Gm-Features: ATxdqUHtwACCinIri68jAQZMNgkJt9-b3MfHwqXmvsjMmYnNC-ZLPxtm1G1GIFc
Message-ID: <CAEsUS2gdf3XAcL4oSUojcS_u+fGqo=TszvcHWhKNz+AQ6XS1mQ@HIDDEN>
Subject: Re: [bug#77431] [PATCH] gnu: zig: Set rss_max to unlimited
To: Hilton Chain <hako@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000006e0d8d0631f25792"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77431
X-Mailman-Approved-At: Fri, 04 Apr 2025 08:34:43 -0400
Cc: 77431 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--0000000000006e0d8d0631f25792
Content-Type: text/plain; charset="UTF-8"

Sure! Here is the relevant section of the log:


[ 73%] Running zig1.wasm to produce
/tmp/guix-build-zig-0.14.0.drv-0/source/zig2.c

[ 78%] Running zig1.wasm to produce
/tmp/guix-build-zig-0.14.0.drv-0/source/compiler_rt.c

/tmp/guix-build-zig-0.14.0.drv-0/source/zig1
/tmp/guix-build-zig-0.14.0.drv-0/source/lib build-exe -ofmt=c -lc
-OReleaseSmall --name zig2
-femit-bin="/tmp/guix-build-zig-0.14.0.drv-0/source/zig2.c" -target
aarch64-linux-gnu --dep build_options --dep aro -Mroot=src/main.zig
-Mbuild_options=/tmp/guix-build-zig-0.14.0.drv-0/source/config.zig
-Maro=lib/compiler/aro/aro.zig

/tmp/guix-build-zig-0.14.0.drv-0/source/zig1
/tmp/guix-build-zig-0.14.0.drv-0/source/lib build-obj -ofmt=c
-OReleaseSmall --name compiler_rt
-femit-bin="/tmp/guix-build-zig-0.14.0.drv-0/source/compiler_rt.c" -target
aarch64-linux-gnu -Mroot=lib/compiler_rt.zig

cd /tmp/guix-build-zig-0.14.0.drv-0/source &&
/gnu/store/1mjsh0bmxpr1ivvwagyjv0plk066b211-cmake-minimal-3.24.2/bin/cmake
-E cmake_depends "Unix Makefiles" /tmp/guix-build-zig-0.14.0.drv-0/source
/tmp/guix-build-zig-0.14.0.drv-0/source
/tmp/guix-build-zig-0.14.0.drv-0/source
/tmp/guix-build-zig-0.14.0.drv-0/source
/tmp/guix-build-zig-0.14.0.drv-0/source/CMakeFiles/zig2.dir/DependInfo.cmake
--color=

make[2]: Leaving directory '/tmp/guix-build-zig-0.14.0.drv-0/source'

make  -f CMakeFiles/zig2.dir/build.make CMakeFiles/zig2.dir/build

make[2]: Entering directory '/tmp/guix-build-zig-0.14.0.drv-0/source'

[ 89%] Building C object CMakeFiles/zig2.dir/compiler_rt.c.o

[ 89%] Building C object CMakeFiles/zig2.dir/zig2.c.o

/gnu/store/zcvhj876402zaz3cd2j6s2k4y4fnzdf7-gcc-11.4.0/bin/gcc
-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -I/tmp/guix-build-zig-0.14.0.drv-0/source/stage1 -O2
-g -DNDEBUG -std=c99 -O0 -fno-stack-protector -MD -MT
CMakeFiles/zig2.dir/zig2.c.o -MF CMakeFiles/zig2.dir/zig2.c.o.d -o
CMakeFiles/zig2.dir/zig2.c.o -c
/tmp/guix-build-zig-0.14.0.drv-0/source/zig2.c

/gnu/store/zcvhj876402zaz3cd2j6s2k4y4fnzdf7-gcc-11.4.0/bin/gcc
-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -I/tmp/guix-build-zig-0.14.0.drv-0/source/stage1 -O2
-g -DNDEBUG -std=c99 -O0 -fno-stack-protector -MD -MT
CMakeFiles/zig2.dir/compiler_rt.c.o -MF
CMakeFiles/zig2.dir/compiler_rt.c.o.d -o
CMakeFiles/zig2.dir/compiler_rt.c.o -c
/tmp/guix-build-zig-0.14.0.drv-0/source/compiler_rt.c

[ 94%] Linking CXX executable zig2

/gnu/store/1mjsh0bmxpr1ivvwagyjv0plk066b211-cmake-minimal-3.24.2/bin/cmake
-E cmake_link_script CMakeFiles/zig2.dir/link.txt --verbose=1

/gnu/store/zcvhj876402zaz3cd2j6s2k4y4fnzdf7-gcc-11.4.0/bin/c++ -O2 -g
-DNDEBUG -Wl,-z,stack-size=0x10000000 CMakeFiles/zig2.dir/zig2.c.o
CMakeFiles/zig2.dir/compiler_rt.c.o -o zig2  zigcpp/libzigcpp.a
/gnu/store/700f3b2d6m77xsxpp8dqjv2f4fif723z-clang-19.1.7/lib/libclang-cpp.so.19.1
/gnu/store/0ca4w71pz4dmfikzwb5j3qly3gbikjld-lld-19.1.7/lib/liblldMinGW.a
/gnu/store/0ca4w71pz4dmfikzwb5j3qly3gbikjld-lld-19.1.7/lib/liblldELF.a
/gnu/store/0ca4w71pz4dmfikzwb5j3qly3gbikjld-lld-19.1.7/lib/liblldCOFF.a
/gnu/store/0ca4w71pz4dmfikzwb5j3qly3gbikjld-lld-19.1.7/lib/liblldWasm.a
/gnu/store/0ca4w71pz4dmfikzwb5j3qly3gbikjld-lld-19.1.7/lib/liblldMachO.a
/gnu/store/0ca4w71pz4dmfikzwb5j3qly3gbikjld-lld-19.1.7/lib/liblldCommon.a
/gnu/store/rq7nyisff6cz7ysbrkcyfqnglzyzk1d8-llvm-19.1.7/lib/libLLVM-19.so
-lrt -ldl -lm -lz

make[2]: Leaving directory '/tmp/guix-build-zig-0.14.0.drv-0/source'

[ 94%] Built target zig2

make  -f CMakeFiles/stage3.dir/build.make CMakeFiles/stage3.dir/depend

make[2]: Entering directory '/tmp/guix-build-zig-0.14.0.drv-0/source'

cd /tmp/guix-build-zig-0.14.0.drv-0/source &&
/gnu/store/1mjsh0bmxpr1ivvwagyjv0plk066b211-cmake-minimal-3.24.2/bin/cmake
-E cmake_depends "Unix Makefiles" /tmp/guix-build-zig-0.14.0.drv-0/source
/tmp/guix-build-zig-0.14.0.drv-0/source
/tmp/guix-build-zig-0.14.0.drv-0/source
/tmp/guix-build-zig-0.14.0.drv-0/source
/tmp/guix-build-zig-0.14.0.drv-0/source/CMakeFiles/stage3.dir/DependInfo.cmake
--color=

make[2]: Leaving directory '/tmp/guix-build-zig-0.14.0.drv-0/source'

make  -f CMakeFiles/stage3.dir/build.make CMakeFiles/stage3.dir/build

make[2]: Entering directory '/tmp/guix-build-zig-0.14.0.drv-0/source'

[100%] Building stage3

/tmp/guix-build-zig-0.14.0.drv-0/source/zig2 build --prefix
/tmp/guix-build-zig-0.14.0.drv-0/source/stage3 --zig-lib-dir
/tmp/guix-build-zig-0.14.0.drv-0/source/lib -Dversion-string=0.14.0
-Dtarget=aarch64-linux-gnu -Dcpu=baseline -Denable-llvm
-Dconfig_h=/tmp/guix-build-zig-0.14.0.drv-0/source/config.h -Dno-langref
-Doptimize=ReleaseFast

install

+- install zig

   +- zig build-exe zig ReleaseFast aarch64-linux-gnu failure

error: memory usage peaked at 8708960256 bytes, exceeding the declared
upper bound of 7800000000

Build Summary: 2/5 steps succeeded; 1 failed

install transitive failure

+- install zig transitive failure

   +- zig build-exe zig ReleaseFast aarch64-linux-gnu failure

error: the following build command failed with exit code 1:

/tmp/zig-cache/o/ba585b8503da6c37d6ae47a94f10099d/build
/tmp/guix-build-zig-0.14.0.drv-0/source/zig2
/tmp/guix-build-zig-0.14.0.drv-0/source/lib
/tmp/guix-build-zig-0.14.0.drv-0/source /tmp/zig-cache /tmp/zig-cache
--seed 0x8ea5a1a -Zb5c4d8b9dc38645c --prefix
/tmp/guix-build-zig-0.14.0.drv-0/source/stage3 -Dversion-string=0.14.0
-Dtarget=aarch64-linux-gnu -Dcpu=baseline -Denable-llvm
-Dconfig_h=/tmp/guix-build-zig-0.14.0.drv-0/source/config.h -Dno-langref
-Doptimize=ReleaseFast

make[2]: *** [CMakeFiles/stage3.dir/build.make:76: stage3/bin/zig] Error 1

make[2]: Leaving directory '/tmp/guix-build-zig-0.14.0.drv-0/source'

make[1]: *** [CMakeFiles/Makefile2:199: CMakeFiles/stage3.dir/all] Error 2

make[1]: Leaving directory '/tmp/guix-build-zig-0.14.0.drv-0/source'

make: *** [Makefile:139: all] Error 2

error: in phase 'build': uncaught exception:

%exception #<&invoke-error program: "make" arguments: ("-j" "4")
exit-status: 2 term-signal: #f stop-signal: #f>

phase `build' failed after 1007.4 seconds

command "make" "-j" "4" failed with status 2

build process 6 exited with status 256


The critical output is this:

error: memory usage peaked at 8708960256 bytes, exceeding the declared
upper bound of 7800000000



I've got the full log if you want it, but this should be enough.


tir. 1. apr. 2025 kl. 17:25 skrev Hilton Chain <hako@HIDDEN>:

> Hi Tommy,
>
> On Tue, 01 Apr 2025 16:33:36 +0800,
> Tommy Langhelle wrote:
> >
> > Upstream sets this for CI purposes, but it fails my ARM builds. The
> > limit itself doesn't make too much sense as long as zig builds and the
> > build host is big enough, so simply allowing unlimited rss should be
> > fine.
>
> Can you share build log for your failed build?
>
> > *
> gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch:
> New file.
> > * gnu/packages/zig.scm (zig-0.14)[source]: Add patch.
> > * gnu/local.mk (dist_patch_DATA): Register it.
> > ---
> > [...]
> > diff --git
> a/gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch
> b/gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch
> > new file mode 100644
> > index 0000000000..d944827353
> > --- /dev/null
> > +++
> b/gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch
> > @@ -0,0 +1,31 @@
> > +From 408722e084edf0a86066344e29bdfced70679129 Mon Sep 17 00:00:00 2001
> > +From: Tommy Langhelle <tomlanghe@HIDDEN>
> > +Date: Mon, 31 Mar 2025 11:47:12 +0200
> > +Subject: [PATCH] Set max_rss to unlimited for building zig
> > +
> > +https://github.com/ziglang/zig/issues/18263
> > +
> > +Upstream sets this for CI purposes, but it fails my ARM builds. The
> > +limit itself doesn't make too much sense as long as zig builds and the
> > +build host is big enough, so simply allowing unlimited rss should be
> > +fine.
> > +---
> > + build.zig | 2 +-
> > + 1 file changed, 1 insertion(+), 1 deletion(-)
> > +
> > +diff --git a/build.zig b/build.zig
> > +index 375cb6df09..16862fc5f9 100644
> > +--- a/build.zig
> > ++++ b/build.zig
> > +@@ -703,7 +703,7 @@ fn addCompilerStep(b: *std.Build, options:
> AddCompilerStepOptions) *std.Build.St
> > +
> > +     const exe = b.addExecutable(.{
> > +         .name = "zig",
> > +-        .max_rss = 7_800_000_000,
> > ++        .max_rss = 0,
> > +         .root_module = compiler_mod,
> > +     });
> > +     exe.stack_size = stack_size;
> > +--
> > +2.41.0
>
> For this change a snippet should be sufficient.  Can you turn this patch
> into a
> snippet and send an updated revision?
>
> Thanks
>

--0000000000006e0d8d0631f25792
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">Sure! Here is the relevant section of the=
 log:<br>





<p class=3D"gmail-p1" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;;min-he=
ight:15px"><br></p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">[ 73%=
] Running zig1.wasm to produce /tmp/guix-build-zig-0.14.0.drv-0/source/zig2=
.c</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">[ 78%=
] Running zig1.wasm to produce /tmp/guix-build-zig-0.14.0.drv-0/source/comp=
iler_rt.c</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">/tmp/=
guix-build-zig-0.14.0.drv-0/source/zig1 /tmp/guix-build-zig-0.14.0.drv-0/so=
urce/lib build-exe -ofmt=3Dc -lc -OReleaseSmall --name zig2 -femit-bin=3D&q=
uot;/tmp/guix-build-zig-0.14.0.drv-0/source/zig2.c&quot; -target aarch64-li=
nux-gnu --dep build_options --dep aro -Mroot=3Dsrc/main.zig -Mbuild_options=
=3D/tmp/guix-build-zig-0.14.0.drv-0/source/config.zig -Maro=3Dlib/compiler/=
aro/aro.zig</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">/tmp/=
guix-build-zig-0.14.0.drv-0/source/zig1 /tmp/guix-build-zig-0.14.0.drv-0/so=
urce/lib build-obj -ofmt=3Dc -OReleaseSmall --name compiler_rt -femit-bin=
=3D&quot;/tmp/guix-build-zig-0.14.0.drv-0/source/compiler_rt.c&quot; -targe=
t aarch64-linux-gnu -Mroot=3Dlib/compiler_rt.zig</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">cd /t=
mp/guix-build-zig-0.14.0.drv-0/source &amp;&amp; /gnu/store/1mjsh0bmxpr1ivv=
wagyjv0plk066b211-cmake-minimal-3.24.2/bin/cmake -E cmake_depends &quot;Uni=
x Makefiles&quot; /tmp/guix-build-zig-0.14.0.drv-0/source /tmp/guix-build-z=
ig-0.14.0.drv-0/source /tmp/guix-build-zig-0.14.0.drv-0/source /tmp/guix-bu=
ild-zig-0.14.0.drv-0/source /tmp/guix-build-zig-0.14.0.drv-0/source/CMakeFi=
les/zig2.dir/DependInfo.cmake --color=3D</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">make[=
2]: Leaving directory &#39;/tmp/guix-build-zig-0.14.0.drv-0/source&#39;</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">make<=
span class=3D"gmail-Apple-converted-space">=C2=A0 </span>-f CMakeFiles/zig2=
.dir/build.make CMakeFiles/zig2.dir/build</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">make[=
2]: Entering directory &#39;/tmp/guix-build-zig-0.14.0.drv-0/source&#39;</p=
>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">[ 89%=
] Building C object CMakeFiles/zig2.dir/compiler_rt.c.o</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">[ 89%=
] Building C object CMakeFiles/zig2.dir/zig2.c.o</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">/gnu/=
store/zcvhj876402zaz3cd2j6s2k4y4fnzdf7-gcc-11.4.0/bin/gcc -D_GNU_SOURCE -D_=
_STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/g=
uix-build-zig-0.14.0.drv-0/source/stage1 -O2 -g -DNDEBUG -std=3Dc99 -O0 -fn=
o-stack-protector -MD -MT CMakeFiles/zig2.dir/zig2.c.o -MF CMakeFiles/zig2.=
dir/zig2.c.o.d -o CMakeFiles/zig2.dir/zig2.c.o -c /tmp/guix-build-zig-0.14.=
0.drv-0/source/zig2.c</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">/gnu/=
store/zcvhj876402zaz3cd2j6s2k4y4fnzdf7-gcc-11.4.0/bin/gcc -D_GNU_SOURCE -D_=
_STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/g=
uix-build-zig-0.14.0.drv-0/source/stage1 -O2 -g -DNDEBUG -std=3Dc99 -O0 -fn=
o-stack-protector -MD -MT CMakeFiles/zig2.dir/compiler_rt.c.o -MF CMakeFile=
s/zig2.dir/compiler_rt.c.o.d -o CMakeFiles/zig2.dir/compiler_rt.c.o -c /tmp=
/guix-build-zig-0.14.0.drv-0/source/compiler_rt.c</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">[ 94%=
] Linking CXX executable zig2</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">/gnu/=
store/1mjsh0bmxpr1ivvwagyjv0plk066b211-cmake-minimal-3.24.2/bin/cmake -E cm=
ake_link_script CMakeFiles/zig2.dir/link.txt --verbose=3D1</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">/gnu/=
store/zcvhj876402zaz3cd2j6s2k4y4fnzdf7-gcc-11.4.0/bin/c++ -O2 -g -DNDEBUG -=
Wl,-z,stack-size=3D0x10000000 CMakeFiles/zig2.dir/zig2.c.o CMakeFiles/zig2.=
dir/compiler_rt.c.o -o zig2<span class=3D"gmail-Apple-converted-space">=C2=
=A0 </span>zigcpp/libzigcpp.a /gnu/store/700f3b2d6m77xsxpp8dqjv2f4fif723z-c=
lang-19.1.7/lib/libclang-cpp.so.19.1 /gnu/store/0ca4w71pz4dmfikzwb5j3qly3gb=
ikjld-lld-19.1.7/lib/liblldMinGW.a /gnu/store/0ca4w71pz4dmfikzwb5j3qly3gbik=
jld-lld-19.1.7/lib/liblldELF.a /gnu/store/0ca4w71pz4dmfikzwb5j3qly3gbikjld-=
lld-19.1.7/lib/liblldCOFF.a /gnu/store/0ca4w71pz4dmfikzwb5j3qly3gbikjld-lld=
-19.1.7/lib/liblldWasm.a /gnu/store/0ca4w71pz4dmfikzwb5j3qly3gbikjld-lld-19=
.1.7/lib/liblldMachO.a /gnu/store/0ca4w71pz4dmfikzwb5j3qly3gbikjld-lld-19.1=
.7/lib/liblldCommon.a /gnu/store/rq7nyisff6cz7ysbrkcyfqnglzyzk1d8-llvm-19.1=
.7/lib/libLLVM-19.so -lrt -ldl -lm -lz</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">make[=
2]: Leaving directory &#39;/tmp/guix-build-zig-0.14.0.drv-0/source&#39;</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">[ 94%=
] Built target zig2</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">make<=
span class=3D"gmail-Apple-converted-space">=C2=A0 </span>-f CMakeFiles/stag=
e3.dir/build.make CMakeFiles/stage3.dir/depend</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">make[=
2]: Entering directory &#39;/tmp/guix-build-zig-0.14.0.drv-0/source&#39;</p=
>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">cd /t=
mp/guix-build-zig-0.14.0.drv-0/source &amp;&amp; /gnu/store/1mjsh0bmxpr1ivv=
wagyjv0plk066b211-cmake-minimal-3.24.2/bin/cmake -E cmake_depends &quot;Uni=
x Makefiles&quot; /tmp/guix-build-zig-0.14.0.drv-0/source /tmp/guix-build-z=
ig-0.14.0.drv-0/source /tmp/guix-build-zig-0.14.0.drv-0/source /tmp/guix-bu=
ild-zig-0.14.0.drv-0/source /tmp/guix-build-zig-0.14.0.drv-0/source/CMakeFi=
les/stage3.dir/DependInfo.cmake --color=3D</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">make[=
2]: Leaving directory &#39;/tmp/guix-build-zig-0.14.0.drv-0/source&#39;</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">make<=
span class=3D"gmail-Apple-converted-space">=C2=A0 </span>-f CMakeFiles/stag=
e3.dir/build.make CMakeFiles/stage3.dir/build</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">make[=
2]: Entering directory &#39;/tmp/guix-build-zig-0.14.0.drv-0/source&#39;</p=
>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">[100%=
] Building stage3</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">/tmp/=
guix-build-zig-0.14.0.drv-0/source/zig2 build --prefix /tmp/guix-build-zig-=
0.14.0.drv-0/source/stage3 --zig-lib-dir /tmp/guix-build-zig-0.14.0.drv-0/s=
ource/lib -Dversion-string=3D0.14.0 -Dtarget=3Daarch64-linux-gnu -Dcpu=3Dba=
seline -Denable-llvm -Dconfig_h=3D/tmp/guix-build-zig-0.14.0.drv-0/source/c=
onfig.h -Dno-langref -Doptimize=3DReleaseFast</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">insta=
ll</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">+- in=
stall zig</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;"><span=
 class=3D"gmail-Apple-converted-space">=C2=A0=C2=A0 </span>+- zig build-exe=
 zig ReleaseFast aarch64-linux-gnu failure</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">error=
: memory usage peaked at 8708960256 bytes, exceeding the declared upper bou=
nd of 7800000000</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">Build=
 Summary: 2/5 steps succeeded; 1 failed</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">insta=
ll transitive failure</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">+- in=
stall zig transitive failure</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;"><span=
 class=3D"gmail-Apple-converted-space">=C2=A0=C2=A0 </span>+- zig build-exe=
 zig ReleaseFast aarch64-linux-gnu failure</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">error=
: the following build command failed with exit code 1:</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">/tmp/=
zig-cache/o/ba585b8503da6c37d6ae47a94f10099d/build /tmp/guix-build-zig-0.14=
.0.drv-0/source/zig2 /tmp/guix-build-zig-0.14.0.drv-0/source/lib /tmp/guix-=
build-zig-0.14.0.drv-0/source /tmp/zig-cache /tmp/zig-cache --seed 0x8ea5a1=
a -Zb5c4d8b9dc38645c --prefix /tmp/guix-build-zig-0.14.0.drv-0/source/stage=
3 -Dversion-string=3D0.14.0 -Dtarget=3Daarch64-linux-gnu -Dcpu=3Dbaseline -=
Denable-llvm -Dconfig_h=3D/tmp/guix-build-zig-0.14.0.drv-0/source/config.h =
-Dno-langref -Doptimize=3DReleaseFast</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">make[=
2]: *** [CMakeFiles/stage3.dir/build.make:76: stage3/bin/zig] Error 1</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">make[=
2]: Leaving directory &#39;/tmp/guix-build-zig-0.14.0.drv-0/source&#39;</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">make[=
1]: *** [CMakeFiles/Makefile2:199: CMakeFiles/stage3.dir/all] Error 2</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">make[=
1]: Leaving directory &#39;/tmp/guix-build-zig-0.14.0.drv-0/source&#39;</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">make:=
 *** [Makefile:139: all] Error 2</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">error=
: in phase &#39;build&#39;: uncaught exception:</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">%exce=
ption #&lt;&amp;invoke-error program: &quot;make&quot; arguments: (&quot;-j=
&quot; &quot;4&quot;) exit-status: 2 term-signal: #f stop-signal: #f&gt;</p=
>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">phase=
 `build&#39; failed after 1007.4 seconds</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">comma=
nd &quot;make&quot; &quot;-j&quot; &quot;4&quot; failed with status 2</p>
<p class=3D"gmail-p2" style=3D"margin:0px;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:n=
one;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font=
-size:13px;line-height:normal;font-family:&quot;Helvetica Neue&quot;">build=
 process 6 exited with status 256</p><p class=3D"gmail-p2" style=3D"margin:=
0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant=
-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-set=
tings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-fam=
ily:&quot;Helvetica Neue&quot;"><br></p><p class=3D"gmail-p2" style=3D"marg=
in:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-vari=
ant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-=
settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-=
family:&quot;Helvetica Neue&quot;">The critical output is this:<br></p><p c=
lass=3D"gmail-p2" style=3D"font-variant-numeric:normal;font-variant-east-as=
ian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kernin=
g:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line=
-height:normal;font-family:&quot;Helvetica Neue&quot;;margin:0px">error: me=
mory usage peaked at 8708960256 bytes, exceeding the declared upper bound o=
f 7800000000</p><p class=3D"gmail-p2" style=3D"margin:0px;font-variant-nume=
ric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;fo=
nt-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-str=
etch:normal;font-size:13px;line-height:normal;font-family:&quot;Helvetica N=
eue&quot;"><br><br>I&#39;ve got the full log if you want it, but this shoul=
d be enough.</p><p class=3D"gmail-p2" style=3D"margin:0px;font-variant-nume=
ric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;fo=
nt-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-str=
etch:normal;font-size:13px;line-height:normal;font-family:&quot;Helvetica N=
eue&quot;"><br></p></div><div class=3D"gmail_quote gmail_quote_container"><=
div dir=3D"ltr" class=3D"gmail_attr">tir. 1. apr. 2025 kl. 17:25 skrev Hilt=
on Chain &lt;<a href=3D"mailto:hako@HIDDEN">hako@HIDDEN</=
a>&gt;:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px =
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Tommy=
,<br>
<br>
On Tue, 01 Apr 2025 16:33:36 +0800,<br>
Tommy Langhelle wrote:<br>
&gt;<br>
&gt; Upstream sets this for CI purposes, but it fails my ARM builds. The<br=
>
&gt; limit itself doesn&#39;t make too much sense as long as zig builds and=
 the<br>
&gt; build host is big enough, so simply allowing unlimited rss should be<b=
r>
&gt; fine.<br>
<br>
Can you share build log for your failed build?<br>
<br>
&gt; * gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-=
zig.patch: New file.<br>
&gt; * gnu/packages/zig.scm (zig-0.14)[source]: Add patch.<br>
&gt; * gnu/<a href=3D"http://local.mk" rel=3D"noreferrer" target=3D"_blank"=
>local.mk</a> (dist_patch_DATA): Register it.<br>
&gt; ---<br>
&gt; [...]<br>
&gt; diff --git a/gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-fo=
r-building-zig.patch b/gnu/packages/patches/zig-0.14-set-max_rss-to-unlimit=
ed-for-building-zig.patch<br>
&gt; new file mode 100644<br>
&gt; index 0000000000..d944827353<br>
&gt; --- /dev/null<br>
&gt; +++ b/gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-build=
ing-zig.patch<br>
&gt; @@ -0,0 +1,31 @@<br>
&gt; +From 408722e084edf0a86066344e29bdfced70679129 Mon Sep 17 00:00:00 200=
1<br>
&gt; +From: Tommy Langhelle &lt;<a href=3D"mailto:tomlanghe@HIDDEN" targ=
et=3D"_blank">tomlanghe@HIDDEN</a>&gt;<br>
&gt; +Date: Mon, 31 Mar 2025 11:47:12 +0200<br>
&gt; +Subject: [PATCH] Set max_rss to unlimited for building zig<br>
&gt; +<br>
&gt; +<a href=3D"https://github.com/ziglang/zig/issues/18263" rel=3D"norefe=
rrer" target=3D"_blank">https://github.com/ziglang/zig/issues/18263</a><br>
&gt; +<br>
&gt; +Upstream sets this for CI purposes, but it fails my ARM builds. The<b=
r>
&gt; +limit itself doesn&#39;t make too much sense as long as zig builds an=
d the<br>
&gt; +build host is big enough, so simply allowing unlimited rss should be<=
br>
&gt; +fine.<br>
&gt; +---<br>
&gt; + build.zig | 2 +-<br>
&gt; + 1 file changed, 1 insertion(+), 1 deletion(-)<br>
&gt; +<br>
&gt; +diff --git a/build.zig b/build.zig<br>
&gt; +index 375cb6df09..16862fc5f9 100644<br>
&gt; +--- a/build.zig<br>
&gt; ++++ b/build.zig<br>
&gt; +@@ -703,7 +703,7 @@ fn addCompilerStep(b: *std.Build, options: AddCom=
pilerStepOptions) *<a href=3D"http://std.Build.St" rel=3D"noreferrer" targe=
t=3D"_blank">std.Build.St</a><br>
&gt; +<br>
&gt; +=C2=A0 =C2=A0 =C2=A0const exe =3D b.addExecutable(.{<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0.name =3D &quot;zig&quot;,<br>
&gt; +-=C2=A0 =C2=A0 =C2=A0 =C2=A0 .max_rss =3D 7_800_000_000,<br>
&gt; ++=C2=A0 =C2=A0 =C2=A0 =C2=A0 .max_rss =3D 0,<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0.root_module =3D compiler_mod,<br>
&gt; +=C2=A0 =C2=A0 =C2=A0});<br>
&gt; +=C2=A0 =C2=A0 =C2=A0exe.stack_size =3D stack_size;<br>
&gt; +--<br>
&gt; +2.41.0<br>
<br>
For this change a snippet should be sufficient.=C2=A0 Can you turn this pat=
ch into a<br>
snippet and send an updated revision?<br>
<br>
Thanks<br>
</blockquote></div></div>

--0000000000006e0d8d0631f25792--




Information forwarded to guix-patches@HIDDEN:
bug#77431; Package guix-patches. Full text available.

Message received at 77431 <at> debbugs.gnu.org:


Received: (at 77431) by debbugs.gnu.org; 1 Apr 2025 15:26:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 01 11:26:06 2025
Received: from localhost ([127.0.0.1]:50203 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tzdV3-00072H-Js
	for submit <at> debbugs.gnu.org; Tue, 01 Apr 2025 11:26:06 -0400
Received: from mx.boiledscript.com ([2a01:4f8:10b:392::42]:54902)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <hako@HIDDEN>)
 id 1tzdUw-00071R-Ll
 for 77431 <at> debbugs.gnu.org; Tue, 01 Apr 2025 11:25:59 -0400
Date: Tue, 01 Apr 2025 23:25:22 +0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space;
 s=mail; t=1743521152;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=QGiqc2AG8Yhtk6/KZMwylahtuDwLZPJFf6CQGzp2EC4=;
 b=dbVuujbvQp3826UL6lcPJxQIAQvMkGchHcejrlGuxMUNHrHyIvAAzFE30Oia2WfgArxVb6
 Ir9mLK6hYM8iNrdtMRjtRom1bKIH8jyerEARQ9l9GviPAul2OmRK59oGEARUU3WYRyl4hY
 ngmSSxXIs6OJoZPW0QT0E8qbPzoctM91MojlnkGpnPvus+eGBIDHwMSMeKnKVUDCQHdWQg
 hIzUeXwxsUYlSor5jYlG8zi6tuTdf39TU+MBl9EYwWLCNYkrairCvSpLNWEyTKNZm8Aojo
 Kua0CHpAqryzLlL53k64irRRWz4LH0kHbs1+hV/t3dSMBHvh9ZPbMzJPjEAltA==
Message-ID: <87o6xfvr8d.wl-hako@HIDDEN>
From: Hilton Chain <hako@HIDDEN>
To: Tommy Langhelle <tomlanghe@HIDDEN>
Subject: Re: [bug#77431] [PATCH] gnu: zig: Set rss_max to unlimited
In-Reply-To: <20250401083336.27759-1-tommy.langhelle@HIDDEN>
References: <20250401083336.27759-1-tommy.langhelle@HIDDEN>
MIME-Version: 1.0
X-MS-Reactions: disallow
Content-Type: text/plain; charset=US-ASCII
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77431
Cc: 77431 <at> debbugs.gnu.org, Tommy Langhelle <tommy.langhelle@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Tommy,

On Tue, 01 Apr 2025 16:33:36 +0800,
Tommy Langhelle wrote:
>
> Upstream sets this for CI purposes, but it fails my ARM builds. The
> limit itself doesn't make too much sense as long as zig builds and the
> build host is big enough, so simply allowing unlimited rss should be
> fine.

Can you share build log for your failed build?

> * gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch: New file.
> * gnu/packages/zig.scm (zig-0.14)[source]: Add patch.
> * gnu/local.mk (dist_patch_DATA): Register it.
> ---
> [...]
> diff --git a/gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch b/gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch
> new file mode 100644
> index 0000000000..d944827353
> --- /dev/null
> +++ b/gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch
> @@ -0,0 +1,31 @@
> +From 408722e084edf0a86066344e29bdfced70679129 Mon Sep 17 00:00:00 2001
> +From: Tommy Langhelle <tomlanghe@HIDDEN>
> +Date: Mon, 31 Mar 2025 11:47:12 +0200
> +Subject: [PATCH] Set max_rss to unlimited for building zig
> +
> +https://github.com/ziglang/zig/issues/18263
> +
> +Upstream sets this for CI purposes, but it fails my ARM builds. The
> +limit itself doesn't make too much sense as long as zig builds and the
> +build host is big enough, so simply allowing unlimited rss should be
> +fine.
> +---
> + build.zig | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/build.zig b/build.zig
> +index 375cb6df09..16862fc5f9 100644
> +--- a/build.zig
> ++++ b/build.zig
> +@@ -703,7 +703,7 @@ fn addCompilerStep(b: *std.Build, options: AddCompilerStepOptions) *std.Build.St
> +
> +     const exe = b.addExecutable(.{
> +         .name = "zig",
> +-        .max_rss = 7_800_000_000,
> ++        .max_rss = 0,
> +         .root_module = compiler_mod,
> +     });
> +     exe.stack_size = stack_size;
> +--
> +2.41.0

For this change a snippet should be sufficient.  Can you turn this patch into a
snippet and send an updated revision?

Thanks




Information forwarded to guix-patches@HIDDEN:
bug#77431; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Apr 2025 13:59:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 01 09:59:44 2025
Received: from localhost ([127.0.0.1]:47276 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tzc9K-0000us-8p
	for submit <at> debbugs.gnu.org; Tue, 01 Apr 2025 09:59:43 -0400
Received: from lists.gnu.org ([2001:470:142::17]:40768)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <tomlanghe@HIDDEN>)
 id 1tzX4R-0004sh-1I
 for submit <at> debbugs.gnu.org; Tue, 01 Apr 2025 04:34:11 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <tomlanghe@HIDDEN>)
 id 1tzX4I-0003oe-Nd
 for guix-patches@HIDDEN; Tue, 01 Apr 2025 04:33:58 -0400
Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <tomlanghe@HIDDEN>)
 id 1tzX4C-00017J-Bx
 for guix-patches@HIDDEN; Tue, 01 Apr 2025 04:33:58 -0400
Received: by mail-lf1-x12d.google.com with SMTP id
 2adb3069b0e04-54b10594812so3687786e87.1
 for <guix-patches@HIDDEN>; Tue, 01 Apr 2025 01:33:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1743496429; x=1744101229; darn=gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=2uDdCJNBf/Ph+PIaWWkhUtEoQahpvwcQ0TRPEq7Mutk=;
 b=eixf03Q7v8dJfmx9R0tAJs7GFx1BSlB6yTABC9lZgRDw4QFVlHk1z3CN9fsNFMZTi1
 xdb9oTo6inYvojXx8oy5p4rSb+h/3GqxmgrdtkJIC0caw3bJHoDYJohQCuOn8Dmf9zLg
 YY+kZyNDDO9C5kt3azu9r03T+WpIZ33WkoCVMX4XcFwOLMj6FV1+Ftl6rHuQc5R3DoHa
 JcmMC1CQSTYkU6Th6XXnJW8sQOr+k1hM8xuhOg5xZsuxX6CVODGHodq4deJZGpf4n9Ay
 Bckw0e8KrHFTc6OcbyPbONY8Z+yx+2s0DPd2gxOmxmP011NTAz1vxTxUqUpz5+6dieOS
 5OyA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1743496429; x=1744101229;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=2uDdCJNBf/Ph+PIaWWkhUtEoQahpvwcQ0TRPEq7Mutk=;
 b=TcMOBSRBD9My0UcrIUNPbtiJY70cUvq1kl98fjjc69hrBASUwGWq5Ggsu7E+dJHTic
 l5PGjdbv/pl1ixGUL8MQ+AMM+EddrFCAPfs+GcT8eD6m316294yTiffcXsUUaiXQl2uT
 BVK6gIAW0l3AvPUmXoACmmuqKF+d2kLFKffVzC2XyD+uBedTUfA02iN7WUInN5q2Nu4L
 oTLCKbefi5+e1nET/U4zI36PYgLCzxcHf2RL9Bgd+bWV2EaJdRb8rgFDJczwT4vPizak
 ah6+y9rnoiwLr+RoV146XaMJCVvkZNiAn2VCUJirus2Rnc3MK9PpaHp88O6cp7zPbUc5
 siSg==
X-Gm-Message-State: AOJu0Yw+3n1sPBxU1QMV0A5jVnOySShM3M+N+wTl3L47vlabaj850Ga5
 VbA2Qv6Rjh7oyoB6Q/mbedUKyfRoheDujeuVCKfcBXTnJUHt066NS2q/dIb+
X-Gm-Gg: ASbGnctrLqE3g1j33EqZi7jmWsdQ8FzJ6Jg0uFoIVhnZlqYyaJLDoeZp07PQNzUstQR
 U+pnDwmO/a6pLteSTY2w4Amn42G06PSxagiCI6bs/6RtN2khdR6HhMf6dNW7PVXe8W7y1BG471A
 ex2wD4xXCIE4lpIdl0HJ0hzsihFaPnzc7ii/uys5qdmGqz+BAEUbH793BEFCWVCd6M40z5XEDpb
 sGg72Ui+nUFaGPYu6FidNr9UUwVOgZUFTX2a1dV0xaS02aEtWTTG1v/NHaZSOGWsIK1gGR6NjYG
 IIuiH1j3e6vZ+fEY5vvZ0GpU68gbj19+3NWUkR/rnAWBdpGT/1Lee/4s7vRSXPDsYQCfpnB5C/s
 =
X-Google-Smtp-Source: AGHT+IF7jSS6uYm6tA5iJtlVLxGFdq+VSG7jKWTFbEMDP8l9UP5SCl6fChE4T5VxcczlvCIR8n0Zcw==
X-Received: by 2002:a05:6512:398c:b0:549:5802:b32d with SMTP id
 2adb3069b0e04-54b10db9d00mr3984878e87.3.1743496428777; 
 Tue, 01 Apr 2025 01:33:48 -0700 (PDT)
Received: from BGOMAC-tolan756.tv2asa.no ([77.75.212.71])
 by smtp.gmail.com with ESMTPSA id
 2adb3069b0e04-54b09591a01sm1287554e87.164.2025.04.01.01.33.47
 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);
 Tue, 01 Apr 2025 01:33:48 -0700 (PDT)
From: Tommy Langhelle <tomlanghe@HIDDEN>
X-Google-Original-From: Tommy Langhelle <tommy.langhelle@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: zig: Set rss_max to unlimited
Date: Tue,  1 Apr 2025 10:33:36 +0200
Message-ID: <20250401083336.27759-1-tommy.langhelle@HIDDEN>
X-Mailer: git-send-email 2.41.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::12d;
 envelope-from=tomlanghe@HIDDEN; helo=mail-lf1-x12d.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 01 Apr 2025 09:59:28 -0400
Cc: Tommy Langhelle <tommy.langhelle@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Upstream sets this for CI purposes, but it fails my ARM builds. The
limit itself doesn't make too much sense as long as zig builds and the
build host is big enough, so simply allowing unlimited rss should be
fine.

* gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch: New file.
* gnu/packages/zig.scm (zig-0.14)[source]: Add patch.
* gnu/local.mk (dist_patch_DATA): Register it.
---
 gnu/local.mk                                  |  1 +
 ...ax_rss-to-unlimited-for-building-zig.patch | 31 +++++++++++++++++++
 gnu/packages/zig.scm                          |  3 +-
 3 files changed, 34 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index f03fcb14fc..63e87a232e 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2473,6 +2473,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/zig-0.14-fix-runpath.patch		\
   %D%/packages/patches/zig-0.14-use-baseline-cpu-by-default.patch	\
   %D%/packages/patches/zig-0.14-use-system-paths.patch		\
+  %D%/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch		\
   %D%/packages/patches/zsh-egrep-failing-test.patch		\
   %D%/packages/patches/zuo-bin-sh.patch
 
diff --git a/gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch b/gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch
new file mode 100644
index 0000000000..d944827353
--- /dev/null
+++ b/gnu/packages/patches/zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch
@@ -0,0 +1,31 @@
+From 408722e084edf0a86066344e29bdfced70679129 Mon Sep 17 00:00:00 2001
+From: Tommy Langhelle <tomlanghe@HIDDEN>
+Date: Mon, 31 Mar 2025 11:47:12 +0200
+Subject: [PATCH] Set max_rss to unlimited for building zig
+
+https://github.com/ziglang/zig/issues/18263
+
+Upstream sets this for CI purposes, but it fails my ARM builds. The
+limit itself doesn't make too much sense as long as zig builds and the
+build host is big enough, so simply allowing unlimited rss should be
+fine.
+---
+ build.zig | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/build.zig b/build.zig
+index 375cb6df09..16862fc5f9 100644
+--- a/build.zig
++++ b/build.zig
+@@ -703,7 +703,7 @@ fn addCompilerStep(b: *std.Build, options: AddCompilerStepOptions) *std.Build.St
+ 
+     const exe = b.addExecutable(.{
+         .name = "zig",
+-        .max_rss = 7_800_000_000,
++        .max_rss = 0,
+         .root_module = compiler_mod,
+     });
+     exe.stack_size = stack_size;
+-- 
+2.41.0
+
diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index 733251242e..eb7bda8c62 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -1871,7 +1871,8 @@ (define-public zig-0.14
         (search-patches
          "zig-0.14-use-baseline-cpu-by-default.patch"
          "zig-0.14-use-system-paths.patch"
-         "zig-0.14-fix-runpath.patch"))))
+         "zig-0.14-fix-runpath.patch"
+         "zig-0.14-set-max_rss-to-unlimited-for-building-zig.patch"))))
     (inputs
      (modify-inputs (package-inputs zig-0.13)
        (replace "clang" clang-19)

base-commit: e7aeec67feaa5cf888f0aae14400fc015390aa8e
-- 
2.41.0





Acknowledgement sent to Tommy Langhelle <tomlanghe@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#77431; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 4 Apr 2025 12:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.