GNU bug report logs - #47325
newlib-nano: are lib names wrong?

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; Reported by: Nicolò Balzarotti <anothersms@HIDDEN>; dated Mon, 22 Mar 2021 17:17:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 22 Mar 2021 17:16:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 22 13:16:17 2021
Received: from localhost ([127.0.0.1]:58438 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lOO9q-00072e-KO
	for submit <at> debbugs.gnu.org; Mon, 22 Mar 2021 13:16:17 -0400
Received: from lists.gnu.org ([209.51.188.17]:60446)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <anothersms@HIDDEN>) id 1lOO9o-00070F-FW
 for submit <at> debbugs.gnu.org; Mon, 22 Mar 2021 13:16:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39498)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <anothersms@HIDDEN>)
 id 1lOO9o-00070a-1Q
 for bug-guix@HIDDEN; Mon, 22 Mar 2021 13:16:00 -0400
Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:34593)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <anothersms@HIDDEN>)
 id 1lOO9l-0008Rb-D1
 for bug-guix@HIDDEN; Mon, 22 Mar 2021 13:15:59 -0400
Received: by mail-wr1-x42f.google.com with SMTP id j7so17985794wrd.1
 for <bug-guix@HIDDEN>; Mon, 22 Mar 2021 10:15:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=GEscOTOBNsuj3XDHs/ymOX4s+wszhMzbf6f6vBJuQzk=;
 b=ADdpO8rM5VUZD6e7Ud8NOIyFcgnCIyoSS1AH+kCshMwa7nTDuxsqclVQT/QEenWPdr
 L9RdRWSvCISgDTUr+vXMYhA1bUCuTw+0q5s5oT1tGI2vaWFi8m9e7D4mXOtVB6tF28yb
 yLKbLGjLq39JdxBr3U3CwQXb5N8uw7BNW4QHnhgtHi8zlCbgxzE6d+wWQty76m8D5rXa
 roPqa8Si9i0U7HnzretlqJ2Uno77Izj83xiI5RphJ5vn/yP2vZSDQkt+48Wh9Tme50hg
 shMmdMueO77+DXi+Qony2BuEzK0/NUaBW52gKjTXYvPdsvalCcSPbSi9kNKb/7eOycfc
 6V4A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=GEscOTOBNsuj3XDHs/ymOX4s+wszhMzbf6f6vBJuQzk=;
 b=jsRStM5lndG1QvPjdBBq2I1itWgTgRmJMddjiDHIlXiRuQhXkubvb8v0FEcfoGj3Oo
 uNWtcH2dhaI3t5RaQMGNyC/9UxoJsEoe/PaDypxwpyz148HNykf2ZadKLGI2f3VcQBjh
 b465UsWkw3XaB73oDL4dtB7jFA3F6ZizOhgUXtteNOZQQbZCOB1E9WK6e7Rj/7BfuJiC
 dl4MRpP57jm1QbRjv1/Fyx7jUAREL78+t+qUp19kwINk+BO4RpJKsrrLm2SQxrQiTsjl
 g5Hl730mGTKsJXl/1pFLrfM27cxqPtOFDRwV5tKyDEOWN7dNwYuL11+7hKTVcy1HouTD
 XaQQ==
X-Gm-Message-State: AOAM531rnsb/r62MiPYjaP+Mx7yvPC6uroG0WfaVsTgGz4HHoSIBZBgE
 gEwFEiKU6MA0WWJBuIrf94EqANkYPQM=
X-Google-Smtp-Source: ABdhPJwJ542UFDqK72F7TOW7nqbdvdCH95EkY1TDQufS/Agv17lRY2zCcJ4KFUG8ssvK1ZgZk14GyA==
X-Received: by 2002:adf:a18a:: with SMTP id u10mr539343wru.197.1616433353696; 
 Mon, 22 Mar 2021 10:15:53 -0700 (PDT)
Received: from guixSD (host-79-17-142-89.retail.telecomitalia.it.
 [79.17.142.89])
 by smtp.gmail.com with ESMTPSA id i3sm21597034wra.66.2021.03.22.10.15.53
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 22 Mar 2021 10:15:53 -0700 (PDT)
From: =?utf-8?Q?Nicol=C3=B2_Balzarotti?= <anothersms@HIDDEN>
To: bug-guix@HIDDEN
Subject: newlib-nano: are lib names wrong?
Date: Mon, 22 Mar 2021 18:15:52 +0100
Message-ID: <87ft0nnm7r.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::42f;
 envelope-from=anothersms@HIDDEN; helo=mail-wr1-x42f.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.3 (-)
X-Debbugs-Envelope-To: submit
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 guix!

A program I'm packaging requires newlib-nano, but when building, the
linker fails to find g_nano and c_nano.

I found out those names are taken from the nano.specs file we install
> cat $(guix build newlib-nano)/arm-none-eabi/lib/nano.specs | grep -- -l

-lc_nano
%{specs=3Drdimon.specs:-lrdimon_nano} %{specs=3Dnosys.specs:-lnosys}
%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano)
%:replace-outfile(-lrdimon -lrdimon_nano) %:replace-outfile(-lstdc++ -lstdc=
++_nano)
%:replace-outfile(-lsupc++ -lsupc++_nano)
%{!shared:%{g*:-lg_nano} %{!p:%{!pg:-lc_nano}}%{p:-lc_p}%{pg:-lc_p}}

However, those files are missing:
> ls $(guix build newlib-nano)/arm-none-eabi/lib/ | grep lib

libc.a
libg.a
libgloss-linux.a
libm.a
libnosys.a
librdimon.a
librdimon-v2m.a
librdpmon.a

I was able to build the program by modifing the .specs file with:

(add-after 'install 'remove-suffix
           (lambda* (#:key outputs #:allow-other-keys)
             (substitute*
                 (string-append
                  (assoc-ref outputs "out")
                  "/arm-none-eabi/lib/nano.specs")
               (("_nano") ""))
             #t))

But reading online, it seems the _nano is a common suffix.  Should we
rename the output libs?  Should we symlink?  I know nothing about this,
but it might be a bug.

Thanks! Nicol=C3=B2




Acknowledgement sent to Nicolò Balzarotti <anothersms@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#47325; Package guix. 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: Mon, 22 Mar 2021 17:30:02 UTC

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