From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id UIeAFi8/7GQ4TwAA9RJhRA:P1 (envelope-from ) for ; Mon, 28 Aug 2023 08:31:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UIeAFi8/7GQ4TwAA9RJhRA (envelope-from ) for ; Mon, 28 Aug 2023 08:31:11 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3CB3F6F7B5 for ; Mon, 28 Aug 2023 08:31:11 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=VzPfi98M; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693204271; a=rsa-sha256; cv=none; b=h+5bNn4/6KKm4/4CAH43uQf7W28rROA6TjeNZUcXx4CtbaTBuFaNo3Ea+ZxUfQKupSTO9m NW3hfzL1uV5ylvFf3/nCZpnOc+njACVVpUc2fFgopOvIuzZP4Yig8ATL2Iu+njMz554V2a OozzYkIWDu6sW2ptxb2IxZXUh/+SX1BbROW7i2yLSfTeOkwjx8yzKIQYAn+ghLnR9Ry1rO MaXDXYtwnQrHsEqDldXGSR4DJawUjMosevNg93/Isc+0NaWbkghh+RvVpIPITXlZwBwCLJ Lzc7Hk3SANOwk0eCmBEKGIzuhyipvHazwzro90AseLpOOuQzVD9+Mm6gv9BiIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=VzPfi98M; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693204271; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=apk+3UhcU/Mk4x1Ql/t0vUoRMNz8bR4NeChu8HcwJ/M=; b=dCWPjRtBVLdCRru8E2J6TflmjT1cX1IKkq8g6tSeCSwc0eP4fxFKZ3+AMuXORl7kdePxLB oWid3k9BXEoiMR9mHVgtSA7T8uMd+kE/3dRfP//9Ws4ophe0S7mMl/KzIfZwDG3yaN9+SR igDEEunOZ88rKEOpT5thzWcu6JRBITkXrqEbW6Vz+DXnwex/X7qLnbQpbsX8Nd5o4SuPK0 eB8zSmserwFFzRRISzovvtvTdENekcRt/32sis8qKyFSg3FwMyEDVpJ+lsGy+MZ6tHgolO UNo6PxMYrsmHLaolhI9QA6PyBsGFL/FQraZb/sjXfU815ChEARSb7FfemiDftA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaVm6-0001C7-EE; Mon, 28 Aug 2023 02:30:58 -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 ) id 1qaVm4-00015p-M0 for guix-patches@gnu.org; Mon, 28 Aug 2023 02:30:56 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qaVm4-0001As-Av for guix-patches@gnu.org; Mon, 28 Aug 2023 02:30:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qaVmA-0008H8-9b for guix-patches@gnu.org; Mon, 28 Aug 2023 02:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65553] [PATCH 0/6] gnu: Add arrayfire. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 28 Aug 2023 06:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65553 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Saku Laesvuori Cc: 65553@debbugs.gnu.org Received: via spool by 65553-submit@debbugs.gnu.org id=B65553.169320423631778 (code B ref 65553); Mon, 28 Aug 2023 06:31:02 +0000 Received: (at 65553) by debbugs.gnu.org; 28 Aug 2023 06:30:36 +0000 Received: from localhost ([127.0.0.1]:46757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaVlk-0008GU-9V for submit@debbugs.gnu.org; Mon, 28 Aug 2023 02:30:36 -0400 Received: from layka.disroot.org ([178.21.23.139]:45088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaVli-0008GM-6u for 65553@debbugs.gnu.org; Mon, 28 Aug 2023 02:30:34 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 67E9C412F4; Mon, 28 Aug 2023 08:30:27 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D7Iue_Di01ST; Mon, 28 Aug 2023 08:30:26 +0200 (CEST) Message-ID: <8b4252ad-63b5-df5b-623d-0c9df3a3b84e@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1693204226; bh=apk+3UhcU/Mk4x1Ql/t0vUoRMNz8bR4NeChu8HcwJ/M=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=VzPfi98MtW/6Ng0yCERqHqbwd6s7UUVVi3m0UyIJvi0ZxjefaywEgDdbYvHKLFIc/ Ncr8H9ROLPgrcv8zsg8X7gBjumOJcMgzUcOm7ltY5ptETky1wFNWU7Jmct2nOftScM 74dCrcrBLi89pcWq+xDV4wY+uCMHzwbo15VEPg+czfATZ292QkjbBHHNQjtYU0vdj4 Dtstd8AtPcZzUoUOvfixhMY5t82lBAFSpj6Xuvmv+Ia4Uyx+k+/0CXobRlvmfvE+7k QQiH2HUMgIQpEVS0skzKe0dmHaJYuLsL2ytRC9/VeLFhejVeUio1EFQ2L6kx/DWGYh uRpgMYB2HW/yA== Date: Mon, 28 Aug 2023 14:30:21 +0800 MIME-Version: 1.0 References: <20230826191856.lixehyli766k6oqm@X-kone> Content-Language: en-US In-Reply-To: <20230826191856.lixehyli766k6oqm@X-kone> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches From: Adam Faiz via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Spam-Score: -6.72 X-Migadu-Queue-Id: 3CB3F6F7B5 X-Migadu-Spam-Score: -6.72 X-TUID: VDLv014QkFSL On 8/27/23 03:18, Saku Laesvuori wrote: > I have normally solve this by just adding a huge swapfile, but if > someone knows how to actually reduce the ram usage by the linker that > would be interesting to hear. Thanks, using a swapfile worked for me. The --no-keep-memory option reduces RAM usage for the linker, it was actually the compiler that was using up all my RAM. To my understanding, the only effective way to reduce RAM usage of the compiler is to not have many running at the same time, i.e. to reduce the number of parallel jobs by the build system. The ggc-min-heapsize and ggc-min-expand GCC options could also be used instead, but I don't know if it's faster than just using swap. Now I got ArrayFire to build, I just need to ensure its tests pass.