From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id qCCsNfAa/mZjzgAAe85BDQ:P1 (envelope-from ) for ; Thu, 03 Oct 2024 04:17:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id qCCsNfAa/mZjzgAAe85BDQ (envelope-from ) for ; Thu, 03 Oct 2024 06:17:52 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=h8Tx7l3E; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=D8bXKWlF; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727929072; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=SCoP/Az5/Yaxq2VnPPZX1dgAQX+HbztkbF87+Ndfo1A=; b=IeTmkSs9KWPuR5xp+Dr0JNvcPZODFeaf4EgJrUhcLEK81BwC7uHNvDk/U3Apb2ZbDlhsSH OHS+JyQbY/+AHRSJvtsfoM0M3GqTdOguWhySoc1NUupJqT/VhMCaSnfc8Pkv+Zy7M4/PDB lfWp9GyNxWbHbZax81g3HAHa1+2PW4eh0Vi8sEVc402ATFBrkp8tvibRX6hRnkhl1Du2JS NxlGW9G9oPQ2zEyzG+i/eKx3Zc53VVB4fGaGMNO6P6kR21gDXuDVJfTFWk6pU69srR0RJo B7s5LdoerIO8w/6x0JBK0GCTmFHHSQxUtvBD78R6uSPOTX1cZn3hEYuXvOZWCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=h8Tx7l3E; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=D8bXKWlF; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727929072; a=rsa-sha256; cv=none; b=qozw/74RMWTkJFulLjfgHnYK/BR4zNoAjcztKDzb58dX8oB7jcbmLOfKN/WxPe51wDGqX9 PONRrtThTYC/7tLyXMHJyHb4gdI48ladPGeBOG0mu25MEws3tMzyGVqhnk3hpSqsRLUa8v j7PaiHRwc56JZM/Z2QdR2DnnR8qcXolDtjHGMQutwl+7nIYRV1StUD4rQZzomg/rGEyZpe +l4IkT0T7k3VsLA1EYBrWxN/nvWedFb5AP73fvVG8sN9jqTC1omja+WDFNKuzExFxYyasb AVUd0tLgKgL8ce0PNV/+3qQ4diuXIZyLw7LKTMsl/nlxmnFD9Ul9LIatKlymmA== 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 740C5437C4 for ; Thu, 03 Oct 2024 06:17:52 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swDHO-0002Ts-Sa; Thu, 03 Oct 2024 00:17:30 -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 1swDHM-0002Su-2g for guix-patches@gnu.org; Thu, 03 Oct 2024 00:17:28 -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 1swDHL-0004RG-Cz for guix-patches@gnu.org; Thu, 03 Oct 2024 00:17:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=SCoP/Az5/Yaxq2VnPPZX1dgAQX+HbztkbF87+Ndfo1A=; b=h8Tx7l3En/n5And3sy/5Xm4mKCH7+Trv3HWTJcKCiaV5J17uXZWIZwbjeXpnkb67SMFbFVpdK+p4uh+O+4nf5xk+hebk7xCyPhGk7SqcbcQxi4u2C0YbVd5ETKAuvR12BZDQIYy54mApDM3Cebbz/CY/LT1qcghCWh9HPiJU4ZYhOeDKcmJfoSn5eh6bT29nlM/CGM+iRnX/dQUQZJoLAsuFFQEgH7Lg1BBFacrBeOdrAfx6oE7YHsW9OtkUp1C/2BL6ucXPQqoHNxq0zkH3SjYpop6mNR44d/K4OQrkxxvWnGpkOD6T924ggSz5WrkznYGPRRn98Kox8uLpcxkShQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1swDHM-0007u5-I9; Thu, 03 Oct 2024 00:17:28 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72925] [PATCH v3] adding jpm package Resent-From: Omar Bassam Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org, "Suhail Singh" Resent-Date: Thu, 03 Oct 2024 04:17:28 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72925 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Suhail Singh Cc: Sharlatan Hellseher , 72925@debbugs.gnu.org, Munyoki Kilyungi , Katherine Cox-Buday , Guillaume Le Vaillant , jgart Received: via spool by 72925-submit@debbugs.gnu.org id=B72925.172792891428049 (code B ref 72925); Thu, 03 Oct 2024 04:17:28 +0000 Received: (at 72925) by debbugs.gnu.org; 3 Oct 2024 04:15:14 +0000 Received: from localhost ([127.0.0.1]:59612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swDF9-0007GP-Bq for submit@debbugs.gnu.org; Thu, 03 Oct 2024 00:15:13 -0400 Received: from mail-pj1-f52.google.com ([209.85.216.52]:53407) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sw7Hq-0003h3-SY for 72925@debbugs.gnu.org; Wed, 02 Oct 2024 17:53:35 -0400 Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-2e0af6e5da9so246399a91.2 for <72925@debbugs.gnu.org>; Wed, 02 Oct 2024 14:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727905948; x=1728510748; 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=SCoP/Az5/Yaxq2VnPPZX1dgAQX+HbztkbF87+Ndfo1A=; b=D8bXKWlF24BOFOiJbkaj9mDLZ+SFynIipdKIFYN9jFOLeDiYrPEEVAbviEmTwF2wB7 E7aqBrA3bWh9s8SWW9QqclJlZBNeWoZ50G4rEpditvtqkvFdT3J6LTyN4gDDvkow3IyN /82+FKo2NbuWITsGiBcdqj/MC5BX6EzGmRkS/8nAXlixxjrwdwVlOnLP6BoyeopUbjFo Bh2Ih5eA8XysxmDOFnPw/8pxMHjdOvNbQiv+d5eNvdq/nb9FC+S1LWwV8BE1W7ti7fhU PuSQq8RfAIKEK/ovH3UDdbDuCRPd86Bp/99qPGsiSK34F78TJd3x5vhkpMcJpHYxGsUW UC4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727905948; x=1728510748; 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=SCoP/Az5/Yaxq2VnPPZX1dgAQX+HbztkbF87+Ndfo1A=; b=JTWFzIPpgXeTd1O05wlDAz3OvNK+GCr5BndcQWoNyt1rvkZDjJYAwUY0dnZSV7CdAC x27Rz+6D0Xo2rENCY00qnNwOA0kZIZpyuUpUiSliNt5t/36rq1NNrg7H9dj6vo2/PmI3 w1NrE3y0zfxFvrCn5JS9hUt7lCnc1QgjWJH9RUb8iHU7rWAcvGcdN6nuXZDPaYFZlXzb Z9szPf+1lNDtCP4U8uxjeBV/U9MJbTQcAHU7viMtyuSeApmB58zGBUqxIUT79NJmj7+8 J04W/u0PXkc/w6ymbIX96u1wQ+p0Gtzn3kb/RyMEclTgKp0brWFUdH378tWzLs5pdS7H JGew== X-Gm-Message-State: AOJu0YxvkCJQ2wp1wastCxqWSiWWn0MBSA0tMy4Dl/qc9zRtmaytewzo vWeO/pzKRvhnteU73nf1vcfz5LYA/Om77720RbjfXGFCrH332bXWH8OvcsmY1xzVhvbcoR+ydm8 XdH8/xomHXGXyCPnwFCrSi3pUZBI= X-Google-Smtp-Source: AGHT+IGIIxdKhcd2c4KfCGZakXVHrhmapTDliTaTkUFQFCdHtmf9RMk6GgwWBKXpeCWP8e5gzmr0ChHdaZ+ZxznGxtU= X-Received: by 2002:a05:6a20:9f8a:b0:1cf:4d4e:532b with SMTP id adf61e73a8af0-1d5e2d9e65fmr6929505637.43.1727905947847; Wed, 02 Oct 2024 14:52:27 -0700 (PDT) MIME-Version: 1.0 References: <4e623d9571ff648ae1d1c6ffb8f9d73c421a5c10.1727683810.git.omar.bassam88@gmail.com> <87plok7kkn.fsf@gmail.com> <8734lev012.fsf@gmail.com> <875xqanty2.fsf@gmail.com> <87cyki9obi.fsf@gmail.com> In-Reply-To: <87cyki9obi.fsf@gmail.com> From: Omar Bassam Date: Thu, 3 Oct 2024 00:52:16 +0300 Message-ID: Content-Type: multipart/alternative; boundary="0000000000003a1801062385746f" X-Mailman-Approved-At: Thu, 03 Oct 2024 00:15:02 -0400 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 4.43 X-Spam-Score: 4.43 X-Migadu-Queue-Id: 740C5437C4 X-TUID: GLlpAtkeWPXf --0000000000003a1801062385746f Content-Type: text/plain; charset="UTF-8" On Thu, 3 Oct 2024 at 00:39, Suhail Singh wrote: > Omar Bassam writes: > > >> When running "jpm --cc=gcc --local install sh" I get the same error. > >> > >> I was finally able to get it to succeed by having cc symlink to gcc and > >> adding the directory containing the symlink to PATH. So I believe that > >> the package definition you've submitted is correct. However, I'm > >> wondering what (if anything) needs to be done about the issue I > >> encountered. > >> > >> Specifically, it's unclear why passing "-cc=gcc" didn't work (nor did > >> setting "CC=gcc", but perhaps JPM ignores the latter?). Is this an > >> upstream bug? Were my expectations misplaced? Should the JPM package > >> in Guix provide "cc" as well? > >> > > > > No, this is not really a Janet or JPM issue but rather the fact that > > you are overriding the gcc compiler with a symlinked binary instead of > > the absolute path. > > I don't understand. > > All four variants below fail in exactly the same way: > > #+begin_src sh > jpm --cc=gcc -l install sh > #+end_src > > #+begin_src sh > jpm --cc=/home/user/.guix-profile/bin/gcc -l install sh > #+end_src > > #+begin_src sh > jpm > --cc=/gnu/store/x2kv3zw2k7ql211m5kvb6yw401gab0x9-gcc-toolchain-14.2.0/bin/gcc > -l install sh > #+end_src > > #+begin_src sh > jpm --cc=/gnu/store/lq9y7sd4mvffs4hqp3hkr9fnd384pnkj-gcc-14.2.0/bin/gcc > -l install sh > #+end_src > > Note that the last variant uses an absolute path. > > Either I'm not using the "--cc" option correctly. Or for some > dependency of "sh" (specifically, posix-spawn) the compiler has been > hardcoded to "cc" and it's not picking up the option being passed to > jpm. > > Further, if the above work for you in a "--pure" guix shell (where it > doesn't for me), that's surprising. > > It is _only_ when I provide a fake "cc" (which is simply a symlink to > gcc) that things work. > > -- > Suhail > I believe this is a library specific thing. I don't think this should be related to this patch. Also, if you are running a guix shell with --pure flag, try adding coreutils to your shell because jpm calls the "cp" command when building libraries. I tried with "jpm install -l spork" and with "jpm install -l sh" and it works fine. I believe the --cc flag is meant to be used for the jpm build command. --0000000000003a1801062385746f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Thu, 3 Oct 2024 at 00:39, Suhail S= ingh <suhailsingh247@gmail.c= om> wrote:
omar.bassam88@gmail.com> writes:

>> When running "jpm --cc=3Dgcc --local install sh" I get t= he same error.
>>
>> I was finally able to get it to succeed by having cc symlink to gc= c and
>> adding the directory containing the symlink to PATH.=C2=A0 So I be= lieve that
>> the package definition you've submitted is correct.=C2=A0 Howe= ver, I'm
>> wondering what (if anything) needs to be done about the issue I >> encountered.
>>
>> Specifically, it's unclear why passing "-cc=3Dgcc" d= idn't work (nor did
>> setting "CC=3Dgcc", but perhaps JPM ignores the latter?)= .=C2=A0 Is this an
>> upstream bug?=C2=A0 Were my expectations misplaced?=C2=A0 Should t= he JPM package
>> in Guix provide "cc" as well?
>>
>
> No, this is not really a Janet or JPM issue but rather the fact that > you are overriding the gcc compiler with a symlinked binary instead of=
> the absolute path.

I don't understand.

All four variants below fail in exactly the same way:

#+begin_src sh
=C2=A0 jpm --cc=3Dgcc -l install sh
#+end_src

#+begin_src sh
=C2=A0 jpm --cc=3D/home/user/.guix-profile/bin/gcc -l install sh
#+end_src

#+begin_src sh
=C2=A0 jpm --cc=3D/gnu/store/x2kv3zw2k7ql211m5kvb6yw401gab0x9-gcc-toolchain= -14.2.0/bin/gcc -l install sh
#+end_src

#+begin_src sh
=C2=A0 jpm --cc=3D/gnu/store/lq9y7sd4mvffs4hqp3hkr9fnd384pnkj-gcc-14.2.0/bi= n/gcc -l install sh
#+end_src

Note that the last variant uses an absolute path.

Either I'm not using the "--cc" option correctly.=C2=A0 Or fo= r some
dependency of "sh" (specifically, posix-spawn) the compiler has b= een
hardcoded to "cc" and it's not picking up the option being pa= ssed to
jpm.

Further, if the above work for you in a "--pure" guix shell (wher= e it
doesn't for me), that's surprising.

It is _only_ when I provide a fake "cc" (which is simply a symlin= k to
gcc) that things work.

--
Suhail

I believe this is a library spec= ific thing. I don't think this should be related to this patch.
Also, if you are running a guix shell with --pure flag, try adding coreu= tils to your shell because jpm calls the "cp" command when buildi= ng libraries.
I tried with "jpm install -l spork" and w= ith "jpm install -l sh" and it works fine. I believe the --cc fla= g is meant to be used for the jpm build command.
=C2=A0
--0000000000003a1801062385746f--