From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OLEUIGzT62IB8wAAbAwnHQ (envelope-from ) for ; Thu, 04 Aug 2022 16:10:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wKAaIGzT62LjqQAA9RJhRA (envelope-from ) for ; Thu, 04 Aug 2022 16:10:52 +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 2EBBA3D831 for ; Thu, 4 Aug 2022 16:10:52 +0200 (CEST) Received: from localhost ([::1]:39984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJbYp-0004cF-6J for larch@yhetil.org; Thu, 04 Aug 2022 10:10:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJSn8-0007Ht-FZ for bug-guix@gnu.org; Thu, 04 Aug 2022 00:49:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60999) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJSn8-0005cF-5s for bug-guix@gnu.org; Thu, 04 Aug 2022 00:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJSn7-0003N2-SV for bug-guix@gnu.org; Thu, 04 Aug 2022 00:49:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55657: libgccjit is unusable Resent-From: Andrew Whatson Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 04 Aug 2022 04:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55657 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Liliana Marie Prikler Cc: John Kehayias , Tobias Geerinckx-Rice , "remco@remworks.net" , "55657@debbugs.gnu.org" <55657@debbugs.gnu.org> Received: via spool by 55657-submit@debbugs.gnu.org id=B55657.165958850412910 (code B ref 55657); Thu, 04 Aug 2022 04:49:01 +0000 Received: (at 55657) by debbugs.gnu.org; 4 Aug 2022 04:48:24 +0000 Received: from localhost ([127.0.0.1]:50748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJSmW-0003MA-Bo for submit@debbugs.gnu.org; Thu, 04 Aug 2022 00:48:24 -0400 Received: from mail-vs1-f48.google.com ([209.85.217.48]:46967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJSmS-0003Lg-R2 for 55657@debbugs.gnu.org; Thu, 04 Aug 2022 00:48:23 -0400 Received: by mail-vs1-f48.google.com with SMTP id x125so19953615vsb.13 for <55657@debbugs.gnu.org>; Wed, 03 Aug 2022 21:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4FJBmxVqKW9Dp5WqpuJuHvcaFTJWcEWzB5LYOW91XUU=; b=XlhjZNOCqVSGUeGfO+Up5jvHBlsz6Ua6o+Wcna2tFN167RlyfXM1UGDd2SxSmMUVjo ZaNWcK6yoq66kqs0NPrujTvlHFoLIxhTxLpGRKAvTDv0aFyEfm6L70G/1BeuVQCkhJ97 yELBVKeJ+ja1RI6sQUtlzJ8OZGMP/VdrcjFSTpI1R0Ffl0Ktg66hDUjGFeaobstQjqA+ 5hqIVfuFx6gccA82vxrjPagCGGjgnq5ppjMjEFukvCrZMw9yTUpvN4LPOZbDWq/UpXAh 50bd9PyUoxuF3KXIUuQC0YdT21m9SsEt0ON3TxmeFYUh+b2tLj0+O3UO+wKRyIQIKg9D rfCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4FJBmxVqKW9Dp5WqpuJuHvcaFTJWcEWzB5LYOW91XUU=; b=AugWWh12YfA2pDnQUQe6zDHDWej8vRA4au9bMLvrbTAN1gGz+wjlshxgr1ie945uWj t/uFwrlqkrOqYHuibEDZqIhSrPN3TIQ1z9grmcRs+oIDzhLD9vVqqetd/kZ0C0GYtJ+R 4MOsA8zAJXiPLJD/G1rzkK7XDGSmfeLvPJv3j97jBmvvpa0eTP8rQWtu+pwfGG3mRNoI 0LZdfD2cDdincAOypbvB+M9tw/eZ7XsusKT2bZBYYkmMqPRfc5KtUhvCy9b3zYV4YKqg +ua5OA+NxGpWhXLKFuU7PBohzx9Sa8l43zf1+xNjc5vCzT1MdyRLweOoFCqtI4HyjyRp 30Xw== X-Gm-Message-State: ACgBeo0cVZfhkNbPGD9xuMg4eA+eSH3BsJ9QzVqJoVxxrnYrFOoWiauK Al9ZFC4W0XRRI9GbJ3pHg7f9PFgOQ7f7Kfazx4o= X-Google-Smtp-Source: AA6agR5sP8fAWMC2vpsrzmPrlR9HyFEOsjRBsKFovFw4eHWx0ay58p1p3sDauqPhUqWXqoe+SgnGO/LOHVLgSIwqwA8= X-Received: by 2002:a05:6102:cca:b0:357:dfac:53ee with SMTP id g10-20020a0561020cca00b00357dfac53eemr2200vst.44.1659588495041; Wed, 03 Aug 2022 21:48:15 -0700 (PDT) MIME-Version: 1.0 References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <67ca146d031c320b484979c6aa5a89b9c9b8472d.camel@gmail.com> In-Reply-To: From: Andrew Whatson Date: Thu, 4 Aug 2022 04:48:03 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 04 Aug 2022 10:09:22 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659622252; 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=4FJBmxVqKW9Dp5WqpuJuHvcaFTJWcEWzB5LYOW91XUU=; b=J0oyM+Tgny3vj1h+6fYk4k6P96xH0VbUdPU2tWzKmxtD66PIIBtE9Ys6ZNBaheKacyCa/y uTxsGQZQtTTWhcPk09ma7OvjNhtSD2G1nVMKHmUy80Xzd9Z36QjLUeyNldlNGgqQL0t7ai 63EW/zIWy3i3SeSSv67MwKtj9V4oBm12aiQmp+p8Xlrn4NW/CqnoNWYkDbfKsZucB+XXn8 2vJxO5oareNMt+aR0Q3DcZCAp7NJ69Yl/dAUrAL8EYlE4oUX4BJ0fI0j4AYyCRH1kFO7am tkhSlV2NfqjaVE1ZWeQAl5wBOrWhX9f7chcqs6YJWtfnSSFOIe0PsZHJTmy1tQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659622252; a=rsa-sha256; cv=none; b=MrXNP0QQsE+PAkMKCKhgswCHwOKOizVmUZkg6QFD7SwE5IgZB83RgbvWLM/Risz3qxM53J UmgorbESQFUX7na2s47ILiSX/KoD24Z9Dxt98DUIYBHIjCIgNRu5elb36nhT1WOhoT8e9E w7XUSWDGfEc780FivLAgfCWqkn8IDJBkTVi3+KcncimfuaUTvZnwPGa+mpQHBcel5KCv63 wq/3CvUL1QyRktmmHRFcT02An2wxzNGaHTBlRKTogqgXoiY0tR+6tTUQbc6HAoSyb9NTbp cjBmSPFIIwOULk/soZtlsAtY8SOxL3NlpQfHQKiFdMq0TSfISXP+Z5DmVGkQdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=XlhjZNOC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.49 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=XlhjZNOC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2EBBA3D831 X-Spam-Score: 6.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: gYja15Rj5kcU Hi John, Liliana, Sorry I haven't jumped in before now, I appreciate your efforts to bring emacs native-comp to guix! On Thu, 4 Aug 2022 at 04:26, Liliana Marie Prikler wrote: > > while this does help insofar as I now know which snippet I forgot to > copy, I do still think that this leaves us with two unreasonable > options if we want to use emacs to compile other packages: > > 1. Propagate gcc-toolchain from emacs. > 2. Patch LIBRARY_PATH not just before configuration, but also via a > wrapper. > > At the very least I don't see how Emacs would be able to compile other > packages to native code without either of the above. > > WDYT? The solution used in the package-definition in my channel is to patch `comp.el` to directly reference the necessary gcc/glibc paths instead of relying on the environment. This occurs in the "patch-driver-options" step immediately after the "set-libgccjit-path" step mentioned earlier. This makes gcc-toolchain part of emacs closure, without requiring it to be propagated into the profile. If I understand the problem correctly, that should suffice? Cheers, Andrew