From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4Ja4FlZZDWfANwEAqHPOHw:P1 (envelope-from ) for ; Mon, 14 Oct 2024 17:48:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4Ja4FlZZDWfANwEAqHPOHw (envelope-from ) for ; Mon, 14 Oct 2024 19:48:06 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=HOTMAIL.IT header.s=selector1 header.b=KFSEt6qO; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=none) header.from=hotmail.it ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728928086; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=UdGITfC0UnNgciMbrZAlTtRcNRUs69gOX0z1ze9cOmY=; b=HKk+AE8VOGuWoO7Q4Hoo4FUNh9F3ggXVx4JnsQzYHXHlcjFPix4TgILlmEgzBddNYw6fyr ZKeTPQ8f3mZAuluQIwo23yjbjpKHl6IGs+Bx2pFBFS9foCbA0+cOm6EMimpFUVSDOXhA2E csN82J/W7FioQtQzG6UhgGNI907Rt4oViVEZVJMdEIsyT0gmVQLSK8oF0I3vxYTxUsWjb5 RWPK+EvXR7nCix2cTE8KApofGJ6kE00q4075UXaY/QtBaAq+y0OHku/2MEQJmMSXRV8m62 PcQBXqPP55Ij1ai3yM7/470RieNte1iSuuL44Ppzrj59AWbN3m1PZ1qnKmgxCQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1728928086; a=rsa-sha256; cv=pass; b=TnzdgdpxPQt/fvKQFFE0LMNNwkf0rELQz8t4LJkLOHsVFUM/fVv9D2vxLt/gSS4Qf6juyG SXlPIxyOn8hujTQvKZH2Z3v9fHV7ye+f+Dfl+qkldZ0qNf/w/H476e5vW/i3b03gun4SQZ tOt/JYenFRvCb7l7X8p1CQ5jNx81nqijYhwK6qlLK/EbIm4yE//HbxVH8eQyk6gmo6567f Yd7tOD1WolABRXmYw9C5lngdthDd/XciFBxGpZ7C8ED6odFtNjwsrqORrzHW7/VpebVkc0 rAALQQGmA6ukry0afzQIbx5J1CZXjfPgTAZ+FWZgQ+ziQ6OVE9dqFpFhNewKuA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=HOTMAIL.IT header.s=selector1 header.b=KFSEt6qO; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; arc=pass ("microsoft.com:s=arcselector10001:i=1"); dmarc=pass (policy=none) header.from=hotmail.it 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 A34AB82DF6 for ; Mon, 14 Oct 2024 19:48:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0PAO-0004kM-RE; Mon, 14 Oct 2024 13:47:37 -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 1t01o6-0001XT-Gf for guix-devel@gnu.org; Sun, 13 Oct 2024 12:51:02 -0400 Received: from mail-db8eur05olkn2080d.outbound.protection.outlook.com ([2a01:111:f403:2e14::80d] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t01o4-00083j-Jm for guix-devel@gnu.org; Sun, 13 Oct 2024 12:51:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vYKLVAm2BGlBFGDzfkQUcP5xx2Zq2bf4zKQ5Thed9kdmWcN0RISMFJXLgmmBjFbYVJkM2tXorPMXJ1glgGuTh7gpJheap6TUTJBC7uWNLuv63+wAzh2yNmSMVMqUSyaJ01kVK29f+Kt2woUuSbEUOHut+2T0leoTyHBO2SGqC6vFLMF2nbkRMQqGYaUtfiWcu/TGpv6w5laF9svymH3kHw8qTpVizMHvGkjY3kB6W0wy9eO7wkVFI/AqTUqh/qow0B8BcM3T38u/xr6btJnLCc+SBfggCVkje2yVF8aDDUIfTlooqfOOBSE8DwQxLKD6tbi4GcLbhrT4Rqbw+tCrAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UdGITfC0UnNgciMbrZAlTtRcNRUs69gOX0z1ze9cOmY=; b=rKKpS1mgQPWSnOaydSvBZvveO/I+7SFbfUL8tN1i2JG6WDxNWSq0J3M2NaBkEkTWfSwrUslYR5CYAhtXWY8RChhVM62FCg88uFliY0vLlKGXZRMu2l7WXxeGOBFK1EQ57erkV8ExNYT0MY/iTKG6cJawPR/lohbqJyWpdPLE0/7VvrXcMRKFQOJ2CPIW0KXLEj24NwpLnbG92RvfoanSJ4mFtnlPYH3e3qPaSLFVAPGoxvqp26VjbkQkB0IUrZ7xCPKAJJ4SCtj1YsGndNl+OuUoWro1yb9A9F0kXyiEZ/y5E7omTSIQkFrBNLWhHfI/Khem68CO9JgB+mJOMlpMIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=HOTMAIL.IT; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UdGITfC0UnNgciMbrZAlTtRcNRUs69gOX0z1ze9cOmY=; b=KFSEt6qO0Ci3PwEUd8cTkS1DA/js47DRFwcxaIdpNl6N7t0086UFjKzLpKoJSOE32biKgxfmdR23prMzk6MEa61igRRJCmMCTUEMIEd0n9JJH6x+uVMHXljsCNku4oTc2U9zEVy7RhqzfH6VzIaDoX/sGBwX+7A6s5MvaiFGKW5WCH/XJZe9aOOPa1QecmEkVv7w7EGBaC+uu1tWIkGrIZFZoIaTyD8BxD9Nx0wGyoJaPc4jtVNjhbX7AURfYzLekRDklNtDqxtX8Ycnf8+OmhcTeKnwmyLqDDfF792MTuROEGUzng5au3eJJXrAwRXst3KJrjxZlgezIEcGHxCTPw== Received: from AS8PR10MB5829.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:525::9) by GV1PR10MB6171.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:150:95::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.17; Sun, 13 Oct 2024 16:45:57 +0000 Received: from AS8PR10MB5829.EURPRD10.PROD.OUTLOOK.COM ([fe80::a705:2fe4:69df:1e30]) by AS8PR10MB5829.EURPRD10.PROD.OUTLOOK.COM ([fe80::a705:2fe4:69df:1e30%5]) with mapi id 15.20.8069.009; Sun, 13 Oct 2024 16:45:57 +0000 From: Marco Fortina To: "guix-devel@gnu.org" Subject: guix shell: error: symlink: File exists: "/bin/cc" Thread-Topic: guix shell: error: symlink: File exists: "/bin/cc" Thread-Index: AQHbHY7H10GreJbuuUWP3NEze+AQFA== Date: Sun, 13 Oct 2024 16:45:57 +0000 Message-ID: Accept-Language: it-IT, en-US Content-Language: it-IT X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AS8PR10MB5829:EE_|GV1PR10MB6171:EE_ x-ms-office365-filtering-correlation-id: da816ede-eb9d-4b60-5713-08dceba682d7 x-microsoft-antispam: BCL:0; ARA:14566002|461199028|15030799003|8060799006|8062599003|19110799003|15080799006|7092599003|440099028|3412199025|102099032; x-microsoft-antispam-message-info: nldQqHOzQ4/L0vizl2FLTMSE4RkfZufyGvKlUFjV3OBbuFKmfRzpjpEw9gqSglnorneMNdziNZ5KwMACxnDJ7xJTjuLFqq4/Nmtf3X5c4envgCdgY1xO9OfUmqFCN/2dRa+JvlGA9rb/W1SECP5xjHXeA/QeyRzMRKcSZ8vZFVl4g2l7ce2bxHIZ3zE1jraOOXaUPKwFSPjNP8x0rKxXwK7rhzevvp3Qz+8snSMmhpLJhDSAt7ocDVg11FHyLzVVwNgBWXYs95t9v7ZDMRlp9ISdcTxTDukJi0NQ3eOhSazCmYRYJSfBcospkGyJ2ccba8ZyoLMGnuFRXu+zI0L0r5nKEw1jodjiWs46b0qXXIfCIm0A1I3AJl6OyyScRfNKwjeK+W2Riqd2skl+/CvE60qyaBh7NuNWgmEXDOX4N3vQ0jQymyauc2YGtZn19N2mUx0Er7tnxPNcaaBHciNMbIYEk+exEWgWd02kMClurMt5OuNRfb5cxXIIWaIuEvC7ERtZSaHVgCec3MSuEJslpP9h5MAR/BRIAAZ02l75Tl1iK8lABfPAqEHgKxCDwxDZn+EP/uzgBcyWX1G4jSfsrt0BGSz2kPLdvlMoaIh2jMrcsTBHTJ2nhvMRO4AQGvq7zDdXbfnLDll2tJkS44eyoxEQ0vfXDvzKLu5f44TQ50t3qBdqGbTh843ogOVuNSl4MebkwMf+Y2HXODtZVKHFX+AUAgq9E7NxrHS6D+uRGNWHk9kRGf9/NH2T1IKWdnKFeiQB70QlyvW2Qbv0Gbr0/Q== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?e09bK5+hRIPJWo9CZY++3DYkXP6IxqQi/dMaJ1KO439no3uxY3MsFzq+rY?= =?iso-8859-1?Q?buDBDvy0wZim6l3a2RunqDRgy497UIoa580NlQgcZ2d0GKg9O0qSVCTCt1?= =?iso-8859-1?Q?RRuVxQKhamRhtnMw2WxJ1lyUNl9TQHXGcZj206iA11uyDYsGhFspFbZ5//?= =?iso-8859-1?Q?qiz1UA2rOQWlBVrH1/0CoYVwhQlc8eMTiOLOmQt5GXuA8s7AoK06IdrQZn?= =?iso-8859-1?Q?c7hjud5BdP2yL4oGttdzrp6d8IpOKa11vR+Veb6pUShiLVwJXvLrj0fGmg?= =?iso-8859-1?Q?mbtv3N70Vf9sp/Vw4XHir0EmXo5c0gwlzbIch8G57PBb8Yjv9VvZhiigo+?= =?iso-8859-1?Q?5fkJsR8zfzS8srIicGLNjQU20DrAiHE/PhZwqAiUT9GnD4MUJvn5WYqp41?= =?iso-8859-1?Q?MYV3tWCkPOuugyaJXtcXfca3aD3SUR9DQ1HdtPlb5gossorXtdbuFydyDQ?= =?iso-8859-1?Q?texgf4ISCe+pxV13DhXosHhp+Bw5LfK6IroOvM4OCuEOVOtOWVXSKlpdNm?= =?iso-8859-1?Q?SBJobHD5YTDg/08n8zg3BvkZTOAVXlobluDeapp82ZUk7uvRz2LeBfEF+J?= =?iso-8859-1?Q?jjnpDlNpVA+2ZOmlzw/erfHhWjUhkxowUO5vl9v1sg0ayEyzr2k/aZ3MWk?= =?iso-8859-1?Q?t2CEefNnW3pCA6jr7rrnW/F6iRts/kv176FbGE5WODxWmNKhrx2ZVJUe46?= =?iso-8859-1?Q?QcS9LzC8oA5c2eeOBT8mmAfgqG1k5NMx8EaaOYZI4SSK/DIFdT3Xv1ECv1?= =?iso-8859-1?Q?iGK6MzapY3gH5+nQtMKf5sMAyVJESq5DxaWBocWRCefgbTmdsHzfYFteYv?= =?iso-8859-1?Q?E2fObDyP1N3dp9csLRSyL2xYnenKRSadAIEtYPu21yWoP3KDzujwp9Gbj3?= =?iso-8859-1?Q?GV4malYQIWzSZ4L06W7vwnEoXQD8i1m5Q+D/YUheB2GsfnW2oQt36zzIOf?= =?iso-8859-1?Q?pJhRteCysFNBRyX6PfLM+itQ+rd8X4crgDuyqRDPSwowzKohZzaZdpPKi6?= =?iso-8859-1?Q?tPAl7DIoZJkfLuULMEro0I5KVsQXJ0vHPKIkvZb+TXHBJvFZUPbfMmI8QD?= =?iso-8859-1?Q?vGRSmLAzlzjRn843Jfz1cIS17B42L0KKKNyQfnFp8Hl3OVDlqNTsqy2nZh?= =?iso-8859-1?Q?iXWbQp/EUJLsdqotVMW6MwxYmh9qJWGw6isUjbYQ5rUch2xQXU1lPYPnsF?= =?iso-8859-1?Q?lY+0JTgQk+5PM+aVRTDU/MzN2+ino44RsnZw2GLcYBtmpxg84v4+9nVfxe?= =?iso-8859-1?Q?RICh6MY/OP5t9wl/8XpcE52rg6LmNrhtneWAVeegU=3D?= Content-Type: multipart/alternative; boundary="_000_AS8PR10MB5829AF53C13124EA2834134CF77B2AS8PR10MB5829EURP_" MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-7719-20-msonline-outlook-4359a.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AS8PR10MB5829.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: da816ede-eb9d-4b60-5713-08dceba682d7 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Oct 2024 16:45:57.1424 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR10MB6171 Received-SPF: pass client-ip=2a01:111:f403:2e14::80d; envelope-from=marco_fortina@hotmail.it; helo=EUR05-DB8-obe.outbound.protection.outlook.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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 14 Oct 2024 13:47:34 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.04 X-Spam-Score: -4.04 X-Migadu-Queue-Id: A34AB82DF6 X-Migadu-Scanner: mx13.migadu.com X-TUID: RpGW6FvLvCne --_000_AS8PR10MB5829AF53C13124EA2834134CF77B2AS8PR10MB5829EURP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello there. I have this issue when with guix time-machine shell when using --emulate-fh= s option and having gcc-toolset and clang-toolset in my manifest.scm. I this this could be solved with this patch: diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index 9f851a478e..7a276569e9 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm @@ -512,8 +512,10 @@ (define-public (make-clang-toolchain clang libomp) ;; Create 'cc' and 'c++' so that one can use it as a ;; drop-in replacement for the default tool chain and ;; have configure scripts find the compiler. - (symlink "clang" (string-append out "/bin/cc")) - (symlink "clang++" (string-append out "/bin/c++")) + (unless (file-exists? "/bin/cc") + (symlink "clang" (string-append out "/bin/cc"))) + (unless (file-exists? "/bin/c++") + (symlink "clang++" (string-append out "/bin/c++")= )) (union-build (assoc-ref %outputs "debug") (list (assoc-ref %build-inputs diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index a219b2ac89..72e56367a8 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -465,7 +465,8 @@ (define* (link-contents dir #:key (exclude '())) ;; bin directories will link to /bin. (let ((gcc-path (string-append profile "/bin/gcc"))) (if (file-exists? gcc-path) - (symlink gcc-path "/bin/cc"))) + (unless (file-exists? "/bin/cc") + (symlink gcc-path "/bin/cc")))) ;; Guix's ldconfig doesn't search in FHS default locations, so provide a ;; minimal ld.so.conf. This patch will create the symlinks only if destination files is not alread= y present. Thanks --_000_AS8PR10MB5829AF53C13124EA2834134CF77B2AS8PR10MB5829EURP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello there.

I have this issue when with guix time-machine shell when using --emulate-fh= s option and having gcc-toolset and clang-toolset in my manifest.scm.

I this this could be solved with this patch:

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 9f851a478e..7a276569e9 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -512,8 +512,10 @@ (define-public (make-clang-toolchain clang libomp)
                     = ; ;; Create 'cc' and 'c++' so that one can use it as a
                     = ; ;; drop-in replacement for the default tool chain and
                     = ; ;; have configure scripts find the compiler.
-                     (sy= mlink "clang" (string-append out "/bin/cc"))
-                     (sy= mlink "clang++" (string-append out "/bin/c++"))
+                     (un= less (file-exists? "/bin/cc")
+                     &nb= sp;   (symlink "clang" (string-append out "/bin/cc"= ;)))
+                     (un= less (file-exists? "/bin/c++")
+                     &nb= sp;   (symlink "clang++" (string-append out "/bin/c++&q= uot;)))
 
                     = ; (union-build (assoc-ref %outputs "debug")
                     = ;              (list (assoc-ref %build-i= nputs
diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index a219b2ac89..72e56367a8 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -465,7 +465,8 @@ (define* (link-contents dir #:key (exclude '()))
   ;; bin directories will link to /bin.
   (let ((gcc-path (string-append profile "/bin/gcc")))=
     (if (file-exists? gcc-path)
-        (symlink gcc-path "/bin/cc")))
+        (unless (file-exists? "/bin/cc")
+            (symlink gcc-path "/bi= n/cc"))))
 
   ;; Guix's ldconfig doesn't search in FHS default locations, so= provide a
   ;; minimal ld.so.conf.


This patch will create the symlinks only if destination files is not alread= y present.

Thanks
--_000_AS8PR10MB5829AF53C13124EA2834134CF77B2AS8PR10MB5829EURP_--