From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 04 00:48:24 2022 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: Subject: Re: libgccjit is unusable To: Liliana Marie Prikler Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: John Kehayias , Tobias Geerinckx-Rice , "remco@remworks.net" , "55657@debbugs.gnu.org" <55657@debbugs.gnu.org> 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 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