From unknown Sat Aug 16 16:56:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47325: newlib-nano: are lib names wrong? Resent-From: =?UTF-8?Q?Nicol=C3=B2?= Balzarotti Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 22 Mar 2021 17:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47325 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 47325@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161643337727920 (code B ref -1); Mon, 22 Mar 2021 17:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Mar 2021 17:16:17 +0000 Received: from localhost ([127.0.0.1]:58438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOO9q-00072e-KO for submit@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 ) id 1lOO9o-00070F-FW for submit@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 ) id 1lOO9o-00070a-1Q for bug-guix@gnu.org; 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 ) id 1lOO9l-0008Rb-D1 for bug-guix@gnu.org; Mon, 22 Mar 2021 13:15:59 -0400 Received: by mail-wr1-x42f.google.com with SMTP id j7so17985794wrd.1 for ; 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 (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 Date: Mon, 22 Mar 2021 18:15:52 +0100 Message-ID: <87ft0nnm7r.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> 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@gmail.com; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From unknown Sat Aug 16 16:56:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47325: newlib-nano: are lib names wrong? References: <87ft0nnm7r.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> In-Reply-To: <87ft0nnm7r.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: Morgan Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 26 Mar 2021 20:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47325 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: anothersms@gmail.com Cc: 47325@debbugs.gnu.org Received: via spool by 47325-submit@debbugs.gnu.org id=B47325.16167914099058 (code B ref 47325); Fri, 26 Mar 2021 20:44:01 +0000 Received: (at 47325) by debbugs.gnu.org; 26 Mar 2021 20:43:29 +0000 Received: from localhost ([127.0.0.1]:42624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPtIn-0002M2-7U for submit@debbugs.gnu.org; Fri, 26 Mar 2021 16:43:29 -0400 Received: from mail-mw2nam12olkn2045.outbound.protection.outlook.com ([40.92.23.45]:6752 helo=NAM12-MW2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPtIk-0002Lm-E9 for 47325@debbugs.gnu.org; Fri, 26 Mar 2021 16:43:27 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c8HctbRbgsxAVJdlUpzE4Vh52B7VfvEshJjPGikUzkQAeaZbWoJDFDo0Lxwnc1v1nulHuOtuyJJimvVFM1EhKppOrFMgRKzbB/BwCisTGfHhXxS/9o9ZAfeUXcaPBK/yorAq1SVDiMmN/nCYVMtpi3cyqQS+TPnNhir0lvtTzkxiP9IEbv7AEqBXnydYjR/nSqn3Lk7jP4nvZRz2PT6fpi7SCYpFCmd8p/ZdGasZTly7UbA6O2IL5rB7UXn7dJuAGrmAEPYhJzc4G+nK9amSaBKIa769vhXU6KX2qgp2Upjb9kxEaQMd8KzEYVP+xoXuuCOze/FlKpdBHeH+8VYdnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gmmPzAmyuTbL5nGkAiJHRBoX1f6nemOVL3tbku+iAAY=; b=JosXFw9b0H/bWlcvCl6X3tGTS713fThiZcAyiJmcxOXbZHuc+Hh+JDELrhEcNx6sF3/9r19ajOIykFLcgw0vg8qS4KMdy+LF87Y11UnCYG0DHEiV861NbH+MQA7+vzfaYaDzLKtYB9wZ4oyMQ//Q4TdYx19qejvl8GlNsuEADMM6TGmHFjm40D8h1zB3gTsYstdpcPQalULpT3GJaXP1J9jUQYFSyvJcRkTfyXsZTOTCWaD8pqQZoMeXUwXsP43At1CZWXSCSSNt+7VCf0pWwVIzBtwyJfQDYrozU7g5hk4+THD/IL7FI9USgIW0ZRbXXqvJsX9K+LvOOkBCqcvNtA== 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=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gmmPzAmyuTbL5nGkAiJHRBoX1f6nemOVL3tbku+iAAY=; b=Ur8lH+Zh18r1jCfjIJ6ii/2IOFcv2c7DOjsbyXsypVGKIdrn2oC2QR59d8NBUWvHOhNmg5KkvVl47ldk56PZFgGtu7qhJhes21ZLSYEDt7LiPNXc9lGbBSOT1lXf4P9pLqHPffxjXnJl6aR/ugzt7oXWDLFkqPd8f3II1Szi3AGSCqZ3OxBVcyinK+cuBntiDjxxfc/A3x0LrUbYgvakb6dhFBklWS9/B/HzXJMvXHElX/I1keyHudwHxWpB4sAYQ4a+43U/6jo5h6h8F74HiwQ4GuQgNTjGqGUYbovsLDed4qFX1zKZs0MJvJV7D/7y/WNvPVt6Mikz/DyT2wjtCA== Received: from MW2NAM12FT033.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc65::4f) by MW2NAM12HT024.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc65::103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.14; Fri, 26 Mar 2021 20:43:19 +0000 Received: from BYAPR05MB4023.namprd05.prod.outlook.com (2a01:111:e400:fc65::44) by MW2NAM12FT033.mail.protection.outlook.com (2a01:111:e400:fc65::297) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.14 via Frontend Transport; Fri, 26 Mar 2021 20:43:19 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:4C0554D3D4BD5BFA234D7460C500623D538A648498A97FAFBB84D7D269A345C2; UpperCasedChecksum:DC0AD181C4877CAF8D5AB96054A23A85667BE355D0A7E8475AE5BC78C4748D1A; SizeAsReceived:8361; Count:44 Received: from BYAPR05MB4023.namprd05.prod.outlook.com ([fe80::285e:b16b:c1cb:7374]) by BYAPR05MB4023.namprd05.prod.outlook.com ([fe80::285e:b16b:c1cb:7374%7]) with mapi id 15.20.3999.015; Fri, 26 Mar 2021 20:43:19 +0000 From: Morgan Smith Date: Fri, 26 Mar 2021 16:42:40 -0400 Message-ID: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TMN: [51grtOCl7ovfsUidAiPVLSv+mtCFUli1] X-ClientProxiedBy: YT1PR01CA0087.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:2d::26) To BYAPR05MB4023.namprd05.prod.outlook.com (2603:10b6:a02:87::30) X-Microsoft-Original-Message-ID: <87v99dzlxb.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pancake (67.70.130.205) by YT1PR01CA0087.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:2d::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.24 via Frontend Transport; Fri, 26 Mar 2021 20:43:16 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 44 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: a06984eb-7a79-400a-d0af-08d8f097c8dc X-MS-TrafficTypeDiagnostic: MW2NAM12HT024: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6WA7Dw2fBizhj6cSkwjPncchvkc9LXb4nugq1QoO2ZDLwua0Gs2hBSC5jVNAqF7CtGVCX2ZuRC66YCx0YCPLwcu9dYfdmy4jDLCtDM5O4uUWQ/qdGYWNpqRK24wrA7QMu6aqg69BOVII020Auod014Sh7E3bd6Zv/NvRTQLE/1P5VPec+OtPTYXx3YYF58If9io0PYaAvkuKQX3JavomQZaF2NWVuiTOX7MknVOfPWk2lg+03h7BeuJywnGbzW0vZiT4yCMz6o64lY95l3VNiYfR269yb3w1Rdw0TYs2Ccte+3hbjGbwZ94FwcXie1o2+6la1uKtVZi+StHsrLOt6gLJ+0TkWuDMN3oy/kDpUBh53lsOOUdzYLDBY8OckUIegFrSZslGVIQqreE4TV9O2VIvM8jKPyaxRUnzk27qHck= X-MS-Exchange-AntiSpam-MessageData: Ejf921y3yRkd4GRxrXIRZDoX+x9QuyCqBuYSFgXidcsEEBIlCCGWFQ0k7zv6kstKWwVCuq/mi3Hxed81lPx6XJaCykzI8q7zEWsIgxSgmZQNdwFjNRGgDYElxgBaGkoKiANfD0HBQkAzbFhQcn2RaQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a06984eb-7a79-400a-d0af-08d8f097c8dc X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2021 20:43:19.2826 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: MW2NAM12FT033.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2NAM12HT024 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Nicol=C3=B2, This is definitely a bug that I encountered today. I'm convinced it's a bug because I came across this page that says so: https://newlib.sourceware.narkive.com/kfT8XDEe/building-libc-nano-and-libg-= nano The git repo it links to has the following shell function. I think we should emulate its behavior. (On a slightly unrelated note, can someone PLEASE accept my patch in bug 44750 for a different arm-none-eabi issue. It's desperately needed.) copyNanoLibraries() { ( source=3D"${1}" destination=3D"${2}" messageA "\"nano\" libraries copy" multilibs=3D$("${destination}/bin/${target}-gcc" -print-multi-lib) sourcePrefix=3D"${source}/${target}/lib" destinationPrefix=3D"${destination}/${target}/lib" for multilib in ${multilibs}; do multilib=3D"${multilib%%;*}" sourceDirectory=3D"${sourcePrefix}/${multilib}" destinationDirectory=3D"${destinationPrefix}/${multilib}" mkdir -p "${destinationDirectory}" cp "${sourceDirectory}/libc.a" "${destinationDirectory}/libc_nano.a" cp "${sourceDirectory}/libg.a" "${destinationDirectory}/libg_nano.a" cp "${sourceDirectory}/librdimon.a" "${destinationDirectory}/librdimon_na= no.a" cp "${sourceDirectory}/libstdc++.a" "${destinationDirectory}/libstdc++_na= no.a" cp "${sourceDirectory}/libsupc++.a" "${destinationDirectory}/libsupc++_na= no.a" done mkdir -p "${destination}/${target}/include/newlib-nano" cp "${source}/${target}/include/newlib.h" "${destination}/${target}/includ= e/newlib-nano" if [ "${keepBuildFolders}" =3D "n" ]; then messageB "\"nano\" libraries remove install folder" maybeDelete "${top}/${buildNative}/${nanoLibraries}" fi ) } From unknown Sat Aug 16 16:56:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47325: [PATCH] gnu: newlib-nano: Fix nano lib and header paths References: <87ft0nnm7r.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> In-Reply-To: <87ft0nnm7r.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: Morgan.J.Smith@outlook.com Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 08 Apr 2021 13:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47325 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 47325@debbugs.gnu.org Cc: Morgan Smith , efraim@flashner.co.il, anothersms@gmail.com Received: via spool by 47325-submit@debbugs.gnu.org id=B47325.161788720625259 (code B ref 47325); Thu, 08 Apr 2021 13:07:02 +0000 Received: (at 47325) by debbugs.gnu.org; 8 Apr 2021 13:06:46 +0000 Received: from localhost ([127.0.0.1]:46154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUUMw-0006ZL-8G for submit@debbugs.gnu.org; Thu, 08 Apr 2021 09:06:46 -0400 Received: from mail-mw2nam08olkn2021.outbound.protection.outlook.com ([40.92.46.21]:44193 helo=NAM04-MW2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUUMs-0006Z5-2O for 47325@debbugs.gnu.org; Thu, 08 Apr 2021 09:06:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ajS9TLPAXYm44s78ZbqHukGF3zQ5iuxj5ZEzqaeg/4y/wB0u0MuZSKbdIV/1s89eylBUXv1ew4VKZMbXeD1XYQVO+4sMBCrog0sjCNxPy2tSS18OdE/ZPbv26SXb+OqOJR6gK74T9kk4Se6BGiPZtlIEe+3Y4x+TE47Xb0asArutV6zE70fYwtoKQVLkSL99oMypvQOUdeq40zsKqs+78Hlg3d4/QXou5Y+kmxpsjaN2PAwho+VSPiQ9X+G9fRGc26mmjtmStz4/E2draZLoT+UXozfYbxM1XIQSNq927M6WXVMWPAdSj/fchPZXKtOHpQwMZqWOumRQ/9GxdviyPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t9nGYTbxZYY7s5az2piBCyEGQOHXqW+F7ruJ7pAuOf8=; b=gzISQAK8tP9cQ3qBCyFXvP4h6IsbMCvXQmUQK1PB0tWITCm4NWOzpFifgVE1/AowcWNNmYmRlhtQYcBppGmyPz/nau81XUeWyMECkoPm4r5t3vJ0IV5Mcy1ZoHdFjiT15VGuImUmKuO6aebtz9x5yEkdDBDM93LFvk8eKw9UwPf483h1TnRtUxG7OcbkEM4k3S002+s2C7EuAyXRUN09Du04DyIDbimyF+yYQaBDzMNvSIshc+Z+H5AgGsh91I7oho++yQ51EXmbubBGeKQTfc/n2TX1FuxdGiIyQfG8ooc3sxbEkOhcMDd/AR+JRmvu8KvhQap8yTYQHGmBDaHksw== 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=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t9nGYTbxZYY7s5az2piBCyEGQOHXqW+F7ruJ7pAuOf8=; b=ZmFQjmjRbqQmS5OA9KC78BPnLorhQRDbfXMkpYHahVEv0b/Fa97B2zIUoXgku5PCHsncS6pfS6UBzswLhpF6FIQgddlHcqeXfATavFHUzNbYKxnTsZ4R5s6qUhCgg5wqt778Qp1dKEwWH9ln0an7ajOpLhYHl1J/pe6fSY/C0spZvtzdm9f/bcf9YpBEHRwmQX6tk38vmfPilTw3ZGJxPH8G33Uv04v50RIsN3cbOPxsjzvUtqoyMA5VYdgy+is55jTbbqMEPt9wEGvwDeLyHvvphpuGsPZTGrjQlkm7AtGxN7n91VoGcl71zYku09RvnQSOXgj1OTqzQ3zL4AesPw== Received: from SN1NAM04FT043.eop-NAM04.prod.protection.outlook.com (10.152.88.60) by SN1NAM04HT035.eop-NAM04.prod.protection.outlook.com (10.152.88.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28; Thu, 8 Apr 2021 13:06:35 +0000 Received: from BYAPR05MB4023.namprd05.prod.outlook.com (2a01:111:e400:7e4c::48) by SN1NAM04FT043.mail.protection.outlook.com (2a01:111:e400:7e4c::301) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28 via Frontend Transport; Thu, 8 Apr 2021 13:06:35 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:243EB5A5977880144E4FCB63562528FB6D8F4D077BF8E2853D18F199E15F7EDB; UpperCasedChecksum:8167A75F71F9068B0BBCB666116537229DCCBDAE6716C26D69F0DABF34CA5332; SizeAsReceived:8474; Count:45 Received: from BYAPR05MB4023.namprd05.prod.outlook.com ([fe80::b92f:829e:18e4:7ba9]) by BYAPR05MB4023.namprd05.prod.outlook.com ([fe80::b92f:829e:18e4:7ba9%2]) with mapi id 15.20.4020.016; Thu, 8 Apr 2021 13:06:35 +0000 From: Morgan.J.Smith@outlook.com Date: Thu, 8 Apr 2021 09:02:20 -0400 Message-ID: X-Mailer: git-send-email 2.31.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TMN: [ixJzm6jyo4Ix/mQ+hLYRXK6lRndvZDpw] X-ClientProxiedBy: YQBPR0101CA0064.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:1::41) To BYAPR05MB4023.namprd05.prod.outlook.com (2603:10b6:a02:87::30) X-Microsoft-Original-Message-ID: <20210408130219.15950-1-Morgan.J.Smith@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pancake.hitronhub.home (170.52.80.149) by YQBPR0101CA0064.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:1::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.32 via Frontend Transport; Thu, 8 Apr 2021 13:06:33 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 49715007-397c-44b8-171d-08d8fa8f225d X-MS-Exchange-SLBlob-MailProps: 7MJMDUNTCtyWy+F9uIfJ5haSOpcVXOGJxENfcsnPfwFxJNs4v6y+1DZ2HSrD6EJiqMUhk1KV8yApJoECkUELJl84YklBajJuhIlNbAAaNsVKQoR9cFwx8xGWhfarKJ//mb9f5tCWM3M02Rl5iroUSqwDjXbcX7mJHsr8NzA6Nh9rCroquWcs8DQrv7nQBjyTc4IU3sv34Ql/rFy7CFYUl8sJK3m5KsWZGgnfuzLb8WszzYvTGgfeHUXDqjbc8lJfqkVPbg34gxN0qvtGwiMye/K41p5gv5av0q1xfG9WfHurB1VDboTQQWgYQ5bRum4Ss8bzEPLWCa0Ds8wgfz6OuXnzH6Mt5D7/0l14lBkMfk24EUMd0lw9VNCMiMwc8soUbg/aCUrLOmA7pnsLJMCvgNr9oLWVJveAHJiGi5uRDKAi2PxbaPUIS5oVvldQHpQ/Vrmy6vQmPyBWmF3wPTLhvr/uhb0mkHfUI98T25nGytq+yGu4SiGRY61qJdohvp+fhjHocU6iMnvbD9++5YWYdh7RdJyHuuipfzJukICdM+ZDwscuHTUruS4B15A2Kbzy/I9mtWmq5RcIYFJaEVS+cFM6dBnr52XZDNWylCC2W2rhkFKaS5Qyrrm5zd42ir5xP5wrJbQy69csb5pXMZFpecyLbVPV+y6X0TLwD6/eO99wUiQClLU6CuxKvAansAMzx5cMDDlbAtf2mW9lHwZfaZKOU9RgDeu1dVf1NXbAXdNz0oJqT6NeMQ== X-MS-TrafficTypeDiagnostic: SN1NAM04HT035: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rH1wUIgaVilghAXjdCSUFFN7vKQ5IbX4eGzZWnky89fMCG4/uurWfhOpfbMOw6GH9lYxeI3aTO9nMAJyHa8eAUp4H9pX9QZp1T5NusMnpXeGHHyk/A6Oyj3x+ty2/LNAaAiqoObZ6FDJV1/56NBh70uduC4b2Lo+G/uNnJumZtR9BeF2jm1vQZPlukuEd/z/44muwRr3Wac/95a8eFZvUK7+u4mGj2Bz0D5b6KoDtUr+rpozCkkw3DqKmYAFviYsyQZeJkIIx0mOVZbUcn/Ytg+RY0D6bZ41rbBiAYNc6ynfpneyMOpe0IPkUJj6dqEnzTdrJadoAMbnvMBHSVu3cNw9q/vodDZMYS8pPfxbPLMLSVVjHP0e9RoiOqsRzdgzHkkLXWTmvC9TefesoB6o8Q== X-MS-Exchange-AntiSpam-MessageData: ZjgqJ1ZMw4wFHuT6OrU7t+w9I1Sl1ByGhtwFS48t5CKTxxjam9zW5XvJy5rB1ZCGQRs7ROapSYCYaytNlDZhgROuo5immGHVl5w7XFNjqtnzTn3m29R86L5lfFXYsrALuEllumaKKHjBDRLTRBA9Sg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 49715007-397c-44b8-171d-08d8fa8f225d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2021 13:06:35.2579 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: SN1NAM04FT043.eop-NAM04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM04HT035 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) From: Morgan Smith * gnu/packages/embedded.scm (newlib-nano-arm-none-eabi)[arguments]: Hard link library files from *.a to *_nano.a. Hard link newlib.h to a common location. --- I CC'd Efraim because they commited my last gcc-arm-none-eabi patch. I hope that's ok. I'm not really sure who is responsible for this toolchain. I successfully compiled some QMK firmware using this patch, something that failed previously. gnu/packages/embedded.scm | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index a3f1d85580..ea5bfdbdd1 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Björn Höfling ;;; Copyright © 2021 Julien Lepiller +;;; Copyright © 2021 Morgan Smith ;;; ;;; This file is part of GNU Guix. ;;; @@ -229,7 +230,40 @@ (define-public newlib-nano-arm-none-eabi "--enable-lite-exit" "--enable-newlib-global-atexit" "--enable-newlib-nano-formatted-io" - "--disable-nls")))) + "--disable-nls")) + ((#:phases phases) + `(modify-phases ,phases + ;; XXX: Most arm toolchains offer both *.a and *_nano.a as newlib + ;; and newlib-nano respectively. The headers are usually + ;; arm-none-eabi/include/newlib.h for newlib and + ;; arm-none-eabi/include/newlib-nano/newlib.h for newlib-nano. We + ;; have two different toolchain packages for each which works but + ;; is a little strange. + (add-after 'install 'hardlink-newlib + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + ;; The nano.specs file says that newlib-nano files should end + ;; in "_nano.a" instead of just ".a". Note that this applies + ;; to all the multilib folders too. + (for-each + (lambda (file) + (link file + (string-append + ;; Strip ".a" off the end + (substring file 0 (- (string-length file) 2)) + ;; Add "_nano.a" onto the end + "_nano.a"))) + (find-files + out + "^(libc.a|libg.a|librdimon.a|libstdc\\+\\+.a|libsupc\\+\\+.a)$")) + + ;; newlib.h is usually in this location instead so both + ;; newlib and newlib-nano can be in the toolchain at the same + ;; time + (mkdir (string-append out "/arm-none-eabi/include/newlib-nano")) + (link (string-append out "/arm-none-eabi/include/newlib.h") + (string-append out "/arm-none-eabi/include/newlib-nano/newlib.h")) + #t))))))) (synopsis "Newlib variant for small systems with limited memory"))) -- 2.31.1 From unknown Sat Aug 16 16:56:40 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?Nicol=C3=B2?= Balzarotti Subject: bug#47325: closed (Re: [PATCH] gnu: newlib-nano: Fix nano lib and header paths) Message-ID: References: <87ft0nnm7r.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> X-Gnu-PR-Message: they-closed 47325 X-Gnu-PR-Package: guix Reply-To: 47325@debbugs.gnu.org Date: Tue, 13 Apr 2021 11:37:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1618313823-4904-1" This is a multi-part message in MIME format... ------------=_1618313823-4904-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #47325: newlib-nano: are lib names wrong? which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 47325@debbugs.gnu.org. --=20 47325: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D47325 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1618313823-4904-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 47325-done) by debbugs.gnu.org; 13 Apr 2021 11:37:01 +0000 Received: from localhost ([127.0.0.1]:59051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWHLo-0001Gn-OW for submit@debbugs.gnu.org; Tue, 13 Apr 2021 07:37:00 -0400 Received: from flashner.co.il ([178.62.234.194]:55444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWHLn-0001Gb-Lc for 47325-done@debbugs.gnu.org; Tue, 13 Apr 2021 07:36:59 -0400 Received: from localhost (unknown [31.210.177.71]) by flashner.co.il (Postfix) with ESMTPSA id CBD87405C9; Tue, 13 Apr 2021 11:36:53 +0000 (UTC) Date: Mon, 12 Apr 2021 11:25:06 +0300 From: Efraim Flashner To: Morgan.J.Smith@outlook.com Subject: Re: [PATCH] gnu: newlib-nano: Fix nano lib and header paths Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="d/Vog3WY7QFCpEUX" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 47325-done Cc: 47325-done@debbugs.gnu.org, anothersms@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) --d/Vog3WY7QFCpEUX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 08, 2021 at 09:02:20AM -0400, Morgan.J.Smith@outlook.com wrote: > From: Morgan Smith >=20 > * gnu/packages/embedded.scm (newlib-nano-arm-none-eabi)[arguments]: Hard = link > library files from *.a to *_nano.a. Hard link newlib.h to a common locati= on. > --- >=20 > I CC'd Efraim because they commited my last gcc-arm-none-eabi patch. I ho= pe > that's ok. I'm not really sure who is responsible for this toolchain. >=20 > I successfully compiled some QMK firmware using this patch, something that > failed previously. >=20 No one is really in charge of the cross toolchains, it's more of when it becomes relevant to someone and it's time to fix something. It looks good to me, I made a small change, changing link to symlink and made the link relative. I thought about factoring out 'lib' or '.a' from the find-files but ultimately decided against it, I think it's probably easier to read as-is. Patch pushed! Feel free to tag me on other ones like this too. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --d/Vog3WY7QFCpEUX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmB0A+IACgkQQarn3Mo9 g1EuBg/9GjHkmQxrA01OTxd48JNZUK0fPin37t3fQYkVtAORWnMVcnl/FFJsromC AmUJDiFgqjdQ8iNl1h227NlKWA0DZlNBMgSAF7ajwnjSNaU9jwVfeFkT51mQoqLd V1JQd2b4fmh4lqqIFFOGh+j04dLhrSJ0wyHYMCI0rxv6ke22vp2kW4mRdsHCEtAC qECyAlTPEfuYcGVAtdGDYVCXACPwSDW2Ka7kbX+hjP/dtGXjDLDPYnkMpOqj7zaI CDcDGcv6k1wyCv06K4m2oHEh/AMuBa/2vJtOdaA3tp3xhsaSLhbGNmyxZD05KROD wwpq6/RDXg8baxxcYhaAWIhEY/+6qYueuX4+9gVBlT1qe3ooaSFIf+HsssYpkevG Dz4GOVKjUXO2OQah2vN6G262jduPO75HhcN73YTcge/mujTG5uBVTjkkRzWgv6Zx DCQT1pAMPi2UB+cFJO6aFFSdNhM25uu0GFseIuupJV7v5eAcMeIxqrT0jyy/GWbu SGmmbXFuwykj9yEdcinE3hq+guW41ya7npTBe+/+pc91B0fDcNbaP2HbIG9qF/Ye a4+houLhDjzhBT4h6Hly6q5g8d432IQMZsJ4bJwkP8arwtn7gGnjW2oPBXpcc5F3 AaLA/rQut1D8RVpFm7N0gtY3t4hES/72F4G4W2duZknfMY0yCNk= =5U0y -----END PGP SIGNATURE----- --d/Vog3WY7QFCpEUX-- ------------=_1618313823-4904-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 22 Mar 2021 17:16:17 +0000 Received: from localhost ([127.0.0.1]:58438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOO9q-00072e-KO for submit@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 ) id 1lOO9o-00070F-FW for submit@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 ) id 1lOO9o-00070a-1Q for bug-guix@gnu.org; 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 ) id 1lOO9l-0008Rb-D1 for bug-guix@gnu.org; Mon, 22 Mar 2021 13:15:59 -0400 Received: by mail-wr1-x42f.google.com with SMTP id j7so17985794wrd.1 for ; 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 (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?= To: bug-guix@gnu.org Subject: newlib-nano: are lib names wrong? Date: Mon, 22 Mar 2021 18:15:52 +0100 Message-ID: <87ft0nnm7r.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> 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@gmail.com; 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 ------------=_1618313823-4904-1--