From unknown Fri Jun 20 05:37:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#55657 <55657@debbugs.gnu.org> To: bug#55657 <55657@debbugs.gnu.org> Subject: Status: libgccjit is unusable Reply-To: bug#55657 <55657@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:37:37 +0000 retitle 55657 libgccjit is unusable reassign 55657 guix submitter 55657 Liliana Marie Prikler severity 55657 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu May 26 09:07:16 2022 Received: (at submit) by debbugs.gnu.org; 26 May 2022 13:07:16 +0000 Received: from localhost ([127.0.0.1]:57375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuDCu-0003kA-DU for submit@debbugs.gnu.org; Thu, 26 May 2022 09:07:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:43532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuDCq-0003jw-Nr for submit@debbugs.gnu.org; Thu, 26 May 2022 09:07:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuDCq-0004fd-58 for bug-guix@gnu.org; Thu, 26 May 2022 09:07:12 -0400 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]:37796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuDCo-0004GL-4x for bug-guix@gnu.org; Thu, 26 May 2022 09:07:11 -0400 Received: by mail-ed1-x543.google.com with SMTP id d22so1752774edj.4 for ; Thu, 26 May 2022 06:07:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:user-agent:mime-version :content-transfer-encoding; bh=UBQL/q3JLhiDJ206YL01QP8w7BqYJagBCF37dDmDkQk=; b=Sk6dM2Rk5T+ElZvHvTh9kr0ZrXgK1tU3ui/alHNvEHWkO8pYowQWAsTXHW5HJqqiYv wT4vi9Dvms7YAuhiHpIgdAzIC6u9tpOHJ75uVpEZAQvz8RBx5tvg6bgm8qC1uCiCPf1V cmfdNwGVmI+3O+4qOGKgYhsvbDXm/ITDKLHX7Wg8555pCvZCL4yqRWOX8676/O1ox6WP CgrTqLs/WCALYa3CyVnSu0VaYCyMgfTd5VAkX5ywUtojBrokRhlVbAOnL29RFl1vPRo/ RAITNbZLBLbfUPy1RssgBUATS+6n5J2rvHjuSm3jAs7CulPTJ86bj6f781kq4yX9LIIX OM3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:user-agent :mime-version:content-transfer-encoding; bh=UBQL/q3JLhiDJ206YL01QP8w7BqYJagBCF37dDmDkQk=; b=IToPwHD+RNJPKrlq+vYdhjqMleMp4jc/pKP4FOlTgfbJcS8XZ8UicRRj7aPcNr4N1w 5ZpE5TDWqb11dM+iHWKPjwOzEWQXpUwnTQ4fSRHX9qjBaeg6gJqO31xeTeDy92tNKzho ptkn0yKhglSX6Wkid8iNq75kMvXf3RTcI2OuS1NEuZJpcs2mSs0iZtSYVZr7I//ZXEjE rYDgpA/a2tsjTV0SRLNzydWkO4BjgdxFu4f/PxqZ/LBZ4FzjvMSrEPUO8rWJrHAV0qXp shDTTndq4jz7bncBWabTPMb0mrSjJt5n5yytHsp/tfrPleZdp/JgIHu9d0AoNeDbOWtg vz4w== X-Gm-Message-State: AOAM533sb9S/RQ0z6ERVDWAuwIyMmhx8/a9JK7Q7SXMkML7riaVv5kGn xo3cqBXnv6jtyuFXVy1t7mfNz+k5hQA= X-Google-Smtp-Source: ABdhPJy5PyNeDp1ZnpF/iWY5L8GNHzN+9q0J9vLAZLjXAvn64yEvhmjcWmykYfv3PhI/fd1nmsIpfw== X-Received: by 2002:a05:6402:2789:b0:42b:5f74:5094 with SMTP id b9-20020a056402278900b0042b5f745094mr23070849ede.226.1653570428579; Thu, 26 May 2022 06:07:08 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id y15-20020a170906524f00b006ff0fe78cb7sm503455ejm.133.2022.05.26.06.07.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 May 2022 06:07:08 -0700 (PDT) Message-ID: Subject: libgccjit is unusable From: Liliana Marie Prikler To: bug-guix@gnu.org Date: Thu, 26 May 2022 15:07:06 +0200 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::543; envelope-from=liliana.prikler@gmail.com; helo=mail-ed1-x543.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, T_SCC_BODY_TEXT_LINE=-0.01 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: -2.3 (--) Hi Guix, with the release of Emacs 28.1, there has been some demand to enable native-compilation. While trying to set that up, I've come to realize that no matter how I slice it, I can't make libgccjit usable. My test: $ cd /tmp $ # fetch the "Hello World" [1] and insert it into gccjit-test.c $ guix shell --pure gcc-toolchain@9 libgccjit@9 -- \ gcc gccjit-test.c -o gccjit-test -lgccjit $ ./gccjit-test x86_64-unknown-linux-gnu-gcc-9.4.0: fatal error: cannot execute 'as': execvp: No such file or directory compilation terminated. Welp, okay, so maybe testing gccjit outside of its installation does not work. What if we try it inside the shell (we can always propagate libgccjit, no?) guix shell gcc-toolchain@9 libgccjit@9 -- ./gccjit-test ld: cannot find crtbeginS.o: Datei oder Verzeichnis nicht gefunden ld: cannot find -lgcc ld: cannot find -lgcc collect2: Fehler: ld gab 1 als Ende-Status zurück libgccjit.so: error: error invoking gcc driver NULL result For the record, Emacs 28 fails with a different error during configuration, though interestingly they use a smaller program and appear to omit -lgccjit. ./conftest: error while loading shared libraries: libgccjit.so.0: cannot open shared object file: No such file or directory I'm at a loss. Is there any way to make libgccjit actually usable? [1] https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 04 10:07:42 2022 Received: (at 55657) by debbugs.gnu.org; 4 Jun 2022 14:07:42 +0000 Received: from localhost ([127.0.0.1]:59428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxURK-0000MR-9j for submit@debbugs.gnu.org; Sat, 04 Jun 2022 10:07:42 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:57131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxURF-0000M9-Cu for 55657@debbugs.gnu.org; Sat, 04 Jun 2022 10:07:40 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 4DCBE3200413; Sat, 4 Jun 2022 10:07:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 04 Jun 2022 10:07:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remworks.net; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1654351650; x=1654438050; bh=CgWPsMTwZQ PFBtMO4uuG7Geeza/5f9gxTfoO8sqxD3I=; b=m59qr29wkr25Zcq49j0oBmnqlZ V4/NoFUORBRCmFM+OPD8sirN/hisppZiBfN9INp6Lg2R/wdhQoXSBBa8iM4RhtcX XUehxeCCApVAEe5ZVg3fRbS2dWXhT7K9QWywIsiO0fjuNWpAC7YATn/uuTieBjdP kM2YAbE3LgA47ph81jMCv8d6vgMqcFyPc5sotVOYYszQ0OP86XI0mnfbdPqOaNSm eW9xukfZDZQpyD503UNEWbfdTIznAUJiF3uVazbZK0xvlC7XxzZsWKTHRH3ASt8l 1u/zZguvIOV2Hyza868HatKXHDOFtYyCTNmGDwuXyGneShoSDv2nX/ef/ebw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1654351650; x=1654438050; bh=CgWPsMTwZQPFBtMO4uuG7Geeza/5 f9gxTfoO8sqxD3I=; b=RacNJo2fLeOGzv6ZymBgHkcLZMsKRTz/v8PHe+rpX3W3 5ZPb2Khf2N3nTG6+4gzV82OuDb39FX8HzL1sJhOgtMo64chZwWGNFSHJ5RGN34fE o1vKQ6AV9Qky99jo3zGAFAvfNIm7OyzhY3w1CXnCsbFanMvRVzwZnaTXNq10BnTj 7Jy5IWAnJhq0d7NK9oguEzE9a9L6BvD9+wlhN2E2INzk014UkDeqFOyUR637uD1c bKx0Td6m4ZQRJDG3ou8ALG8HgHgasGItOq4zvk07hE0Zy3AVKThSUH91jlLdPePi 1e/0j5q6AZzOtbRBFr3Bj0t7rL5jP62uGhVU+TUyzw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrleekgdejvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpeftvghmtgho uchvrghnucdkthcugggvvghruceorhgvmhgtohesrhgvmhifohhrkhhsrdhnvghtqeenuc ggtffrrghtthgvrhhnpeevgfekudekhffgkeevffejtdeuuefhtddvfeeiueekudejieel gfegfefhjeffieenucffohhmrghinhepshhrrdhhthenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrvghmtghosehrvghmfihorhhkshdrnhgv th X-ME-Proxy: Feedback-ID: i568842cc:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 4 Jun 2022 10:07:29 -0400 (EDT) From: Remco van 't Veer To: Liliana Marie Prikler Subject: Re: bug#55657: libgccjit is unusable References: Date: Sat, 04 Jun 2022 16:07:27 +0200 In-Reply-To: (Liliana Marie Prikler's message of "Thu, 26 May 2022 15:07:06 +0200") Message-ID: <87pmjomsio.fsf@remworks.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 55657 Cc: 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.7 (-) 2022/05/26 15:07, Liliana Marie Prikler: > Hi Guix, > > with the release of Emacs 28.1, there has been some demand to enable > native-compilation. While trying to set that up, I've come to realize > that no matter how I slice it, I can't make libgccjit usable. The guixrus channel has an emacs which seems to support gccjit. I have not tried it myself. https://git.sr.ht/~whereiseveryone/guixrus/ Especially: https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/packages/emacs.scm https://git.sr.ht/~whereiseveryone/guixrus/tree/master/item/guixrus/packages/gcc.scm Maybe you can borrow some knowledge there? ;-) Cheers, Remco From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 04 10:22:25 2022 Received: (at submit) by debbugs.gnu.org; 4 Jun 2022 14:22:25 +0000 Received: from localhost ([127.0.0.1]:59449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxUfZ-0000jR-0L for submit@debbugs.gnu.org; Sat, 04 Jun 2022 10:22:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:40346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxUfX-0000jJ-J0 for submit@debbugs.gnu.org; Sat, 04 Jun 2022 10:22:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxUfX-0008F1-Ah for bug-guix@gnu.org; Sat, 04 Jun 2022 10:22:23 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:60934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxUfV-0003hZ-F8 for bug-guix@gnu.org; Sat, 04 Jun 2022 10:22:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=yJmgO22Y+mSxi uW/7qxpH0SaVXtLaNssLnYOUmiwemI=; h=references:in-reply-to:subject:to: from:date; d=tobias.gr; b=ar8SY/ZD64rC8JfwTpX0Tb+R/wDR90t3ujXFIusc1WGy rzfThGpqMw2m6SdjjGOQOh2GJFUXAMGjh0K5cfOTvsrWHq+g8up/dzmmEbiOExLb1s9Ft1 DnauJhc5ZWPhSo04KrOlp77AHBcwBOQK0klw9U+P3rEqOV/tGk2fSrw143eu/xVEld6aQ2 nWF0BkB99BUxn5w7ipMpPuzORzAs+Z/aqwpGqGZlUHYUaigKyCdI6R63Hp1C5E4+EuqAM+ 3iYn7WqESltNxHYiIKPIFz6ZnCQT+vXO5etSKnKAG+bEI/QVzER2s+7biIlfu5EO5txVhu jqRsUNupM/sYnIyJgQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id b1777d6f (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sat, 4 Jun 2022 14:22:17 +0000 (UTC) Date: Sat, 04 Jun 2022 14:22:16 +0000 From: Tobias Geerinckx-Rice To: bug-guix@gnu.org, Liliana Marie Prikler , 55657@debbugs.gnu.org Subject: Re: bug#55657: libgccjit is unusable In-Reply-To: References: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Autocrypt: addr=me@tobias.gr; keydata= mQINBFVks2ABEACjGBPhWf/qx0L9OhEIrAFTimo5dHa1FLy0AHaHvxmwYSIdJmERYGiNle1rcOvw cFRtu8KJUsrs27Vgoso3qHJpghVitUUf0v3ZuXQT9kfuQLz1Y8pyMzHwVFMLiJVj4Z3y7CJk+xyZ cpSAMbyPINbFVEhsK+z+8ojVGuaiucZkib6b67ySG6Pp1bon8xVvosj71ZRjfXh1t4X8laWO7fQq itT9lmc6DxbE/4vIhR+Vb2MblaA+DyHoNHGGao89h4CO99lfzWzsux41DnEG9d317sJRQTig6Wja EKHXZRA9FbfogD4SDa2uQYCpTJpsVjAyZyu2fuJ+t0zJJ+Ai9qDY87P6hOyd+/n8Eh2Y4TbxJiDo XUT72XY/RfPH1qrMIP3EI/NNL4LQeGG1n+625k3OVWcRVXG2vRrB6qurLmGkLEmjXWCFD9cCRGfH LeajLm9sM+t/nZPZ3btetcmK9tM2EwivyLUNhrTk73UUnI4CSAzdO2cISqo9zSMtFgj2alqd2fOR s7CKfEn+5PquruDbp/Ej7dOOrjgWSCXLDDYXRrtaKrLz/dhqq5ftFYi9tUTTQecFotM08fPtu+Kw JMP2ySHCkUqp0GvrUCeSRPAJZsmJrd535y+LlRhnqb0mbG4dgMa8A6xhkFYugnqldy/q7kX1EmRI 686N7bA6fh1MCQARAQABtCRUb2JpYXMgR2VlcmluY2t4LVJpY2UgPG1lQHRvYmlhcy5ncj6JAlIE EwEKADwCHgECF4ACGQECGwMWIQT1vFU0w28Ah7OdNu8cncT+udt8SwUCXpe0rAYLCQgHCgQFFQoJ CAsFFgMCAQAACgkQHJ3E/rnbfEu5IhAAk+0BW/twLmx1xMmeXn+I7Ne6SG3++0TRBduEaGWV3n59 lX6XPZUQdAPpS4uy0H+c90Owkw+aWUEwfyOWphrxZRtR2cCOP/3Pxj3Vgtz5RkY4u27lMj15jqa/ p7l2l256ZKJOegr9TvOWtkhMp5lxeVHT6f/44Kv/r/8mMCgSnLXYrEWPE462xI+mIJOanHLJb6No f2xLRCvXoLLp7Yejjv1dwOO71R9PMRhtNy46pZM1ylQ++UTkeSocJw4aNtiu0DHOkX9AlNBkutIx x07RpO+MqJKlzzLeQiC/fE5+dR2itRONopwXAqN3MuT7MonQo5XifBn+VK8i9xZWTXZDkWItWtCC 8oIj4zwxwFWiTmMwwSbI3Wdd/11Zw3CLc4Gd0M6NVgvAnuErQXSgr4lrWhZcncvi4L6EJTc9AUSa 8UWPF+S9t+CHTukpJmcYnsccMkOBhT7OZlmWBsylrYK/JTRWqgWSHWdSKmOuLK+MGDneOZEHkEcf jeXRWvmG7MSU5tE/p7NDLIg9vkvhQV9b0q4OtY65uNWbRe2QRJaYMDcYUAeSZzivRa8VaoVen6tb FvH44zpCxubn23ABl9YIzwvJC++r+H2qLdLpy0cfITiZadZ74Ae0aosNw7XARS6OY+A03BfXyPiI 2oW0jf/PdH9sh2mQrQxIQJ5cZz6Z3X0= Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) 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: -2.7 (--) Lily, I think a lot of people are using emacs-native-comp from here: https://git= hub=2Ecom/flatwhatson/guix-channel/blob/master/flat/packages/emacs=2Escm I don't know if I've updated mine since your failed experiments, but it ha= s worked forever=2E=2E=2E Kind regards, T G-R Sent on the go=2E Excuse or enjoy my brevity=2E From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 04 10:25:12 2022 Received: (at submit) by debbugs.gnu.org; 4 Jun 2022 14:25:12 +0000 Received: from localhost ([127.0.0.1]:59457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxUiF-0000o1-QK for submit@debbugs.gnu.org; Sat, 04 Jun 2022 10:25:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:41252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxUiE-0000nt-5y for submit@debbugs.gnu.org; Sat, 04 Jun 2022 10:25:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxUiD-0000Yw-Un for bug-guix@gnu.org; Sat, 04 Jun 2022 10:25:10 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:54596) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxUiC-00044n-9O for bug-guix@gnu.org; Sat, 04 Jun 2022 10:25:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=/Ifmn4X+gorAd ioPjO1s1xnH6+gyIIAe/AD1T/TV7m8=; h=references:in-reply-to:subject:to: from:date; d=tobias.gr; b=pAAM+J67x+hqdCfSzCUcqU0KccYOoAUMHIaiTF9L1csQ yfv5yFP548fBVbH7oQolwpTVfbVdPxB7biBUi75Vb1ojgkMhfmq5JiLFwnPxi/9xQjL2st D/Zi7N4/6k8qUeWr9XblvDgPsgZGHUCRdnFDUnaoDoiNMzjreJE2E4+eje3tOxus5yAsTB BdYYVG7Qgb3fcosdySEXDgeugHtqW0OONGtxFHB0iVcmYL3aobf35PaWie0B44vAqd+1f8 6eumugCGSeyULS0sSE3e4i+joDMXDRNb4F8Dyo0YJ2zff9RZctBNqClyZtFljTNoSpwWvf wYv34SPK/ZcRI8lQcA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 1c28a622 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sat, 4 Jun 2022 14:25:06 +0000 (UTC) Date: Sat, 04 Jun 2022 14:25:05 +0000 From: Tobias Geerinckx-Rice To: 55657@debbugs.gnu.org, liliana.prikler@gmail.com, Tobias Geerinckx-Rice via Bug reports for GNU Guix Subject: Re: bug#55657: libgccjit is unusable In-Reply-To: References: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Autocrypt: addr=me@tobias.gr; keydata= mQINBFVks2ABEACjGBPhWf/qx0L9OhEIrAFTimo5dHa1FLy0AHaHvxmwYSIdJmERYGiNle1rcOvw cFRtu8KJUsrs27Vgoso3qHJpghVitUUf0v3ZuXQT9kfuQLz1Y8pyMzHwVFMLiJVj4Z3y7CJk+xyZ cpSAMbyPINbFVEhsK+z+8ojVGuaiucZkib6b67ySG6Pp1bon8xVvosj71ZRjfXh1t4X8laWO7fQq itT9lmc6DxbE/4vIhR+Vb2MblaA+DyHoNHGGao89h4CO99lfzWzsux41DnEG9d317sJRQTig6Wja EKHXZRA9FbfogD4SDa2uQYCpTJpsVjAyZyu2fuJ+t0zJJ+Ai9qDY87P6hOyd+/n8Eh2Y4TbxJiDo XUT72XY/RfPH1qrMIP3EI/NNL4LQeGG1n+625k3OVWcRVXG2vRrB6qurLmGkLEmjXWCFD9cCRGfH LeajLm9sM+t/nZPZ3btetcmK9tM2EwivyLUNhrTk73UUnI4CSAzdO2cISqo9zSMtFgj2alqd2fOR s7CKfEn+5PquruDbp/Ej7dOOrjgWSCXLDDYXRrtaKrLz/dhqq5ftFYi9tUTTQecFotM08fPtu+Kw JMP2ySHCkUqp0GvrUCeSRPAJZsmJrd535y+LlRhnqb0mbG4dgMa8A6xhkFYugnqldy/q7kX1EmRI 686N7bA6fh1MCQARAQABtCRUb2JpYXMgR2VlcmluY2t4LVJpY2UgPG1lQHRvYmlhcy5ncj6JAlIE EwEKADwCHgECF4ACGQECGwMWIQT1vFU0w28Ah7OdNu8cncT+udt8SwUCXpe0rAYLCQgHCgQFFQoJ CAsFFgMCAQAACgkQHJ3E/rnbfEu5IhAAk+0BW/twLmx1xMmeXn+I7Ne6SG3++0TRBduEaGWV3n59 lX6XPZUQdAPpS4uy0H+c90Owkw+aWUEwfyOWphrxZRtR2cCOP/3Pxj3Vgtz5RkY4u27lMj15jqa/ p7l2l256ZKJOegr9TvOWtkhMp5lxeVHT6f/44Kv/r/8mMCgSnLXYrEWPE462xI+mIJOanHLJb6No f2xLRCvXoLLp7Yejjv1dwOO71R9PMRhtNy46pZM1ylQ++UTkeSocJw4aNtiu0DHOkX9AlNBkutIx x07RpO+MqJKlzzLeQiC/fE5+dR2itRONopwXAqN3MuT7MonQo5XifBn+VK8i9xZWTXZDkWItWtCC 8oIj4zwxwFWiTmMwwSbI3Wdd/11Zw3CLc4Gd0M6NVgvAnuErQXSgr4lrWhZcncvi4L6EJTc9AUSa 8UWPF+S9t+CHTukpJmcYnsccMkOBhT7OZlmWBsylrYK/JTRWqgWSHWdSKmOuLK+MGDneOZEHkEcf jeXRWvmG7MSU5tE/p7NDLIg9vkvhQV9b0q4OtY65uNWbRe2QRJaYMDcYUAeSZzivRa8VaoVen6tb FvH44zpCxubn23ABl9YIzwvJC++r+H2qLdLpy0cfITiZadZ74Ae0aosNw7XARS6OY+A03BfXyPiI 2oW0jf/PdH9sh2mQrQxIQJ5cZz6Z3X0= Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) 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: -2.7 (--) Meant to include link to https://github=2Ecom/flatwhatson/guix-channel/blob= /657da22f0229b978b7bf4e4d476f59f17f6a175f/flat/packages/gcc=2Escm#L27 which= is where the majic happens Kind regards, T G-R Sent on the go=2E Excuse or enjoy my brevity=2E From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 04 11:14:24 2022 Received: (at 55657) by debbugs.gnu.org; 4 Jun 2022 15:14:24 +0000 Received: from localhost ([127.0.0.1]:59490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxVTs-00020e-Ba for submit@debbugs.gnu.org; Sat, 04 Jun 2022 11:14:24 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:45894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxVTq-00020R-4A for 55657@debbugs.gnu.org; Sat, 04 Jun 2022 11:14:22 -0400 Received: by mail-ed1-f67.google.com with SMTP id er5so13528571edb.12 for <55657@debbugs.gnu.org>; Sat, 04 Jun 2022 08:14:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=TZoB8Hc3orExTKpQBRxrIe+jSEsJaRubi5aULqvtA7Y=; b=CDR/F7S3iXfue50qbX4jthNpEA7CdPuwjrSUtM17xGthvcQqnfsv9o96RbF3z5uw0b FB+doQ2rcrxNNWdlS2M9MQttto2Lcn9TwarNqgUcMhu5x/EDZps0vyyC6Tl2exiA+BJs hsvpfzpSQ6igR3sNOikm7PXSivXWvZ+wYd3LexeucEBnZLCLCQqz7ocbcDmmAru8vZd8 xnpMgXSOJYeT5jdF4TsFIR5ju899TOjwuVxGTApN2Zvi3GF/Jf6sckGU2ikcZ3O7r5OY CJHZbbXslxhd6KKfBeMmxvWdKz0mnYN2fVvqXSinvXLv4uiY6HlsqLhRKWHldQJqBoMa CiEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=TZoB8Hc3orExTKpQBRxrIe+jSEsJaRubi5aULqvtA7Y=; b=OtlM90+ChuxtAkX1z4+mgl9TmDMSbNvk7imT84lyCXwKWjrd9iwnabWQTO6QeMweDd Esd0bXagku7IGi/+U4D5aa2S58lP9XxFQ6NAWZPSJnzIpZVj5OXz6/AzJ5bqPAuFgZbt LHQxUKwmHBnYTjrj1rmUR62naLSkK6ZwizlWum/HBpgLoY4dXFbPgevZAquFHfZJzz6F oi8Duu19QjUc2N2DMoPl3mE4PHrwelkTNQJSa2pXIIhuuzsn9bWmeRTGVAH0IZSOFl57 8rPOTK44W1+yGT35j6nj6q6yQZ7hRUXNs15rnuYfH53fXnvnZ4UBRQpERUxF1JsiS879 q3+A== X-Gm-Message-State: AOAM533UhavpFIyScjBrsfqG9z5DBGMkesTfI9m9CnUzFodnNHSYfgOQ UuScM6+8GXtiRISBsUjEPVhmyJW+/xI= X-Google-Smtp-Source: ABdhPJxGKRW0f9WKfTlJV/sGRCVgpSkc/O7wcyQiUmyoLp376N0YcocbHWQZz8r+irfyReoq8W5MNQ== X-Received: by 2002:a50:fe83:0:b0:42a:b5f4:8a52 with SMTP id d3-20020a50fe83000000b0042ab5f48a52mr16923981edt.105.1654355655940; Sat, 04 Jun 2022 08:14:15 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id w21-20020aa7d295000000b0042dd482d0c4sm5541354edq.80.2022.06.04.08.14.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jun 2022 08:14:15 -0700 (PDT) Message-ID: <0f103f8a872fc5b884b734fe71cc4ca5258e39ac.camel@gmail.com> Subject: Re: bug#55657: libgccjit is unusable From: Liliana Marie Prikler To: Tobias Geerinckx-Rice , 55657@debbugs.gnu.org Date: Sat, 04 Jun 2022 17:14:14 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55657 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 (-) Am Samstag, dem 04.06.2022 um 14:25 +0000 schrieb Tobias Geerinckx- Rice: > Meant to include link to > https://github.com/flatwhatson/guix-channel/blob/657da22f0229b978b7bf4e4d476f59f17f6a175f/flat/packages/gcc.scm#L27 >  which is where the majic happens I'm not personally using that channel, but I noticed this issue by trying to adapt that recipe towards master. Now there's a chance that I've made an error in my copypasta game, but I'm pretty sure the current state of libgccjit is not a good one regardless. Cheers From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 27 20:53:31 2022 Received: (at 55657) by debbugs.gnu.org; 28 Jun 2022 00:53:31 +0000 Received: from localhost ([127.0.0.1]:53627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5zTv-0007tq-8g for submit@debbugs.gnu.org; Mon, 27 Jun 2022 20:53:31 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:62273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5zTq-0007tb-QY for 55657@debbugs.gnu.org; Mon, 27 Jun 2022 20:53:30 -0400 Date: Tue, 28 Jun 2022 00:53:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1656377600; x=1656636800; bh=CiDpXkrLI8tyT5nqKnlYFEDyIMPqiCHoHFrMEYVzuoI=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:Feedback-ID:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID; b=Vwd2OGL3jmg6EckC+/XJvdo46u5kanCzLyXMnzQYHhwl8RQ4o0tNSDWbNJdK+sZYA gxjPm32AQdl8Siflc1fVoaTYQwATAuu48VlPmR0LAAG0v3BrroBl8UYFFPVm4Q/JDP wBjofl5UFvIYJ8x8YsmYip/Pwo/mWkdOEP0NwpszMJu5FAIoA7gUlkOBvW5YApdids MrQiR3SMegwMkJfROhYhC+bbF+qv+MzVRChOj2i6bPXRgyy57Gi5GFNtdQptU4WR1m m/vP79+CQAi0+TNSB6/6xjIce4xV3M1ZlUyCwN9Rvo5FcQdz+huDTEXLgdbzS73TOR Qikhaluux2fqA== To: "55657@debbugs.gnu.org" <55657@debbugs.gnu.org> From: John Kehayias Subject: Re: libgccjit is unusable Message-ID: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Andrew Whatson , Tobias Geerinckx-Rice , "remco@remworks.net" , Liliana Marie Prikler 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: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, I currently use the flatwhatson channel (cc'ed on this email, hope that is = okay Andrew!) and it has worked well for Emacs, though never tried anything= else with libgccjit. It would be great to get this upstreamed in Guix, esp= ecially since libgccjit is a beast to build (more than emacs if I remember = correctly). Happy to help test and work on this, let me know anything I can do. Thanks, John From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 28 00:18:06 2022 Received: (at 55657) by debbugs.gnu.org; 28 Jun 2022 04:18:06 +0000 Received: from localhost ([127.0.0.1]:53744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o62ft-0004OJ-VY for submit@debbugs.gnu.org; Tue, 28 Jun 2022 00:18:06 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:38450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o62fq-0004Nn-2g for 55657@debbugs.gnu.org; Tue, 28 Jun 2022 00:18:04 -0400 Received: by mail-ed1-f65.google.com with SMTP id fd6so15769277edb.5 for <55657@debbugs.gnu.org>; Mon, 27 Jun 2022 21:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=bghPscA04VTABPOX0F5s7fSbtXPDAjOtSfKY+YadDWs=; b=UJqLHOWAzkoWktHH53DBkoQrzgfjSCcZ204gh1FlaiQD0CEw8WwzrKCtLDParAi2zT qT33ZU24kKcXeKw99eztNHEpYoNS0gPQAAd5ZYK0DS4gXIqQSBAGoZR2X8480PBbhhmr omvN+nyvj1RB8Q89E5Xl2x1kDtY29Zu52Gt/4XA0C71Q32B9SS5VA+R0M9jItvXt1Fhw ODiPcKPLaTfl7hsIAa6hJNiBHzZkMr4mfqzzY6gxmBLNDEjikA3WnBoYi6jLIX9F9mrw iQ1FkPwlIvY+oKsEVZ2NqoTXeKiqb6Ge6U7/63UssokJ1+du1Q1eEeKYvNbwX8YNKJ1a tIbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=bghPscA04VTABPOX0F5s7fSbtXPDAjOtSfKY+YadDWs=; b=tY8MjIOqhkheZwKwN0ouyNnukhds/VEe/GPlLFvAxqTzWbJ0kqjz7GhW6JroBCvr/s DvBcErcRFEMacOFKI8zG7GOlUpGM5W3O7vZcUKgtNQVfM1dgSQOSoclgJwabkkJT27gr hgPn8LEZrgH1gF+CJY0ly1h+lWQA5B/2ZKVIGzy+4i0kAgafehgmwFoHc9AkJ8gfK3JD 5y3h2n6BW2dG6sEVf+al6Bnq2x8Kz3K1tI5bNVP98rApn8kuf7Z8aDKL9QSi6/mz9RbB bugo4ae5baWXbhXfg7ekQ+o3Nx13IdUoBq0XRW5qd12xFdcikeK0H7drSA6GwnsMS6Dm oCpg== X-Gm-Message-State: AJIora+uCnL/j75Ll4GsIxXhspP7QpDhLzcUfhMAp5viOS8pmIQGQbB1 cBV4feQPuXWO7c8oCXvwIR4= X-Google-Smtp-Source: AGRyM1vAkThOjCRChbfk/czBnQSTxrP45DHNXXcsN0HAu0UK4nBEeLpZ+xf6zzBv9chRAg0/kXQ9Dg== X-Received: by 2002:a05:6402:2397:b0:435:5a96:e0b3 with SMTP id j23-20020a056402239700b004355a96e0b3mr20953527eda.52.1656389876280; Mon, 27 Jun 2022 21:17:56 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id au8-20020a170907092800b00722e19fec6dsm5849322ejc.156.2022.06.27.21.17.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 21:17:55 -0700 (PDT) Message-ID: <67ca146d031c320b484979c6aa5a89b9c9b8472d.camel@gmail.com> Subject: Re: libgccjit is unusable From: Liliana Marie Prikler To: John Kehayias , "55657@debbugs.gnu.org" <55657@debbugs.gnu.org> Date: Tue, 28 Jun 2022 06:17:55 +0200 In-Reply-To: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Andrew Whatson , Tobias Geerinckx-Rice , "remco@remworks.net" 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, Am Dienstag, dem 28.06.2022 um 00:53 +0000 schrieb John Kehayias: > Hello, > > I currently use the flatwhatson channel (cc'ed on this email, hope > that is okay Andrew!) and it has worked well for Emacs, though never > tried anything else with libgccjit. It would be great to get this > upstreamed in Guix, especially since libgccjit is a beast to build > (more than emacs if I remember correctly). Keyword here is "has worked for emacs". I've tried porting the logic from flatwhatson's channel over, but regardless of what I do, it already fails in the configure step of Emacs (in a manner that's reproducible outside as well). Thus, I think this is a bug in libgccjit (or perhaps our packaging of it) that simply happened to be ignored during development of Emacs 28, but no longer in the release. Cheers From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 28 01:16:25 2022 Received: (at 55657) by debbugs.gnu.org; 28 Jun 2022 05:16:25 +0000 Received: from localhost ([127.0.0.1]:53801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o63aL-0005wO-0i for submit@debbugs.gnu.org; Tue, 28 Jun 2022 01:16:25 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:16536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o63aG-0005w0-Qr for 55657@debbugs.gnu.org; Tue, 28 Jun 2022 01:16:23 -0400 Date: Tue, 28 Jun 2022 05:16:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1656393374; x=1656652574; bh=ZCsOtYaaL0XejYBftHdZi2Z73jJdMrTpLZi+rhtzF5o=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=Ch7fgaDO5TBqTmLk1nEJLXbikGYoR86h2QESQ4zdHy4qEmAByfTcdPFRhU8RnN7Rt xr+gUTp5d3rbGbfCKYZ3pR6s4bC7LOnchR/WAsRvOXskbyuN9hzXAQBy+OGz5JVW9C ruXM4Kx+Aa6QkrUcAaHl7ffap7lSD/xF67Dm/K0/AnS4bBs2d4vhOw/onBXYcxw9Qe hbFj6+oOm2m3uiu/uTcZf6UTWZmZyRVwXNeLbpPxdrPJx1DCsD/WA+/d61TxI+IklV jrbzHhTxfIGlh9kmswRQJHsHfo1F04sJ6Wgl2SxnHcUlnx87A07VQOpE3RLpAa8nAL iw1TRAZpydQ1w== To: Liliana Marie Prikler From: John Kehayias Subject: Re: libgccjit is unusable Message-ID: In-Reply-To: <67ca146d031c320b484979c6aa5a89b9c9b8472d.camel@gmail.com> References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <67ca146d031c320b484979c6aa5a89b9c9b8472d.camel@gmail.com> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Andrew Whatson , 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: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, ------- Original Message ------- On Tuesday, June 28th, 2022 at 12:17 AM, Liliana Marie Prikler wrote: > Keyword here is "has worked for emacs". I've tried porting the logic > from flatwhatson's channel over, but regardless of what I do, it > already fails in the configure step of Emacs (in a manner that's > reproducible outside as well). Thus, I think this is a bug in > libgccjit (or perhaps our packaging of it) that simply happened to be > ignored during development of Emacs 28, but no longer in the release. > Sorry, I should be extra clear that I mean has in the past and continues to= work for Emacs. I've been using emacs-pgtk-native-comp through the flatwha= tson channel from well before v28 was released. Currently I'm using emacs-p= gtk-native-comp-28.1.50-223.3ddccb5. Everything has built, installed, and r= un fine for as long as I have been using it. Just in case that was in quest= ion, and as a point of reference. Anyway, I'll try to reproduce when I can (tomorrow likely) what you reporte= d in the first message using this setup, if that is of use. Appreciate the efforts from everyone working on this! John From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 03 17:13:50 2022 Received: (at 55657) by debbugs.gnu.org; 3 Aug 2022 21:13:50 +0000 Received: from localhost ([127.0.0.1]:50159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJLgb-00060z-Pi for submit@debbugs.gnu.org; Wed, 03 Aug 2022 17:13:50 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:41281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJLga-00060j-1K for 55657@debbugs.gnu.org; Wed, 03 Aug 2022 17:13:49 -0400 Date: Wed, 03 Aug 2022 21:13:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1659561221; x=1659820421; bh=P/9+WpT+uw6f+bbgOf5BHadIhm1ZP649NNDues0Ihh8=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=exzppopipxvuEAyBtHSvmwgen5HQhMmJ1hOHpz9nrs6dZpM7NcgfKOvUQTy4P3GK0 jmK0btSm8D2haFR8CDRxVIlCojmRLYbDRqFPePENTZl1P4wiZUQZ0xcw+DV+d1nJw5 Qs3Dn6Kci6Ki7x+Ca+FRNJQLSDvdc/We9139QJYxAiwdvYWXkZHJGUi2hjLitVlAqM hoN6UJT8D7maLHslXu7k+XlnpZZ6tbYKAkROQuvZ3UwQGi+QdEqqeaIOUMMitjbTYs 3QCL4kk1Y5dLa9j17cQaKYDeLorl75MBycgFykdZjNLyf9oJLIKxqq8DV5/s82yzMz 6KJsIH5NZLAog== To: Liliana Marie Prikler From: John Kehayias Subject: Re: libgccjit is unusable Message-ID: In-Reply-To: References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <67ca146d031c320b484979c6aa5a89b9c9b8472d.camel@gmail.com> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Andrew Whatson , 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: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi everyone, Found out some useful info and a work around for the original reported issu= e of the simple "hello world" of gccjit not working. ------- Original Message ------- On Tuesday, June 28th, 2022 at 1:16 AM, John Kehayias wrote: > Hi, > > ------- Original Message ------- > On Tuesday, June 28th, 2022 at 12:17 AM, Liliana Marie Prikler wrote: > > > Keyword here is "has worked for emacs". I've tried porting the logic > > from flatwhatson's channel over, but regardless of what I do, it > > already fails in the configure step of Emacs (in a manner that's > > reproducible outside as well). Thus, I think this is a bug in > > libgccjit (or perhaps our packaging of it) that simply happened to be > > ignored during development of Emacs 28, but no longer in the release. > > > Sorry, I should be extra clear that I mean has in the past and continues = to work for Emacs. I've been using emacs-pgtk-native-comp through the flatw= hatson channel from well before v28 was released. Currently I'm using emacs= -pgtk-native-comp-28.1.50-223.3ddccb5. Everything has built, installed, and= run fine for as long as I have been using it. Just in case that was in que= stion, and as a point of reference. > > Anyway, I'll try to reproduce when I can (tomorrow likely) what you repor= ted in the first message using this setup, if that is of use. > I was able to reproduce the original error, though I used the libgccjit pac= kage from the flatwhatson channel, at v11.3.0 (along with GCC at that versi= on). For good measure, I also used the tutorial at that version, just in ca= se https://gcc.gnu.org/onlinedocs/gcc-11.3.0/jit/intro/tutorial01.html I c= hose this version since that is what emacs-native-comp from that channel is= built with. Searching for these error messages of missing libraries/files, I found https://ref.strikr.io/jit/internals/index.html#environment-variables and a bug report at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87808 I didn't dive into the details and I'm not expert here, but it gave me the = clues to work around it. Seems that where gccjit looks for things has some = assumptions (bugs?) which we can fix at runtime with: LIBRARY_PATH=3D$GUIX_ENVIRONMENT/lib/gcc/x86_64-unknown-linux-gnu/11.3.0:$L= IBRARY_PATH ./gccjittest The errors reported before were solved with this LIBRARY_PATH addition of t= he lib/gcc subdirectory. So, the test program runs in guix shell gcc-toolchain@11 libgccjit@11 --pure where I compiled to gccjittest following the tutorial directions (no change= to LIBRARY_PATH). So, looking at the emacs-native-comp definition in flatwhatson, we can see = that a phase is used to set LIBRARY_PATH before configure just as I did her= e: https://github.com/flatwhatson/guix-channel/blob/master/flat/packages/em= acs.scm#L65 Hope this is helpful and unblocks libgccjit and emacs-native-comp for Guix! John From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 04 00:26:57 2022 Received: (at 55657) by debbugs.gnu.org; 4 Aug 2022 04:26:57 +0000 Received: from localhost ([127.0.0.1]:50742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJSRl-0002mM-81 for submit@debbugs.gnu.org; Thu, 04 Aug 2022 00:26:57 -0400 Received: from mail-ej1-f67.google.com ([209.85.218.67]:34544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJSRh-0002m6-VP for 55657@debbugs.gnu.org; Thu, 04 Aug 2022 00:26:56 -0400 Received: by mail-ej1-f67.google.com with SMTP id tl27so16925756ejc.1 for <55657@debbugs.gnu.org>; Wed, 03 Aug 2022 21:26:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=cCurP3zyWDdG4f++xsiV7Kk/qOt/wvIym2b8/H5dvGI=; b=eEAEvIaRrKcASkr4TGMWCZkUPasxZZIfOMLqBjv9y/mHJRSB2LFTqDKxaWSxRcHVUn cdt3z1QBcXAquBktmYnQ09FuirGvbvGQNIa26VVcnIiLOiA6KPm/Z2VOGwo9v+wtQWa9 N2DtMOq8A5EBz9c4HeT2zL2lKGeNL43slQWbI1d1NMETuhm5Xqu1L7MtsFrln92SDQlf SkQXKZHOZ1JT8P4CpAs4A3x5Iyru7A/nYOzoR6mRbKkFzcztaFk8tVkCmfKCQSALO/1F ChayVeQBjb9p88IkNSw3xV2Qk/IBCtWVEZeJEbR9RO50YInWrWAeiiUoXhCMpAgl/LWr KVIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=cCurP3zyWDdG4f++xsiV7Kk/qOt/wvIym2b8/H5dvGI=; b=U+coe4Lq2oZ730/afUM0t+vDkT5/Ffv8EUha+R/2/U3RBnnKYo66ISHo350LRpBVOv rkvuxjYFZ8vmVCDimDErJU++H2tCX48xfcRoPxN0dI0F8/C5Gm9Vh6tfTqG0cwB2Ia3F iR34HWHjJ0T1XZUoqdef/JLUHpLfrpR2McMuAjOHXY7UjfQMoKLKfqnZm8naArXD96Wc xXuR/tS8MDBhNI545WQtknONJl0GMppL2h5kFsvlTf4vTEgDZxuRwXw6ePRuoOvfVnQa /9D4vo2k3JKE4Vdrq7OICWnErpwOyYgW/1QbhdyJEUUthh9E+1RCi0kHm1xqMCSor9LI uuNQ== X-Gm-Message-State: ACgBeo0qVVmuOlTYLXecM9LUM1TAj00805FRElEnSHzvNluwd/FepwoL BAqZ7lhI5+RRIz9V5thTZos= X-Google-Smtp-Source: AA6agR4lxXSpSfTjj76LDOSVYXajm8Tse0UpEYio67WIkrEyX38xoltZYy2jgTvfoS1Meb6kpB5ltw== X-Received: by 2002:a17:907:2ccb:b0:730:aaca:fc10 with SMTP id hg11-20020a1709072ccb00b00730aacafc10mr6239940ejc.153.1659587207974; Wed, 03 Aug 2022 21:26:47 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id kw19-20020a170907771300b007121361d54asm8012078ejc.25.2022.08.03.21.26.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Aug 2022 21:26:47 -0700 (PDT) Message-ID: Subject: Re: libgccjit is unusable From: Liliana Marie Prikler To: John Kehayias Date: Thu, 04 Aug 2022 06:26:46 +0200 In-Reply-To: References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <67ca146d031c320b484979c6aa5a89b9c9b8472d.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Andrew Whatson , 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, Am Mittwoch, dem 03.08.2022 um 21:13 +0000 schrieb John Kehayias: > I didn't dive into the details and I'm not expert here, but it gave > me the clues to work around it. Seems that where gccjit looks for > things has some assumptions (bugs?) which we can fix at runtime with: > > LIBRARY_PATH=$GUIX_ENVIRONMENT/lib/gcc/x86_64-unknown-linux- > gnu/11.3.0:$LIBRARY_PATH ./gccjittest > > The errors reported before were solved with this LIBRARY_PATH > addition of the lib/gcc subdirectory. So, the test program runs in > > guix shell gcc-toolchain@11 libgccjit@11 --pure > > where I compiled to gccjittest following the tutorial directions (no > change to LIBRARY_PATH). 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? 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 04 12:53:05 2022 Received: (at 55657) by debbugs.gnu.org; 4 Aug 2022 16:53:05 +0000 Received: from localhost ([127.0.0.1]:54541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJe5o-0003hK-Ox for submit@debbugs.gnu.org; Thu, 04 Aug 2022 12:53:05 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:40904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJe5j-0003gk-4C for 55657@debbugs.gnu.org; Thu, 04 Aug 2022 12:53:03 -0400 Received: by mail-ed1-f67.google.com with SMTP id f22so388847edc.7 for <55657@debbugs.gnu.org>; Thu, 04 Aug 2022 09:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=SmVjLJt3XdrpDXF37rWRctE+O6yf8OxgHFZlsuu9DzU=; b=dcILN8zW5N21rOLXQRBsE2LRO1Ej1KdBQzBJL5IIZ2pOUMDMyI+PgMIAw3mnn5ePTb 4R4l2r/+dh2c0Ho1ailTvs6xI4sXIQ2cxRbWgGsjBPrxLmFHldigpp8SJFeGiTtGhBBM PDvloRExu6dElLaJ2u+d2J1cZKtQhpzYZGWQUza8n9oxb2rYUIXtx7eb87D3EMKEnA74 DJVvIwas2ivn2dTz1tXo9jv7tfazqO360k45aDgtkiEGyApNiodF0ALigo4uW5LQ1Xii x3fNTSrgmuEaFC8iYRPGjnYPtEpbNxkTroTLZfj6UtTorFaCmWfLIBSfMBLpMTpG0fcM e6ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=SmVjLJt3XdrpDXF37rWRctE+O6yf8OxgHFZlsuu9DzU=; b=fjPCxcqbqZ3SQiFKXmhgVvdGQURHY7qL0N3jW/VE9qLrzWADoPvKU1wG7FrMgzo0kO 2/JiI1q6GVCAl/GPFx7HfzxSMKJkRnWXm8VBzzkYE8+yaoFtyrsjreeGPouj2oD1Pm0+ eScC4LHI/5Zleqxlzkfcpw+GvlnU8A8IkT7xDua07kxLcD+zyHZc5hMgierJJt+A6whA +fZilTfQ8u6iulRUCCF/PNekes5Q1w+7dxzbgtUA60rC1I3fVVQyTHxpXaFTOn4Vz8un NPrxglJIySVmN0zq5mhaC0yuHyROwfqwmTcnyHC8Fi5Rr+LYxNwtUebImo7F6zOtidTu sO8Q== X-Gm-Message-State: ACgBeo1B3HYpWb7fD5zsQHjZ7pJ/myso77iR4FNtYqK24s8wU6uLprQ5 jm7yQelotkwPiIpb0KJAVas= X-Google-Smtp-Source: AA6agR70svSUgwRFqDO1mt49gEYNACiFcO4J6kzSASfZ10xBU8D+DktsSc1qlr27/agdsEMCQyUOwg== X-Received: by 2002:aa7:dbca:0:b0:43e:6707:d298 with SMTP id v10-20020aa7dbca000000b0043e6707d298mr2949267edt.133.1659631973142; Thu, 04 Aug 2022 09:52:53 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id z7-20020a50cd07000000b0043bea0a48d0sm905061edi.22.2022.08.04.09.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 09:52:52 -0700 (PDT) Message-ID: Subject: Re: libgccjit is unusable From: Liliana Marie Prikler To: Andrew Whatson Date: Thu, 04 Aug 2022 18:52:51 +0200 In-Reply-To: References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <67ca146d031c320b484979c6aa5a89b9c9b8472d.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 (-) Am Donnerstag, dem 04.08.2022 um 04:48 +0000 schrieb Andrew Whatson: > 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? But if I read your recipe correctly, you're not resolving %host-type in those options. Does that really suffice? From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 04 21:00:16 2022 Received: (at 55657) by debbugs.gnu.org; 5 Aug 2022 01:00:16 +0000 Received: from localhost ([127.0.0.1]:55359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJlhH-00025H-Tf for submit@debbugs.gnu.org; Thu, 04 Aug 2022 21:00:16 -0400 Received: from mail-vs1-f50.google.com ([209.85.217.50]:35468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJlhG-00024z-HJ for 55657@debbugs.gnu.org; Thu, 04 Aug 2022 21:00:15 -0400 Received: by mail-vs1-f50.google.com with SMTP id k129so1155313vsk.2 for <55657@debbugs.gnu.org>; Thu, 04 Aug 2022 18:00:14 -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=hkwUGWUsDg+0yGN8G+5tTauZepdfqNMUBjm/1QtJlCc=; b=TFqY+e4mGRH+TfYvfY+HUet2M0zSms9ZUhnWitlNlZhWWunR/EzlkBez1t3hw+TDE0 J7Eio762zepFr4SoE4Ud3VUO1PlK2yQfpHTzoBaodb88nAy41zdvuTTpZI8RoIlHb7nW le/ReFSn7guFlYbtvE7xF7m/d39m3SyZjsytTM3VHvrux7OcEmS2yIurgcvZmeWzU+4l JvOMotH7+biPSbQzawjDZA22JnWXFKvyU6KtXdVwHiyqXAnYs2fxEo7qizByTUBQELXG YISyEbZC/+ih4IceqaC9yU7eRTl5NLyV6cqCoYyuT8VHjTCOc4LueAfLjT1EpHRydZ4L xTlw== 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=hkwUGWUsDg+0yGN8G+5tTauZepdfqNMUBjm/1QtJlCc=; b=obwjMgyJklMSkJm+GAA5TQM/2lrMRpaG/l2Ci74IX8oNwp20eg3sh+woLbo8GZrepE FfMJHGJDu9jJIKtrUEN74qSA6glCGlZcKk5vgFMo/SVC7PFv+8ZUZHlhiRPd4MuHHrL0 BdNh09S4Q+cM5GUaU0eamNK5c0VM1iQxVExG/94j4z02wxg23lwUGOdxqnet1QwHWwIR +techeuxpgSKJTuIcppzsSHz2dbfVtwu/M7OJfKocqGHwsJPN4zyyrM/M5ukRBu8C3d7 entU54bmxFlY3B9S8RSlzxpOJvwXXat92HGWcBQ8cS71MB2ZBYsSI4mR73jMu4n0kkXp eRJw== X-Gm-Message-State: ACgBeo0ubkfPM819j1nhdODPvbCuGCrGlWcnOjnYRTjC4xedA1Fi9+Qw PqFKsMLNyJxIZQiOMy8UArkjiopSxLW/ogku3Ks= X-Google-Smtp-Source: AA6agR7/C1YlCjqD8He7nWs48+kUOzLoc+bwC8P2h+03qwKKyPJfFf6rVpjNr3M0pzpc26rOBv+IWcnbUcNH043fM8U= X-Received: by 2002:a67:efd6:0:b0:388:4860:9bda with SMTP id s22-20020a67efd6000000b0038848609bdamr2191275vsp.46.1659661208899; Thu, 04 Aug 2022 18:00:08 -0700 (PDT) MIME-Version: 1.0 References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <67ca146d031c320b484979c6aa5a89b9c9b8472d.camel@gmail.com> In-Reply-To: From: Andrew Whatson Date: Fri, 5 Aug 2022 00:59:57 +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 (-) On Thu, 4 Aug 2022 at 16:52, Liliana Marie Prikler wrote: > > > 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? > > But if I read your recipe correctly, you're not resolving %host-type in > those options. Does that really suffice? Ah, yes that is a little confusing. This is a quirk of the different behaviour of the LIBRARY_PATH environment variable and the -B flag to gcc. I recommend reading about "-Bprefix" in `man gcc`, but in short it tries those paths with and without "machine/version" appended for the target machine and compiler version. We *could* hard-code those, but it isn't necessary, and it seemed like that might cause problems if someone's brave enough to attempt cross-compilation of native-comp emacs. A major benefit of patching "comp.el" directly is that it avoids leaking gcc into the user's environment. It's possible that someone is running emacs in a profile with a specific version of gcc, maybe without libgccjit support (eg. while hacking on some legacy code), so having emacs insist on a libgccjit-compatible gcc present in the environment at runtime would cause lots of problems. The other important bit is the libgccjit package. The one in guix mainline works fine, it should be possible to get a working libgccjit as-is. I updated the package definition on my channel for the following reasons: a) Support newer gcc versions While developing native-comp support for emacs, Andrea found and fixed some libgccjit bugs which made their way into subsequent releases of gcc. The native-comp library includes work-arounds for these problems, but produces faster/smaller code with a fresher libgccjit. b) Reduce compilation time The definition in guix is basically the standard gcc build, but with libgccjit also enabled. This results in an arduous double-bootstrap and building a bunch of compilers and libraries that are completely unnecessary and unused by libgccjit. I've disabled all the unnecessary stuff and depend on the main gcc package to build libgccjit, relying on the fact that it's already properly bootstrapped. It's much quicker to build, which is important if you don't have substitutes. Hope this helps, Andrew From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 05 14:44:45 2022 Received: (at 55657) by debbugs.gnu.org; 5 Aug 2022 18:44:45 +0000 Received: from localhost ([127.0.0.1]:60582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oK2JQ-0006rW-RU for submit@debbugs.gnu.org; Fri, 05 Aug 2022 14:44:45 -0400 Received: from mail-ej1-f68.google.com ([209.85.218.68]:36589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oK2JN-0006rF-Ms for 55657@debbugs.gnu.org; Fri, 05 Aug 2022 14:44:43 -0400 Received: by mail-ej1-f68.google.com with SMTP id m4so6512565ejr.3 for <55657@debbugs.gnu.org>; Fri, 05 Aug 2022 11:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=ObrZxY9PVBNjqOA/6Dqy/nlLnNwzuHjPjgtVlSM80Vc=; b=AZbyKjaaf1zgorMeeUXwUwlDrWoS+k6o2MjsBb4ezMt0VVhAEf/d55oobsiATwAYk2 Kko0bxsv3EXVoB4EDp6tv8/j1ssitExaaPVYeDpiVuRl2d9PScwZVuoLaFJgMyJizIx9 FzvR8XSvU63dUPU7qoyKeZdTf8khthf+yz4LgyfF03uz3Zuu52hmSqYahrAvT6+9vSb6 fl8e1R1dVUpEwjGHylcX/BFdGUElFlkmQ7HxS8iY8rwOI9UzTqnGO5DjMWINNgZmqLrG ett/GCoetqMiz3IDq1chvAF2cFtIlSvPrf6DomtMkrNL3/z9TOZb/hZ46awzCja1Z0tP 0kyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=ObrZxY9PVBNjqOA/6Dqy/nlLnNwzuHjPjgtVlSM80Vc=; b=cQWKla8lqMgTc/XXW8IdAAfrPu69KuVK8qnMdVJDNg+FHLcB1OQkhSvAInjnEvNUtS F+Ts3ipkmOyEpg/ykPgHmVrEieAMP8rAcXORIzxnNq8LikGhgJObG0BmhDcGfDMHeVUN JnskZ3q1dsZHHDtJnvAp/S8Fx9k6vfvS1SvPyv93KL2a0BtrTvSrJEY77Lkvlt212wiA LIf2joYyqa7Ag5d5L7q8s74GqZyyQG7KqEo2948SIsYcDQNpeBbLXfK65gTN5BnnRoIM G1Sh1skjeljqOpEq9XT+fWsuicW1mVDTO/Ld99ZagOS9sGEw2TWXUFVSbWKGsHhpFX7t KuMg== X-Gm-Message-State: ACgBeo1A5mXSci4fgiVd+6syO+XrrGhsSfJI91asr+1NcYKM5gFiKlus sbaDxSET1FthY+DGAa+vPRU= X-Google-Smtp-Source: AA6agR6QN2mkizm6krkEGOzOY69xZmjIKWup8/Q+jq2h1GzT6/jx40/o8HZZwT9HosoncW3ppqj9Kg== X-Received: by 2002:a17:907:2724:b0:730:d36c:d5f6 with SMTP id d4-20020a170907272400b00730d36cd5f6mr6287816ejl.277.1659725075583; Fri, 05 Aug 2022 11:44:35 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id t5-20020a170906268500b0072f5c1f05a4sm1859995ejc.44.2022.08.05.11.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 11:44:35 -0700 (PDT) Message-ID: <65497ff154c8bed606d30e5a367e8f17b1a53cc7.camel@gmail.com> Subject: Re: libgccjit is unusable From: Liliana Marie Prikler To: Andrew Whatson Date: Fri, 05 Aug 2022 20:44:33 +0200 In-Reply-To: References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <67ca146d031c320b484979c6aa5a89b9c9b8472d.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 (-) Am Freitag, dem 05.08.2022 um 00:59 +0000 schrieb Andrew Whatson: > On Thu, 4 Aug 2022 at 16:52, Liliana Marie Prikler > wrote > > But if I read your recipe correctly, you're not resolving %host- > > type in those options.  Does that really suffice? > > Ah, yes that is a little confusing.  This is a quirk of the different > behaviour of the LIBRARY_PATH environment variable and the -B flag to > gcc. > > I recommend reading about "-Bprefix" in `man gcc`, but in short it > tries those paths with and without "machine/version" appended for the > target machine and compiler version.  We *could* hard-code those, but > it isn't necessary, and it seemed like that might cause problems if > someone's brave enough to attempt cross-compilation of native-comp > emacs. Fair enough. The compiler driver does not appear to be the failing part anyway, though given the status quo I can't exactly claim it is not failing. > The other important bit is the libgccjit package.  The one in guix > mainline works fine, it should be possible to get a working libgccjit > as-is.   >From my own experience, I doubt that. Read also the thread title. > I updated the package definition on my channel for the following > reasons: > > a) Support newer gcc versions > > While developing native-comp support for emacs, Andrea found and > fixed some libgccjit bugs which made their way into subsequent > releases of gcc.  The native-comp library includes work-arounds for > these problems, but produces faster/smaller code with a fresher > libgccjit. > > b) Reduce compilation time > > The definition in guix is basically the standard gcc build, but with > libgccjit also enabled.  This results in an arduous double-bootstrap > and building a bunch of compilers and libraries that are completely > unnecessary and unused by libgccjit.  I've disabled all the > unnecessary stuff and depend on the main gcc package to build > libgccjit, relying on the fact that it's already properly > bootstrapped.  It's much quicker to build, which is important if you > don't have substitutes. > > Hope this helps, > Andrew I actually am at a loss, so instead of referring to your code, I shall share mine. Note that, style aside, it should actually perform the same steps as yours, but fails to do so. I also tried adding the unversioned lib directory to LIBRARY_PATH and setting LD_LIBRARY_PATH to little fanfare. Whatever I do, it seems configure wants to smoke a different joint. Cheers ;; gcc.scm (define-public (make-libgccjit gcc) (package (inherit gcc) (name "libgccjit") (outputs (delete "lib" (package-outputs gcc))) (properties (alist-delete 'hidden? (package-properties gcc))) (arguments (substitute-keyword-arguments (package-arguments gcc) ((#:modules _ '()) '((guix build gnu-build-system) (guix build utils) (ice-9 regex) (srfi srfi-1) (srfi srfi-26))) ((#:configure-flags flags) #~(cons* "--disable-bootstrap" "--disable-libatomic" "--disable-libgomp" "--disable-libquadmath" "--disable-libssp" "--enable-host-shared" "--enable-languages=jit" (remove (cut string-match "--enable-languages.*" <>) #$flags))) ((#:phases phases) #~(modify-phases #$phases (add-after 'install 'remove-broken-or-conflicting-files (lambda* (#:key outputs #:allow-other-keys) (for-each delete-file (find-files (string-append (assoc-ref outputs "out") "/bin") ".*(c\\+\\+|cpp|g\\+\\+|gcov|gcc|gcc- .*)")))))))) (inputs (modify-inputs (package-inputs gcc) (delete "libstdc++"))) (native-inputs (modify-inputs (package-native-inputs gcc) (prepend gcc))) (synopsis "GCC library generating machine code on-the-fly at runtime") (description "This package is part of the GNU Compiler Collection and provides an embeddable library for generating machine code on-the-fly at runtime. This shared library can then be dynamically-linked into bytecode interpreters and other such programs that want to generate machine code on-the-fly at run-time. It can also be used for ahead-of-time code generation for building standalone compilers. The just-in-time (jit) part of the name is now something of a misnomer."))) (define-public libgccjit-9 (make-libgccjit gcc-9)) (define-public libgccjit-10 (make-libgccjit gcc-10)) (define-public libgccjit-11 (make-libgccjit gcc-11)) (define-public libgccjit-12 (make-libgccjit gcc-12)) (define-public libgccjit libgccjit-10) ;; emacs.scm (define-public emacs (package (name "emacs") (version "28.1") (source (origin (method url-fetch) (uri (string-append "mirror://gnu/emacs/emacs-" version ".tar.xz")) (sha256 (base32 "1qbmmmhnjhn4lvzsnyk7l5ganbi6wzbm38jc1a7hhyh3k78b7c98")) (patches (search-patches "emacs-exec-path.patch" "emacs-fix-scheme-indent- function.patch" "emacs-source-date- epoch.patch")) (modules '((guix build utils))) (snippet '(with-directory-excursion "lisp" ;; Delete the bundled byte-compiled elisp files and generated ;; autoloads. (for-each delete-file (append (find-files "." "\\.elc$") (find-files "." "loaddefs\\.el$") (find-files "eshell" "^esh- groups\\.el$"))) ;; Make sure Tramp looks for binaries in the right places on ;; remote Guix System machines, where 'getconf PATH' returns ;; something bogus. (substitute* "net/tramp.el" ;; Patch the line after "(defcustom tramp-remote- path". (("\\(tramp-default-remote-path") (format #f "(tramp-default-remote-path ~s ~s ~s ~s " "~/.guix-profile/bin" "~/.guix- profile/sbin" "/run/current-system/profile/bin" "/run/current-system/profile/sbin"))) ;; Make sure Man looks for C header files in the right ;; places. (substitute* "man.el" (("\"/usr/local/include\"" line) (string-join (list line "\"~/.guix-profile/include\"" "\"/var/guix/profiles/system/profile/include\"") " "))))))) (build-system glib-or-gtk-build-system) (arguments (list #:tests? #f ; no check target #:modules `((guix build glib-or-gtk-build-system) (guix build utils) (srfi srfi-1) (ice-9 ftw)) #:configure-flags #~(list "--with-modules" "--with-cairo" "--with-native-compilation" "--disable-build-details") #:make-flags #~(list "NATIVE_FULL_AOT=1") #:phases #~(modify-phases %standard-phases (add-after 'set-paths 'set-libgccjit-path (lambda* (#:key inputs #:allow-other-keys) (define (first-subdirectory/absolute directory) (let ((files (scandir directory (lambda (file) (and (not (member file '("." ".."))) (file-is-directory? (string-append directory "/" file))))))) (and (not (null? files)) (string-append directory "/" (car files))))) (let* ((libgccjit-libdir (first-subdirectory/absolute ;; version (first-subdirectory/absolute ;; host type (search-input-directory inputs "lib/gcc"))))) (setenv "LIBRARY_PATH" (string-append libgccjit-libdir ":" (getenv "LIBRARY_PATH")))))) (add-after 'unpack 'enable-elogind (lambda _ (substitute* "configure.ac" (("libsystemd") "libelogind")) (when (file-exists? "configure") (delete-file "configure")))) (add-after 'unpack 'patch-program-file-names (lambda* (#:key inputs #:allow-other-keys) (substitute* '("src/callproc.c" "lisp/term.el" "lisp/htmlfontify.el" "lisp/textmodes/artist.el" "lisp/progmodes/sh-script.el") (("\"/bin/sh\"") (format #f "~s" (search-input-file inputs "/bin/sh")))) (substitute* "lisp/doc-view.el" (("\"(gs|dvipdf|ps2pdf|pdftotext)\"" all what) (let ((replacement (false-if-exception (search-input-file inputs (string-append "/bin/" what))))) (if replacement (string-append "\"" replacement "\"") all)))) ;; match ".gvfs-fuse-daemon-real" and ".gvfsd-fuse-real" ;; respectively when looking for GVFS processes. (substitute* "lisp/net/tramp-gvfs.el" (("\\(tramp-compat-process-running-p \"(.*)\"\\)" all process) (format #f "(or ~a (tramp-compat-process-running-p ~s))" all (string-append "." process "-real")))))) (add-after 'unpack 'patch-compilation-driver (lambda _ (substitute* "lisp/emacs-lisp/comp.el" (("\\(defcustom native-comp-driver-options nil") (format #f "(defcustom native-comp-driver-options '(~s ~s ~s ~s)" (string-append "-B" #$(this-package-input "binutils") "/bin/") (string-append "-B" #$(this-package-input "glibc") "/lib/") (string-append "-B" #$(this-package-input "libgccjit") "/lib/") (string-append "-B" #$(this-package-input "libgccjit") "/lib/gcc/")))))) (add-before 'configure 'fix-/bin/pwd (lambda _ ;; Use `pwd', not `/bin/pwd'. (substitute* (find-files "." "^Makefile\\.in$") (("/bin/pwd") "pwd")))) (add-after 'install 'install-site-start ;; Use 'guix-emacs' in "site-start.el", which is used autoload the ;; Elisp packages found in EMACSLOADPATH. (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (lisp-dir (string-append out "/share/emacs/site- lisp")) (emacs (string-append out "/bin/emacs"))) ;; This is duplicated from emacs-utils to prevent coupling. (define* (emacs-byte-compile-directory dir) (let ((expr `(progn (setq byte-compile-debug t) (byte-recompile-directory (file-name-as-directory ,dir) 0 1)))) (invoke emacs "--quick" "--batch" (format #f "--eval=~s" expr)))) (copy-file #$(local-file (search-auxiliary-file "emacs/guix- emacs.el")) (string-append lisp-dir "/guix-emacs.el")) (with-output-to-file (string-append lisp-dir "/site- start.el") (lambda () (display (string-append "(when (require 'guix-emacs nil t)\n" " (guix-emacs-autoload-packages)\n" " (advice-add 'package-load-all-descriptors" " :after #'guix-emacs-load-package- descriptors))")))) ;; Remove the extraneous subdirs.el file, as it causes Emacs to ;; add recursively all the the sub-directories of a profile's ;; share/emacs/site-lisp union when added to EMACSLOADPATH, ;; which leads to conflicts. (delete-file (string-append lisp-dir "/subdirs.el")) ;; Byte compile the site-start files. (emacs-byte-compile-directory lisp-dir)))) (add-after 'glib-or-gtk-wrap 'restore-emacs-pdmp ;; restore the dump file that Emacs installs somewhere in ;; libexec/ to its original state (lambda* (#:key outputs target #:allow-other-keys) (let* ((libexec (string-append (assoc-ref outputs "out") "/libexec")) ;; each of these ought to only match a single file, ;; but even if not (find-files) sorts by string<, ;; so the Nth element in one maps to the Nth element of ;; the other (pdmp (find-files libexec "\\.pdmp$")) (pdmp-real (find-files libexec "\\.pdmp-real$"))) (for-each rename-file pdmp-real pdmp)))) (add-after 'glib-or-gtk-wrap 'strip-double-wrap (lambda* (#:key outputs #:allow-other-keys) ;; Directly copy emacs-X.Y to emacs, so that it is not wrapped ;; twice. This also fixes a minor issue, where WMs would not be ;; able to track emacs back to emacs.desktop. (with-directory-excursion (assoc-ref outputs "out") (copy-file (car (find-files "bin" "^emacs-([0-9]+\\.)+[0-9]+$")) "bin/emacs")))) (add-after 'strip-double-wrap 'wrap-emacs-paths (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (lisp-dirs (find-files (string-append out "/share/emacs") "^lisp$" #:directories? #t))) (for-each (lambda (prog) (wrap-program prog ;; emacs-next and variants rely on uname being in PATH for ;; Tramp. Tramp paths can't be hardcoded, because they ;; need to be portable. `("PATH" suffix ,(map dirname (list (search-input-file inputs "/bin/gzip") ;; for coreutils (search-input-file inputs "/bin/yes")))) `("EMACSLOADPATH" suffix ,lisp-dirs))) (find-files (string-append out "/bin") ;; Matches versioned and unversioned emacs binaries. ;; We don't patch emacsclient, because it takes its ;; environment variables from emacs. ;; Likewise, we don't need to patch helper binaries ;; like etags, ctags or ebrowse. "^emacs(-[0-9]+(\\.[0-9]+)*)?$")))))))) (inputs (list gnutls ncurses ;; For native compilation binutils glibc libgccjit ;; Required for "core" functionality, such as dired and compression. coreutils gzip ;; Avoid Emacs's limited movemail substitute that retrieves POP3 ;; email only via insecure channels. ;; This is not needed for (modern) IMAP. mailutils gpm libx11 gtk+ cairo pango harfbuzz libxft libtiff giflib lcms libjpeg-turbo libselinux acl jansson gmp ghostscript poppler elogind ;; When looking for libpng `configure' links with `-lpng - lz', so we ;; must also provide zlib as an input. libpng zlib (if (target-x86-64?) librsvg-bootstrap librsvg-2.40) libxpm libxml2 libice libsm alsa-lib dbus ;; multilingualization support libotf m17n-lib)) (native-inputs (list autoconf pkg-config texinfo)) (native-search-paths (list (search-path-specification (variable "EMACSLOADPATH") (files '("share/emacs/site-lisp"))) (search-path-specification (variable "INFOPATH") (files '("share/info"))))) (home-page "https://www.gnu.org/software/emacs/") (synopsis "The extensible, customizable, self-documenting text editor") (description "GNU Emacs is an extensible and highly customizable text editor. It is based on an Emacs Lisp interpreter with extensions for text editing. Emacs has been extended in essentially all areas of computing, giving rise to a vast array of packages supporting, e.g., email, IRC and XMPP messaging, spreadsheets, remote server editing, and much more. Emacs includes extensive documentation on all aspects of the system, from basic editing to writing large Lisp programs. It has full Unicode support for nearly all human languages.") (license license:gpl3+))) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 05 16:01:57 2022 Received: (at 55657) by debbugs.gnu.org; 5 Aug 2022 20:01:58 +0000 Received: from localhost ([127.0.0.1]:60624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oK3W9-0000R5-Lr for submit@debbugs.gnu.org; Fri, 05 Aug 2022 16:01:57 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:56483) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oK3W3-0000Qp-G0 for 55657@debbugs.gnu.org; Fri, 05 Aug 2022 16:01:55 -0400 Date: Fri, 05 Aug 2022 20:01:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1659729704; x=1659988904; bh=5M6zoaGZdWVhRHLoPe79bN0MQlTtat75n29d5NhBVjk=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=wxq7xvrIhIwfTRWWzE07cy867JtyHh7mYcxElFyF3C+EVQekQpJB/HQa2oVWZlpjg VQ8Xi4rTgR6o57S6cLhC5rsiLacCtby0UPuBkWI7vGZHLrAA6wrsTi4AgDA8P24QeD 4xJwy5uJh63A9ez46CyS0NfCIWbeOrvcNn9UAdI3WNN3dLfbGsdAR9NeD8gpMoNm1d dIr9sogVfd1MRyHOaJr5DA6lAArs5sCPsbi1wnCEXBoyW+42lJsCdlhLnIQ7q8B7dh kZB6pbP8aFYs88KePmLvWRGXOCoq+a3npMCTQPcnX3O0tjiOHPpN1TKIraITPe5kh8 YB0BH7AA0D8Lg== To: Liliana Marie Prikler From: John Kehayias Subject: Re: libgccjit is unusable Message-ID: In-Reply-To: <65497ff154c8bed606d30e5a367e8f17b1a53cc7.camel@gmail.com> References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <67ca146d031c320b484979c6aa5a89b9c9b8472d.camel@gmail.com> <65497ff154c8bed606d30e5a367e8f17b1a53cc7.camel@gmail.com> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Andrew Whatson , 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: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Looks like the code you sent got line wrapped and I couldn't easily untangl= e it. The difference that pops out to me is how you are locating the lib/gc= c directory, is it maybe picking up from the build system rather than libgc= cjit? (though I think gcc:lib should be the same here, but not gcc-toolchai= n) In any event, I just want to reiterate that the libgccjit and emacs-native-= comp from Andrew's channel does indeed work: it compiles, runs, and does na= tive compilations successfully. So hopefully we've narrowed down now that t= here is some difference in the code you tried and from Andrew's that is lea= ding to different behavior. John From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 05 17:31:52 2022 Received: (at 55657) by debbugs.gnu.org; 5 Aug 2022 21:31:52 +0000 Received: from localhost ([127.0.0.1]:60660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oK4v9-0002hH-Um for submit@debbugs.gnu.org; Fri, 05 Aug 2022 17:31:52 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:40609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oK4v5-0002gy-QO for 55657@debbugs.gnu.org; Fri, 05 Aug 2022 17:31:50 -0400 Received: by mail-ed1-f67.google.com with SMTP id f22so4850308edc.7 for <55657@debbugs.gnu.org>; Fri, 05 Aug 2022 14:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version; bh=7rYuQS15OxJ6EyloJhfZ5ITqEUlOgJISY9m14NdzJzU=; b=Q5DXoaIoACRCquiuETNKA+Am4AEQaa7CEJnl/tkwHqGE8qqLxUIg9c5N8RMTLyxRRt bhs8Ed3miBCeOZU0J06EEqaCtFxVPe5NpGPCa7CCUeJcwxqsS+YKXaEBhJUVJj+22b5d fyYLUfK6L5uTnNt66Kf4NrUdD9P+YG1HzCTdRO/ZThV4Z/iw6lFYVIaPeFgREYWkhvaT MHGUTMQa+dgGD08/N5w6RbJLoipqmzwgkniGEGcIRT8P8IynNM81tKpucrSlB3yzfuYu D26SYRGDCe3tgF01x9poJZEtBGwkq71dObJLtFs4EbKWEDE2Z5tHBqtOUVEpFHB5/LeV ZaWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version; bh=7rYuQS15OxJ6EyloJhfZ5ITqEUlOgJISY9m14NdzJzU=; b=4n8jtD+MOkrQHzA18Q1hbwppZZqXX785w8/Gr7TQI8FSpltPnj0bRPICfYwbFiIEwR Y50JxzyYBt1ZbYrGwOUC2h3tVs9qcYKodVxCZoRx6lu1iDJH0m+m1DtuhdS35xq2XWjN gAU+EL2lelqW9yQL3viVILBQSCVBcituZEWRMWPwpooaT7gL9nVoch54PwdkUFeHMu7o fGUn+HFfQW/ScSYw7KMr9k4+E/S7f0UwHOkufqwZoTizqpHeTnJ3o9DF7G3UXiaZmaWV bMhZPBmLJtVrNPM6+JoBVL52aH+Y9xJ/YTW1KoGU8iCQ/7LKYa8hxJTyiL9UXM1h3qbi H9Jw== X-Gm-Message-State: ACgBeo0NI5NjqCiAq4EMzorYKI8er8WU3YEYFIsmfZqNchl9b2/m3zcE Us40rA9qWjOyKSaUcDU9B+s= X-Google-Smtp-Source: AA6agR7N0UOOnVbrMnOeuDtQo+7HZyDSACrDD5NEJsAeOO8thioo9lvbI0U5XJB8juqSE/Pl/illqQ== X-Received: by 2002:a05:6402:11d1:b0:43e:33b:93fa with SMTP id j17-20020a05640211d100b0043e033b93famr8299414edw.419.1659735101828; Fri, 05 Aug 2022 14:31:41 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id k7-20020a17090632c700b0072af102e65csm1980426ejk.152.2022.08.05.14.31.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 14:31:41 -0700 (PDT) Message-ID: <1df52a98b3eaf5e49bbbef852dd33d188b16f757.camel@gmail.com> Subject: Re: libgccjit is unusable From: Liliana Marie Prikler To: John Kehayias Date: Fri, 05 Aug 2022 23:31:40 +0200 In-Reply-To: References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <67ca146d031c320b484979c6aa5a89b9c9b8472d.camel@gmail.com> <65497ff154c8bed606d30e5a367e8f17b1a53cc7.camel@gmail.com> Content-Type: multipart/mixed; boundary="=-TDzpsblMF56g7ay5Mvxt" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Andrew Whatson , 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 (-) --=-TDzpsblMF56g7ay5Mvxt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Am Freitag, dem 05.08.2022 um 20:01 +0000 schrieb John Kehayias: > Hi, > > Looks like the code you sent got line wrapped and I couldn't easily > untangle it. The difference that pops out to me is how you are > locating the lib/gcc directory, is it maybe picking up from the build > system rather than libgccjit? (though I think gcc:lib should be the > same here, but not gcc-toolchain) No: /gnu/store/640hfpr069hvqv9gcs0ayq0is21zfii6-libgccjit- 10.3.0/lib/gcc/x86_64-unknown-linux-gnu/10.3.0 > In any event, I just want to reiterate that the libgccjit and emacs- > native-comp from Andrew's channel does indeed work: it compiles, > runs, and does native compilations successfully. So hopefully we've > narrowed down now that there is some difference in the code you tried > and from Andrew's that is leading to different behavior. The style changes are not the only thing at play here, though. In particular, I am trying to build Emacs 28.1, whereas Andrew builds other versions, though notably the newest one ought to include the smoke test. You could also try other combinations for libgccjit and gcc to see if those make a difference – last time I tried it did not. Attached the definitions as a file this time. Cheers --=-TDzpsblMF56g7ay5Mvxt Content-Disposition: attachment; filename="emacs-native-comp-merged.scm" Content-Type: text/x-scheme; name="emacs-native-comp-merged.scm"; charset="UTF-8" Content-Transfer-Encoding: base64 OzsgZ2NjLnNjbQoKKGRlZmluZS1wdWJsaWMgKG1ha2UtbGliZ2Njaml0IGdjYykKICAocGFja2Fn ZQogICAgKGluaGVyaXQgZ2NjKQogICAgKG5hbWUgImxpYmdjY2ppdCIpCiAgICAob3V0cHV0cyAo ZGVsZXRlICJsaWIiIChwYWNrYWdlLW91dHB1dHMgZ2NjKSkpCiAgICAocHJvcGVydGllcyAoYWxp c3QtZGVsZXRlICdoaWRkZW4/IChwYWNrYWdlLXByb3BlcnRpZXMgZ2NjKSkpCiAgICAoYXJndW1l bnRzCiAgICAgKHN1YnN0aXR1dGUta2V5d29yZC1hcmd1bWVudHMgKHBhY2thZ2UtYXJndW1lbnRz IGdjYykKICAgICAgICgoIzptb2R1bGVzIF8gJygpKQogICAgICAgICcoKGd1aXggYnVpbGQgZ251 LWJ1aWxkLXN5c3RlbSkKICAgICAgICAgIChndWl4IGJ1aWxkIHV0aWxzKQogICAgICAgICAgKGlj ZS05IHJlZ2V4KQogICAgICAgICAgKHNyZmkgc3JmaS0xKQogICAgICAgICAgKHNyZmkgc3JmaS0y NikpKQogICAgICAgKCgjOmNvbmZpZ3VyZS1mbGFncyBmbGFncykKICAgICAgICAjfihjb25zKiAi LS1kaXNhYmxlLWJvb3RzdHJhcCIKICAgICAgICAgICAgICAgICAiLS1kaXNhYmxlLWxpYmF0b21p YyIKICAgICAgICAgICAgICAgICAiLS1kaXNhYmxlLWxpYmdvbXAiCiAgICAgICAgICAgICAgICAg Ii0tZGlzYWJsZS1saWJxdWFkbWF0aCIKICAgICAgICAgICAgICAgICAiLS1kaXNhYmxlLWxpYnNz cCIKICAgICAgICAgICAgICAgICAiLS1lbmFibGUtaG9zdC1zaGFyZWQiCiAgICAgICAgICAgICAg ICAgIi0tZW5hYmxlLWxhbmd1YWdlcz1qaXQiCiAgICAgICAgICAgICAgICAgKHJlbW92ZSAoY3V0 IHN0cmluZy1tYXRjaCAiLS1lbmFibGUtbGFuZ3VhZ2VzLioiIDw+KQogICAgICAgICAgICAgICAg ICAgICAgICAgIyRmbGFncykpKQogICAgICAgKCgjOnBoYXNlcyBwaGFzZXMpCiAgICAgICAgI34o bW9kaWZ5LXBoYXNlcyAjJHBoYXNlcwogICAgICAgICAgICAoYWRkLWFmdGVyICdpbnN0YWxsICdy ZW1vdmUtYnJva2VuLW9yLWNvbmZsaWN0aW5nLWZpbGVzCiAgICAgICAgICAgICAgKGxhbWJkYSog KCM6a2V5IG91dHB1dHMgIzphbGxvdy1vdGhlci1rZXlzKQogICAgICAgICAgICAgICAgKGZvci1l YWNoIGRlbGV0ZS1maWxlCiAgICAgICAgICAgICAgICAgICAgICAgICAgKGZpbmQtZmlsZXMKICAg ICAgICAgICAgICAgICAgICAgICAgICAgKHN0cmluZy1hcHBlbmQgKGFzc29jLXJlZiBvdXRwdXRz ICJvdXQiKSAiL2JpbiIpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICIuKihjXFwrXFwrfGNw cHxnXFwrXFwrfGdjb3Z8Z2NjfGdjYy0uKikiKSkpKSkpKSkKICAgIChpbnB1dHMgKG1vZGlmeS1p bnB1dHMgKHBhY2thZ2UtaW5wdXRzIGdjYykKICAgICAgICAgICAgICAoZGVsZXRlICJsaWJzdGRj KysiKSkpCiAgICAobmF0aXZlLWlucHV0cyAobW9kaWZ5LWlucHV0cyAocGFja2FnZS1uYXRpdmUt aW5wdXRzIGdjYykKICAgICAgICAgICAgICAgICAgICAgKHByZXBlbmQgZ2NjKSkpCiAgICAoc3lu b3BzaXMgIkdDQyBsaWJyYXJ5IGdlbmVyYXRpbmcgbWFjaGluZSBjb2RlIG9uLXRoZS1mbHkgYXQg cnVudGltZSIpCiAgICAoZGVzY3JpcHRpb24KICAgICAiVGhpcyBwYWNrYWdlIGlzIHBhcnQgb2Yg dGhlIEdOVSBDb21waWxlciBDb2xsZWN0aW9uIGFuZCBwcm92aWRlcyBhbgplbWJlZGRhYmxlIGxp YnJhcnkgZm9yIGdlbmVyYXRpbmcgbWFjaGluZSBjb2RlIG9uLXRoZS1mbHkgYXQgcnVudGltZS4g IFRoaXMKc2hhcmVkIGxpYnJhcnkgY2FuIHRoZW4gYmUgZHluYW1pY2FsbHktbGlua2VkIGludG8g Ynl0ZWNvZGUgaW50ZXJwcmV0ZXJzIGFuZApvdGhlciBzdWNoIHByb2dyYW1zIHRoYXQgd2FudCB0 byBnZW5lcmF0ZSBtYWNoaW5lIGNvZGUgb24tdGhlLWZseSBhdCBydW4tdGltZS4KSXQgY2FuIGFs c28gYmUgdXNlZCBmb3IgYWhlYWQtb2YtdGltZSBjb2RlIGdlbmVyYXRpb24gZm9yIGJ1aWxkaW5n IHN0YW5kYWxvbmUKY29tcGlsZXJzLiAgVGhlIGp1c3QtaW4tdGltZSAoaml0KSBwYXJ0IG9mIHRo ZSBuYW1lIGlzIG5vdyBzb21ldGhpbmcgb2YgYQptaXNub21lci4iKSkpCgooZGVmaW5lLXB1Ymxp YyBsaWJnY2NqaXQtOSAobWFrZS1saWJnY2NqaXQgZ2NjLTkpKQooZGVmaW5lLXB1YmxpYyBsaWJn Y2NqaXQtMTAgKG1ha2UtbGliZ2Njaml0IGdjYy0xMCkpCihkZWZpbmUtcHVibGljIGxpYmdjY2pp dC0xMSAobWFrZS1saWJnY2NqaXQgZ2NjLTExKSkKKGRlZmluZS1wdWJsaWMgbGliZ2Njaml0LTEy IChtYWtlLWxpYmdjY2ppdCBnY2MtMTIpKQoKKGRlZmluZS1wdWJsaWMgbGliZ2Njaml0IGxpYmdj Y2ppdC0xMCkKCjs7IGVtYWNzLnNjbQoKKGRlZmluZS1wdWJsaWMgZW1hY3MKICAocGFja2FnZQog ICAgKG5hbWUgImVtYWNzIikKICAgICh2ZXJzaW9uICIyOC4xLjkwIikKICAgIChzb3VyY2UgKG9y aWdpbgogICAgICAgICAgICAgIChtZXRob2QgdXJsLWZldGNoKQogICAgICAgICAgICAgICh1cmkg KHN0cmluZy1hcHBlbmQgIm1pcnJvcjovL2dudS9lbWFjcy9lbWFjcy0iCiAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICB2ZXJzaW9uICIudGFyLnh6IikpCiAgICAgICAgICAgICAgKHNo YTI1NgogICAgICAgICAgICAgICAoYmFzZTMyCiAgICAgICAgICAgICAgICAiMXFibW1taG5qaG40 bHZ6c255azdsNWdhbmJpNnd6Ym0zOGpjMWE3aGh5aDNrNzhiN2M5OCIpKQogICAgICAgICAgICAg IChwYXRjaGVzIChzZWFyY2gtcGF0Y2hlcyAiZW1hY3MtZXhlYy1wYXRoLnBhdGNoIgogICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiZW1hY3MtZml4LXNjaGVtZS1pbmRlbnQt ZnVuY3Rpb24ucGF0Y2giCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJl bWFjcy1zb3VyY2UtZGF0ZS1lcG9jaC5wYXRjaCIpKQogICAgICAgICAgICAgIChtb2R1bGVzICco KGd1aXggYnVpbGQgdXRpbHMpKSkKICAgICAgICAgICAgICAoc25pcHBldAogICAgICAgICAgICAg ICAnKHdpdGgtZGlyZWN0b3J5LWV4Y3Vyc2lvbiAibGlzcCIKICAgICAgICAgICAgICAgICAgOzsg RGVsZXRlIHRoZSBidW5kbGVkIGJ5dGUtY29tcGlsZWQgZWxpc3AgZmlsZXMgYW5kIGdlbmVyYXRl ZAogICAgICAgICAgICAgICAgICA7OyBhdXRvbG9hZHMuCiAgICAgICAgICAgICAgICAgIChmb3It ZWFjaCBkZWxldGUtZmlsZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgKGFwcGVuZCAoZmlu ZC1maWxlcyAiLiIgIlxcLmVsYyQiKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAoZmluZC1maWxlcyAiLiIgImxvYWRkZWZzXFwuZWwkIikKICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgKGZpbmQtZmlsZXMgImVzaGVsbCIgIl5lc2gtZ3JvdXBzXFwuZWwkIikp KQoKICAgICAgICAgICAgICAgICAgOzsgTWFrZSBzdXJlIFRyYW1wIGxvb2tzIGZvciBiaW5hcmll cyBpbiB0aGUgcmlnaHQgcGxhY2VzIG9uCiAgICAgICAgICAgICAgICAgIDs7IHJlbW90ZSBHdWl4 IFN5c3RlbSBtYWNoaW5lcywgd2hlcmUgJ2dldGNvbmYgUEFUSCcgcmV0dXJucwogICAgICAgICAg ICAgICAgICA7OyBzb21ldGhpbmcgYm9ndXMuCiAgICAgICAgICAgICAgICAgIChzdWJzdGl0dXRl KiAibmV0L3RyYW1wLmVsIgogICAgICAgICAgICAgICAgICAgIDs7IFBhdGNoIHRoZSBsaW5lIGFm dGVyICIoZGVmY3VzdG9tIHRyYW1wLXJlbW90ZS1wYXRoIi4KICAgICAgICAgICAgICAgICAgICAo KCJcXCh0cmFtcC1kZWZhdWx0LXJlbW90ZS1wYXRoIikKICAgICAgICAgICAgICAgICAgICAgKGZv cm1hdCAjZiAiKHRyYW1wLWRlZmF1bHQtcmVtb3RlLXBhdGggfnMgfnMgfnMgfnMgIgogICAgICAg ICAgICAgICAgICAgICAgICAgICAgICJ+Ly5ndWl4LXByb2ZpbGUvYmluIiAifi8uZ3VpeC1wcm9m aWxlL3NiaW4iCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIi9ydW4vY3VycmVudC1zeXN0 ZW0vcHJvZmlsZS9iaW4iCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIi9ydW4vY3VycmVu dC1zeXN0ZW0vcHJvZmlsZS9zYmluIikpKQoKICAgICAgICAgICAgICAgICAgOzsgTWFrZSBzdXJl IE1hbiBsb29rcyBmb3IgQyBoZWFkZXIgZmlsZXMgaW4gdGhlIHJpZ2h0CiAgICAgICAgICAgICAg ICAgIDs7IHBsYWNlcy4KICAgICAgICAgICAgICAgICAgKHN1YnN0aXR1dGUqICJtYW4uZWwiCiAg ICAgICAgICAgICAgICAgICAgKCgiXCIvdXNyL2xvY2FsL2luY2x1ZGVcIiIgbGluZSkKICAgICAg ICAgICAgICAgICAgICAgKHN0cmluZy1qb2luCiAgICAgICAgICAgICAgICAgICAgICAobGlzdCBs aW5lCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAiXCJ+Ly5ndWl4LXByb2ZpbGUvaW5jbHVk ZVwiIgogICAgICAgICAgICAgICAgICAgICAgICAgICAgIlwiL3Zhci9ndWl4L3Byb2ZpbGVzL3N5 c3RlbS9wcm9maWxlL2luY2x1ZGVcIiIpCiAgICAgICAgICAgICAgICAgICAgICAiICIpKSkpKSkp CiAgICAoYnVpbGQtc3lzdGVtIGdsaWItb3ItZ3RrLWJ1aWxkLXN5c3RlbSkKICAgIChhcmd1bWVu dHMKICAgICAobGlzdAogICAgICAjOnRlc3RzPyAjZiAgICAgICAgICAgICAgICAgICAgICA7IG5v IGNoZWNrIHRhcmdldAogICAgICAjOm1vZHVsZXMgYCgoZ3VpeCBidWlsZCBnbGliLW9yLWd0ay1i dWlsZC1zeXN0ZW0pCiAgICAgICAgICAgICAgICAgIChndWl4IGJ1aWxkIHV0aWxzKQogICAgICAg ICAgICAgICAgICAoc3JmaSBzcmZpLTEpCiAgICAgICAgICAgICAgICAgIChpY2UtOSBmdHcpKQog ICAgICAjOmNvbmZpZ3VyZS1mbGFncyAjfihsaXN0ICItLXdpdGgtbW9kdWxlcyIKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAiLS13aXRoLWNhaXJvIgogICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICItLXdpdGgtbmF0aXZlLWNvbXBpbGF0aW9uIgogICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICItLWRpc2FibGUtYnVpbGQtZGV0YWlscyIpCiAgICAgICM6bWFrZS1m bGFncyAjfihsaXN0ICJOQVRJVkVfRlVMTF9BT1Q9MSIpCiAgICAgICM6cGhhc2VzCiAgICAgICN+ KG1vZGlmeS1waGFzZXMgJXN0YW5kYXJkLXBoYXNlcwogICAgICAgICAgKGFkZC1hZnRlciAnc2V0 LXBhdGhzICdzZXQtbGliZ2Njaml0LXBhdGgKICAgICAgICAgICAgKGxhbWJkYSogKCM6a2V5IGlu cHV0cyAjOmFsbG93LW90aGVyLWtleXMpCiAgICAgICAgICAgICAgKGRlZmluZSAoZmlyc3Qtc3Vi ZGlyZWN0b3J5L2Fic29sdXRlIGRpcmVjdG9yeSkKICAgICAgICAgICAgICAgIChsZXQgKChmaWxl cyAoc2NhbmRpcgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkaXJlY3RvcnkKICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgKGxhbWJkYSAoZmlsZSkKICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAoYW5kIChub3QgKG1lbWJlciBmaWxlICcoIi4iICIuLiIpKSkKICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChmaWxlLWlzLWRpcmVjdG9yeT8gKHN0cmlu Zy1hcHBlbmQKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIGRpcmVjdG9yeSAiLyIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIGZpbGUpKSkpKSkpCiAgICAgICAgICAgICAgICAgIChh bmQgKG5vdCAobnVsbD8gZmlsZXMpKQogICAgICAgICAgICAgICAgICAgICAgIChzdHJpbmctYXBw ZW5kIGRpcmVjdG9yeSAiLyIgKGNhciBmaWxlcykpKSkpCgogICAgICAgICAgICAgIChsZXQqICgo bGliZ2Njaml0LWxpYmRpcgogICAgICAgICAgICAgICAgICAgICAgKGZpcnN0LXN1YmRpcmVjdG9y eS9hYnNvbHV0ZSA7OyB2ZXJzaW9uCiAgICAgICAgICAgICAgICAgICAgICAgKGZpcnN0LXN1YmRp cmVjdG9yeS9hYnNvbHV0ZSA7OyBob3N0IHR5cGUKICAgICAgICAgICAgICAgICAgICAgICAgKHNl YXJjaC1pbnB1dC1kaXJlY3RvcnkgaW5wdXRzICJsaWIvZ2NjIikpKSkpCiAgICAgICAgICAgICAg ICAoc2V0ZW52ICJMSUJSQVJZX1BBVEgiCiAgICAgICAgICAgICAgICAgICAgICAgIChzdHJpbmct YXBwZW5kIGxpYmdjY2ppdC1saWJkaXIgIjoiCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIChnZXRlbnYgIkxJQlJBUllfUEFUSCIpKSkpKSkKICAgICAgICAgIChhZGQtYWZ0 ZXIgJ3VucGFjayAnZW5hYmxlLWVsb2dpbmQKICAgICAgICAgICAgKGxhbWJkYSBfCiAgICAgICAg ICAgICAgKHN1YnN0aXR1dGUqICJjb25maWd1cmUuYWMiCiAgICAgICAgICAgICAgICAoKCJsaWJz eXN0ZW1kIikgImxpYmVsb2dpbmQiKSkKICAgICAgICAgICAgICAod2hlbiAoZmlsZS1leGlzdHM/ ICJjb25maWd1cmUiKQogICAgICAgICAgICAgICAgKGRlbGV0ZS1maWxlICJjb25maWd1cmUiKSkp KQogICAgICAgICAgKGFkZC1hZnRlciAndW5wYWNrICdwYXRjaC1wcm9ncmFtLWZpbGUtbmFtZXMK ICAgICAgICAgICAgKGxhbWJkYSogKCM6a2V5IGlucHV0cyAjOmFsbG93LW90aGVyLWtleXMpCiAg ICAgICAgICAgICAgKHN1YnN0aXR1dGUqICcoInNyYy9jYWxscHJvYy5jIgogICAgICAgICAgICAg ICAgICAgICAgICAgICAgICJsaXNwL3Rlcm0uZWwiCiAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgImxpc3AvaHRtbGZvbnRpZnkuZWwiCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImxp c3AvdGV4dG1vZGVzL2FydGlzdC5lbCIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAibGlz cC9wcm9nbW9kZXMvc2gtc2NyaXB0LmVsIikKICAgICAgICAgICAgICAgICgoIlwiL2Jpbi9zaFwi IikKICAgICAgICAgICAgICAgICAoZm9ybWF0ICNmICJ+cyIgKHNlYXJjaC1pbnB1dC1maWxlIGlu cHV0cyAiL2Jpbi9zaCIpKSkpCiAgICAgICAgICAgICAgKHN1YnN0aXR1dGUqICJsaXNwL2RvYy12 aWV3LmVsIgogICAgICAgICAgICAgICAgKCgiXCIoZ3N8ZHZpcGRmfHBzMnBkZnxwZGZ0b3RleHQp XCIiIGFsbCB3aGF0KQogICAgICAgICAgICAgICAgIChsZXQgKChyZXBsYWNlbWVudCAoZmFsc2Ut aWYtZXhjZXB0aW9uCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoc2VhcmNo LWlucHV0LWZpbGUKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpbnB1dHMK ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoc3RyaW5nLWFwcGVuZCAiL2Jp bi8iIHdoYXQpKSkpKQogICAgICAgICAgICAgICAgICAgKGlmIHJlcGxhY2VtZW50CiAgICAgICAg ICAgICAgICAgICAgICAgKHN0cmluZy1hcHBlbmQgIlwiIiByZXBsYWNlbWVudCAiXCIiKQogICAg ICAgICAgICAgICAgICAgICAgIGFsbCkpKSkKICAgICAgICAgICAgICA7OyBtYXRjaCAiLmd2ZnMt ZnVzZS1kYWVtb24tcmVhbCIgYW5kICIuZ3Zmc2QtZnVzZS1yZWFsIgogICAgICAgICAgICAgIDs7 IHJlc3BlY3RpdmVseSB3aGVuIGxvb2tpbmcgZm9yIEdWRlMgcHJvY2Vzc2VzLgogICAgICAgICAg ICAgIChzdWJzdGl0dXRlKiAibGlzcC9uZXQvdHJhbXAtZ3Zmcy5lbCIKICAgICAgICAgICAgICAg ICgoIlxcKHRyYW1wLWNvbXBhdC1wcm9jZXNzLXJ1bm5pbmctcCBcIiguKilcIlxcKSIgYWxsIHBy b2Nlc3MpCiAgICAgICAgICAgICAgICAgKGZvcm1hdCAjZiAiKG9yIH5hICh0cmFtcC1jb21wYXQt cHJvY2Vzcy1ydW5uaW5nLXAgfnMpKSIKICAgICAgICAgICAgICAgICAgICAgICAgIGFsbCAoc3Ry aW5nLWFwcGVuZCAiLiIgcHJvY2VzcyAiLXJlYWwiKSkpKSkpCiAgICAgICAgICAoYWRkLWFmdGVy ICd1bnBhY2sgJ3BhdGNoLWNvbXBpbGF0aW9uLWRyaXZlcgogICAgICAgICAgICAobGFtYmRhIF8K ICAgICAgICAgICAgICAoc3Vic3RpdHV0ZSogImxpc3AvZW1hY3MtbGlzcC9jb21wLmVsIgogICAg ICAgICAgICAgICAgKCgiXFwoZGVmY3VzdG9tIG5hdGl2ZS1jb21wLWRyaXZlci1vcHRpb25zIG5p bCIpCiAgICAgICAgICAgICAgICAgKGZvcm1hdAogICAgICAgICAgICAgICAgICAjZiAiKGRlZmN1 c3RvbSBuYXRpdmUtY29tcC1kcml2ZXItb3B0aW9ucyAnKH5zIH5zIH5zIH5zKSIKICAgICAgICAg ICAgICAgICAgKHN0cmluZy1hcHBlbmQKICAgICAgICAgICAgICAgICAgICItQiIgIyQodGhpcy1w YWNrYWdlLWlucHV0ICJiaW51dGlscyIpICIvYmluLyIpCiAgICAgICAgICAgICAgICAgIChzdHJp bmctYXBwZW5kCiAgICAgICAgICAgICAgICAgICAiLUIiICMkKHRoaXMtcGFja2FnZS1pbnB1dCAi Z2xpYmMiKSAiL2xpYi8iKQogICAgICAgICAgICAgICAgICAoc3RyaW5nLWFwcGVuZAogICAgICAg ICAgICAgICAgICAgIi1CIiAjJCh0aGlzLXBhY2thZ2UtaW5wdXQgImxpYmdjY2ppdCIpICIvbGli LyIpCiAgICAgICAgICAgICAgICAgIChzdHJpbmctYXBwZW5kCiAgICAgICAgICAgICAgICAgICAi LUIiICMkKHRoaXMtcGFja2FnZS1pbnB1dCAibGliZ2Njaml0IikgIi9saWIvZ2NjLyIpKSkpKSkK ICAgICAgICAgIChhZGQtYmVmb3JlICdjb25maWd1cmUgJ2ZpeC0vYmluL3B3ZAogICAgICAgICAg ICAobGFtYmRhIF8KICAgICAgICAgICAgICA7OyBVc2UgYHB3ZCcsIG5vdCBgL2Jpbi9wd2QnLgog ICAgICAgICAgICAgIChzdWJzdGl0dXRlKiAoZmluZC1maWxlcyAiLiIgIl5NYWtlZmlsZVxcLmlu JCIpCiAgICAgICAgICAgICAgICAoKCIvYmluL3B3ZCIpCiAgICAgICAgICAgICAgICAgInB3ZCIp KSkpCiAgICAgICAgICAoYWRkLWFmdGVyICdpbnN0YWxsICdpbnN0YWxsLXNpdGUtc3RhcnQKICAg ICAgICAgICAgOzsgVXNlICdndWl4LWVtYWNzJyBpbiAic2l0ZS1zdGFydC5lbCIsIHdoaWNoIGlz IHVzZWQgYXV0b2xvYWQgdGhlCiAgICAgICAgICAgIDs7IEVsaXNwIHBhY2thZ2VzIGZvdW5kIGlu IEVNQUNTTE9BRFBBVEguCiAgICAgICAgICAgIChsYW1iZGEqICgjOmtleSBpbnB1dHMgb3V0cHV0 cyAjOmFsbG93LW90aGVyLWtleXMpCiAgICAgICAgICAgICAgKGxldCogKChvdXQgICAgICAoYXNz b2MtcmVmIG91dHB1dHMgIm91dCIpKQogICAgICAgICAgICAgICAgICAgICAobGlzcC1kaXIgKHN0 cmluZy1hcHBlbmQgb3V0ICIvc2hhcmUvZW1hY3Mvc2l0ZS1saXNwIikpCiAgICAgICAgICAgICAg ICAgICAgIChlbWFjcyAgICAoc3RyaW5nLWFwcGVuZCBvdXQgIi9iaW4vZW1hY3MiKSkpCgogICAg ICAgICAgICAgICAgOzsgVGhpcyBpcyBkdXBsaWNhdGVkIGZyb20gZW1hY3MtdXRpbHMgdG8gcHJl dmVudCBjb3VwbGluZy4KICAgICAgICAgICAgICAgIChkZWZpbmUqIChlbWFjcy1ieXRlLWNvbXBp bGUtZGlyZWN0b3J5IGRpcikKICAgICAgICAgICAgICAgICAgKGxldCAoKGV4cHIgYChwcm9nbgog ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChzZXRxIGJ5dGUtY29tcGlsZS1kZWJ1ZyB0 KQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChieXRlLXJlY29tcGlsZS1kaXJlY3Rv cnkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGZpbGUtbmFtZS1hcy1kaXJlY3Rv cnkgLGRpcikgMCAxKSkpKQogICAgICAgICAgICAgICAgICAgIChpbnZva2UgZW1hY3MgIi0tcXVp Y2siICItLWJhdGNoIgogICAgICAgICAgICAgICAgICAgICAgICAgICAgKGZvcm1hdCAjZiAiLS1l dmFsPX5zIiBleHByKSkpKQoKICAgICAgICAgICAgICAgIChjb3B5LWZpbGUgIyQobG9jYWwtZmls ZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoc2VhcmNoLWF1eGlsaWFyeS1maWxlICJl bWFjcy9ndWl4LWVtYWNzLmVsIikpCiAgICAgICAgICAgICAgICAgICAgICAgICAgIChzdHJpbmct YXBwZW5kIGxpc3AtZGlyICIvZ3VpeC1lbWFjcy5lbCIpKQogICAgICAgICAgICAgICAgKHdpdGgt b3V0cHV0LXRvLWZpbGUgKHN0cmluZy1hcHBlbmQgbGlzcC1kaXIgIi9zaXRlLXN0YXJ0LmVsIikK ICAgICAgICAgICAgICAgICAgKGxhbWJkYSAoKQogICAgICAgICAgICAgICAgICAgIChkaXNwbGF5 CiAgICAgICAgICAgICAgICAgICAgIChzdHJpbmctYXBwZW5kCiAgICAgICAgICAgICAgICAgICAg ICAiKHdoZW4gKHJlcXVpcmUgJ2d1aXgtZW1hY3MgbmlsIHQpXG4iCiAgICAgICAgICAgICAgICAg ICAgICAiICAoZ3VpeC1lbWFjcy1hdXRvbG9hZC1wYWNrYWdlcylcbiIKICAgICAgICAgICAgICAg ICAgICAgICIgIChhZHZpY2UtYWRkICdwYWNrYWdlLWxvYWQtYWxsLWRlc2NyaXB0b3JzIgogICAg ICAgICAgICAgICAgICAgICAgIiA6YWZ0ZXIgIydndWl4LWVtYWNzLWxvYWQtcGFja2FnZS1kZXNj cmlwdG9ycykpIikpKSkKICAgICAgICAgICAgICAgIDs7IFJlbW92ZSB0aGUgZXh0cmFuZW91cyBz dWJkaXJzLmVsIGZpbGUsIGFzIGl0IGNhdXNlcyBFbWFjcyB0bwogICAgICAgICAgICAgICAgOzsg YWRkIHJlY3Vyc2l2ZWx5IGFsbCB0aGUgdGhlIHN1Yi1kaXJlY3RvcmllcyBvZiBhIHByb2ZpbGUn cwogICAgICAgICAgICAgICAgOzsgc2hhcmUvZW1hY3Mvc2l0ZS1saXNwIHVuaW9uIHdoZW4gYWRk ZWQgdG8gRU1BQ1NMT0FEUEFUSCwKICAgICAgICAgICAgICAgIDs7IHdoaWNoIGxlYWRzIHRvIGNv bmZsaWN0cy4KICAgICAgICAgICAgICAgIChkZWxldGUtZmlsZSAoc3RyaW5nLWFwcGVuZCBsaXNw LWRpciAiL3N1YmRpcnMuZWwiKSkKICAgICAgICAgICAgICAgIDs7IEJ5dGUgY29tcGlsZSB0aGUg c2l0ZS1zdGFydCBmaWxlcy4KICAgICAgICAgICAgICAgIChlbWFjcy1ieXRlLWNvbXBpbGUtZGly ZWN0b3J5IGxpc3AtZGlyKSkpKQogICAgICAgICAgKGFkZC1hZnRlciAnZ2xpYi1vci1ndGstd3Jh cCAncmVzdG9yZS1lbWFjcy1wZG1wCiAgICAgICAgICAgIDs7IHJlc3RvcmUgdGhlIGR1bXAgZmls ZSB0aGF0IEVtYWNzIGluc3RhbGxzIHNvbWV3aGVyZSBpbgogICAgICAgICAgICA7OyBsaWJleGVj LyB0byBpdHMgb3JpZ2luYWwgc3RhdGUKICAgICAgICAgICAgKGxhbWJkYSogKCM6a2V5IG91dHB1 dHMgdGFyZ2V0ICM6YWxsb3ctb3RoZXIta2V5cykKICAgICAgICAgICAgICAobGV0KiAoKGxpYmV4 ZWMgKHN0cmluZy1hcHBlbmQgKGFzc29jLXJlZiBvdXRwdXRzICJvdXQiKQogICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiL2xpYmV4ZWMiKSkKICAgICAgICAgICAg ICAgICAgICAgOzsgZWFjaCBvZiB0aGVzZSBvdWdodCB0byBvbmx5IG1hdGNoIGEgc2luZ2xlIGZp bGUsCiAgICAgICAgICAgICAgICAgICAgIDs7IGJ1dCBldmVuIGlmIG5vdCAoZmluZC1maWxlcykg c29ydHMgYnkgc3RyaW5nPCwKICAgICAgICAgICAgICAgICAgICAgOzsgc28gdGhlIE50aCBlbGVt ZW50IGluIG9uZSBtYXBzIHRvIHRoZSBOdGggZWxlbWVudCBvZgogICAgICAgICAgICAgICAgICAg ICA7OyB0aGUgb3RoZXIKICAgICAgICAgICAgICAgICAgICAgKHBkbXAgKGZpbmQtZmlsZXMgbGli ZXhlYyAiXFwucGRtcCQiKSkKICAgICAgICAgICAgICAgICAgICAgKHBkbXAtcmVhbCAoZmluZC1m aWxlcyBsaWJleGVjICJcXC5wZG1wLXJlYWwkIikpKQogICAgICAgICAgICAgICAgKGZvci1lYWNo IHJlbmFtZS1maWxlIHBkbXAtcmVhbCBwZG1wKSkpKQogICAgICAgICAgKGFkZC1hZnRlciAnZ2xp Yi1vci1ndGstd3JhcCAnc3RyaXAtZG91YmxlLXdyYXAKICAgICAgICAgICAgKGxhbWJkYSogKCM6 a2V5IG91dHB1dHMgIzphbGxvdy1vdGhlci1rZXlzKQogICAgICAgICAgICAgIDs7IERpcmVjdGx5 IGNvcHkgZW1hY3MtWC5ZIHRvIGVtYWNzLCBzbyB0aGF0IGl0IGlzIG5vdCB3cmFwcGVkCiAgICAg ICAgICAgICAgOzsgdHdpY2UuICBUaGlzIGFsc28gZml4ZXMgYSBtaW5vciBpc3N1ZSwgd2hlcmUg V01zIHdvdWxkIG5vdCBiZQogICAgICAgICAgICAgIDs7IGFibGUgdG8gdHJhY2sgZW1hY3MgYmFj ayB0byBlbWFjcy5kZXNrdG9wLgogICAgICAgICAgICAgICh3aXRoLWRpcmVjdG9yeS1leGN1cnNp b24gKGFzc29jLXJlZiBvdXRwdXRzICJvdXQiKQogICAgICAgICAgICAgICAgKGNvcHktZmlsZQog ICAgICAgICAgICAgICAgIChjYXIgKGZpbmQtZmlsZXMgImJpbiIgIl5lbWFjcy0oWzAtOV0rXFwu KStbMC05XSskIikpCiAgICAgICAgICAgICAgICAgImJpbi9lbWFjcyIpKSkpCiAgICAgICAgICAo YWRkLWFmdGVyICdzdHJpcC1kb3VibGUtd3JhcCAnd3JhcC1lbWFjcy1wYXRocwogICAgICAgICAg ICAobGFtYmRhKiAoIzprZXkgaW5wdXRzIG91dHB1dHMgIzphbGxvdy1vdGhlci1rZXlzKQogICAg ICAgICAgICAgIChsZXQqICgob3V0IChhc3NvYy1yZWYgb3V0cHV0cyAib3V0IikpCiAgICAgICAg ICAgICAgICAgICAgIChsaXNwLWRpcnMgKGZpbmQtZmlsZXMgKHN0cmluZy1hcHBlbmQgb3V0ICIv c2hhcmUvZW1hY3MiKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICJebGlzcCQiCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIzpk aXJlY3Rvcmllcz8gI3QpKSkKICAgICAgICAgICAgICAgIChmb3ItZWFjaAogICAgICAgICAgICAg ICAgIChsYW1iZGEgKHByb2cpCiAgICAgICAgICAgICAgICAgICAod3JhcC1wcm9ncmFtIHByb2cK ICAgICAgICAgICAgICAgICAgICAgOzsgZW1hY3MtbmV4dCBhbmQgdmFyaWFudHMgcmVseSBvbiB1 bmFtZSBiZWluZyBpbiBQQVRIIGZvcgogICAgICAgICAgICAgICAgICAgICA7OyBUcmFtcC4gIFRy YW1wIHBhdGhzIGNhbid0IGJlIGhhcmRjb2RlZCwgYmVjYXVzZSB0aGV5CiAgICAgICAgICAgICAg ICAgICAgIDs7IG5lZWQgdG8gYmUgcG9ydGFibGUuCiAgICAgICAgICAgICAgICAgICAgIGAoIlBB VEgiIHN1ZmZpeAogICAgICAgICAgICAgICAgICAgICAgICwobWFwIGRpcm5hbWUKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAobGlzdCAoc2VhcmNoLWlucHV0LWZpbGUgaW5wdXRzICIvYmlu L2d6aXAiKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDs7IGZvciBjb3JldXRp bHMKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoc2VhcmNoLWlucHV0LWZpbGUg aW5wdXRzICIvYmluL3llcyIpKSkpCiAgICAgICAgICAgICAgICAgICAgIGAoIkVNQUNTTE9BRFBB VEgiIHN1ZmZpeCAsbGlzcC1kaXJzKSkpCiAgICAgICAgICAgICAgICAgKGZpbmQtZmlsZXMgKHN0 cmluZy1hcHBlbmQgb3V0ICIvYmluIikKICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7OyBN YXRjaGVzIHZlcnNpb25lZCBhbmQgdW52ZXJzaW9uZWQgZW1hY3MgYmluYXJpZXMuCiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgOzsgV2UgZG9uJ3QgcGF0Y2ggZW1hY3NjbGllbnQsIGJlY2F1 c2UgaXQgdGFrZXMgaXRzCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOzsgZW52aXJvbm1l bnQgdmFyaWFibGVzIGZyb20gZW1hY3MuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOzsg TGlrZXdpc2UsIHdlIGRvbid0IG5lZWQgdG8gcGF0Y2ggaGVscGVyIGJpbmFyaWVzCiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgOzsgbGlrZSBldGFncywgY3RhZ3Mgb3IgZWJyb3dzZS4KICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAiXmVtYWNzKC1bMC05XSsoXFwuWzAtOV0rKSopPyQi KSkpKSkpKSkKICAgIChpbnB1dHMKICAgICAobGlzdCBnbnV0bHMKICAgICAgICAgICBuY3Vyc2Vz CgogICAgICAgICAgIDs7IEZvciBuYXRpdmUgY29tcGlsYXRpb24KICAgICAgICAgICBiaW51dGls cwogICAgICAgICAgIGdsaWJjCiAgICAgICAgICAgbGliZ2Njaml0CgogICAgICAgICAgIDs7IFJl cXVpcmVkIGZvciAiY29yZSIgZnVuY3Rpb25hbGl0eSwgc3VjaCBhcyBkaXJlZCBhbmQgY29tcHJl c3Npb24uCiAgICAgICAgICAgY29yZXV0aWxzCiAgICAgICAgICAgZ3ppcAoKICAgICAgICAgICA7 OyBBdm9pZCBFbWFjcydzIGxpbWl0ZWQgbW92ZW1haWwgc3Vic3RpdHV0ZSB0aGF0IHJldHJpZXZl cyBQT1AzCiAgICAgICAgICAgOzsgZW1haWwgb25seSB2aWEgaW5zZWN1cmUgY2hhbm5lbHMuCiAg ICAgICAgICAgOzsgVGhpcyBpcyBub3QgbmVlZGVkIGZvciAobW9kZXJuKSBJTUFQLgogICAgICAg ICAgIG1haWx1dGlscwoKICAgICAgICAgICBncG0KICAgICAgICAgICBsaWJ4MTEKICAgICAgICAg ICBndGsrCiAgICAgICAgICAgY2Fpcm8KICAgICAgICAgICBwYW5nbwogICAgICAgICAgIGhhcmZi dXp6CiAgICAgICAgICAgbGlieGZ0CiAgICAgICAgICAgbGlidGlmZgogICAgICAgICAgIGdpZmxp YgogICAgICAgICAgIGxjbXMKICAgICAgICAgICBsaWJqcGVnLXR1cmJvCiAgICAgICAgICAgbGli c2VsaW51eAogICAgICAgICAgIGFjbAogICAgICAgICAgIGphbnNzb24KICAgICAgICAgICBnbXAK ICAgICAgICAgICBnaG9zdHNjcmlwdAogICAgICAgICAgIHBvcHBsZXIKICAgICAgICAgICBlbG9n aW5kCgogICAgICAgICAgIDs7IFdoZW4gbG9va2luZyBmb3IgbGlicG5nIGBjb25maWd1cmUnIGxp bmtzIHdpdGggYC1scG5nIC1seicsIHNvIHdlCiAgICAgICAgICAgOzsgbXVzdCBhbHNvIHByb3Zp ZGUgemxpYiBhcyBhbiBpbnB1dC4KICAgICAgICAgICBsaWJwbmcKICAgICAgICAgICB6bGliCiAg ICAgICAgICAgKGlmICh0YXJnZXQteDg2LTY0PykKICAgICAgICAgICAgICAgbGlicnN2Zy1ib290 c3RyYXAKICAgICAgICAgICAgICAgbGlicnN2Zy0yLjQwKQogICAgICAgICAgIGxpYnhwbQogICAg ICAgICAgIGxpYnhtbDIKICAgICAgICAgICBsaWJpY2UKICAgICAgICAgICBsaWJzbQogICAgICAg ICAgIGFsc2EtbGliCiAgICAgICAgICAgZGJ1cwoKICAgICAgICAgICA7OyBtdWx0aWxpbmd1YWxp emF0aW9uIHN1cHBvcnQKICAgICAgICAgICBsaWJvdGYKICAgICAgICAgICBtMTduLWxpYikpCiAg ICAobmF0aXZlLWlucHV0cwogICAgIChsaXN0IGF1dG9jb25mIHBrZy1jb25maWcgdGV4aW5mbykp CiAgICAobmF0aXZlLXNlYXJjaC1wYXRocwogICAgIChsaXN0IChzZWFyY2gtcGF0aC1zcGVjaWZp Y2F0aW9uCiAgICAgICAgICAgICh2YXJpYWJsZSAiRU1BQ1NMT0FEUEFUSCIpCiAgICAgICAgICAg IChmaWxlcyAnKCJzaGFyZS9lbWFjcy9zaXRlLWxpc3AiKSkpCiAgICAgICAgICAgKHNlYXJjaC1w YXRoLXNwZWNpZmljYXRpb24KICAgICAgICAgICAgKHZhcmlhYmxlICJJTkZPUEFUSCIpCiAgICAg ICAgICAgIChmaWxlcyAnKCJzaGFyZS9pbmZvIikpKSkpCgogICAgKGhvbWUtcGFnZSAiaHR0cHM6 Ly93d3cuZ251Lm9yZy9zb2Z0d2FyZS9lbWFjcy8iKQogICAgKHN5bm9wc2lzICJUaGUgZXh0ZW5z aWJsZSwgY3VzdG9taXphYmxlLCBzZWxmLWRvY3VtZW50aW5nIHRleHQgZWRpdG9yIikKICAgIChk ZXNjcmlwdGlvbgogICAgICJHTlUgRW1hY3MgaXMgYW4gZXh0ZW5zaWJsZSBhbmQgaGlnaGx5IGN1 c3RvbWl6YWJsZSB0ZXh0IGVkaXRvci4gIEl0IGlzCmJhc2VkIG9uIGFuIEVtYWNzIExpc3AgaW50 ZXJwcmV0ZXIgd2l0aCBleHRlbnNpb25zIGZvciB0ZXh0IGVkaXRpbmcuICBFbWFjcwpoYXMgYmVl biBleHRlbmRlZCBpbiBlc3NlbnRpYWxseSBhbGwgYXJlYXMgb2YgY29tcHV0aW5nLCBnaXZpbmcg cmlzZSB0byBhCnZhc3QgYXJyYXkgb2YgcGFja2FnZXMgc3VwcG9ydGluZywgZS5nLiwgZW1haWws IElSQyBhbmQgWE1QUCBtZXNzYWdpbmcsCnNwcmVhZHNoZWV0cywgcmVtb3RlIHNlcnZlciBlZGl0 aW5nLCBhbmQgbXVjaCBtb3JlLiAgRW1hY3MgaW5jbHVkZXMgZXh0ZW5zaXZlCmRvY3VtZW50YXRp b24gb24gYWxsIGFzcGVjdHMgb2YgdGhlIHN5c3RlbSwgZnJvbSBiYXNpYyBlZGl0aW5nIHRvIHdy aXRpbmcKbGFyZ2UgTGlzcCBwcm9ncmFtcy4gIEl0IGhhcyBmdWxsIFVuaWNvZGUgc3VwcG9ydCBm b3IgbmVhcmx5IGFsbCBodW1hbgpsYW5ndWFnZXMuIikKICAgIChsaWNlbnNlIGxpY2Vuc2U6Z3Bs MyspKSkK --=-TDzpsblMF56g7ay5Mvxt-- From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 06 01:37:29 2022 Received: (at 55657) by debbugs.gnu.org; 6 Aug 2022 05:37:29 +0000 Received: from localhost ([127.0.0.1]:60938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKCV6-0002Xm-Ri for submit@debbugs.gnu.org; Sat, 06 Aug 2022 01:37:29 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:22943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKCV4-0002XX-6t for 55657@debbugs.gnu.org; Sat, 06 Aug 2022 01:37:27 -0400 Date: Sat, 06 Aug 2022 05:37:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1659764239; x=1660023439; bh=1fUXh6C8YtVfKN6jwQj14Fi4shOUxuFLkwZup0ZBn6Q=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=g0Fo4uKEtByR4c5awCP0XI0ii9MQnMEnj2gZmBkZXEADatE86pAGYouvAMNXlXvQH AeZGBnNVvY9TjAeYvgaxfPrWrA8dgLYRyn3ptRSnQWP5X64XEsU4dw/o2KRh4D7wKO dAr1JOAWTxBdledKEUtzmRpBT6wXyGGcnVfKc+zc5KJM0MFsp6hEuE/hcLwHZAb+O8 EWKsNpps2lS1chjPlqwBiW1dLA90puGgdE5F5AdIxHZmBZSgqWYKmNY3Fde8z8Vt01 FYeaTZ+0zV2TJxw8gxggEl70njvxXoIkHKAqoRDS33Ut9zOCKmeGp2NckhxmUCdhU+ aGVST3ydS5Ezw== To: Liliana Marie Prikler From: John Kehayias Subject: Re: libgccjit is unusable Message-ID: In-Reply-To: <1df52a98b3eaf5e49bbbef852dd33d188b16f757.camel@gmail.com> References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <65497ff154c8bed606d30e5a367e8f17b1a53cc7.camel@gmail.com> <1df52a98b3eaf5e49bbbef852dd33d188b16f757.camel@gmail.com> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Andrew Whatson , 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: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, ------- Original Message ------- On Friday, August 5th, 2022 at 5:31 PM, Liliana Marie Prikler wrote: > The style changes are not the only thing at play here, though. In > particular, I am trying to build Emacs 28.1, whereas Andrew builds > other versions, though notably the newest one ought to include the > smoke test. You could also try other combinations for libgccjit and > gcc to see if those make a difference =E2=80=93 last time I tried it did = not. > I'm seeing the same version, 28.1.90, in yours and from Andrew's channel. A= nd just checking that indeed it is 28.1.90 that I've been running locally f= rom that channel, with libgccjit@11.3.0. I have not tried with v29. > Attached the definitions as a file this time. > Thanks, will play around with it this weekend to see if I have anything use= ful to add. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 06 01:53:19 2022 Received: (at 55657) by debbugs.gnu.org; 6 Aug 2022 05:53:19 +0000 Received: from localhost ([127.0.0.1]:60951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKCkR-0002yT-1Y for submit@debbugs.gnu.org; Sat, 06 Aug 2022 01:53:19 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:44020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKCkN-0002yE-D3 for 55657@debbugs.gnu.org; Sat, 06 Aug 2022 01:53:17 -0400 Received: by mail-ed1-f68.google.com with SMTP id o22so5619348edc.10 for <55657@debbugs.gnu.org>; Fri, 05 Aug 2022 22:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=0ENWWw+CgnNr0z2WsYoV79s2hrh4h3w+xPI3XbKatTQ=; b=bCLsPDtEJrL9Yg9XsWXrVjQiYDNYa6XRr7kE7JPklgj6FQXXN0q2s3AZk8UOH8mrJv ggd/3hD/6L611Q6FVlbH7/0d10+J4r7exDV0aOYQsBpKcaAIB2HsDQsN54aRwCJEglJM PhFrEm2NOTD8cpAu2Ig0zjLshtGyORBOEoQGJkBKSsq/0TWJEAvC9D/gDbIMgLUy0k9+ 4/tBrUT04ouXbL7m7IL/9Mb2NNVrdUb2g75KjMteNwKTlvQGJuls4QYkS7Y+TvhndqRO T5xJhROzGVOMSTK/IA8wjMgljPbEgJShA9xSnW+a+DYwCzx6FBJhnxoT+t3vlG8uPn4z pQIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=0ENWWw+CgnNr0z2WsYoV79s2hrh4h3w+xPI3XbKatTQ=; b=ThtMx/xxsA1djFjs1akz3zjDzz/iP0RW5Qob0W/zRL34QJJzJ7Q2VzdZHkoeNbcu22 XSwchaGBH/JlaCQMaZQeFtp1W0k+EskhWquOgllnaUrRkIA4XOcwEMaUt/1RM4iCnmmX lxGHvtEHspZW8EZ46qIb1s/xgVpmXfAq2WajzWAkH10UpRh/wBlB2L5AvlifD2q+PiQD jl9aVEN8z6ndKb/s7QU2B9R6j5fN0DQecEWsoVrVIqCOATJVrVkBZ6DXkJLWP/xr+1nG qbGHDYsU07G6Ni0fCiH5/bybjEtamI4RvqoUSs/bHKbHM0qWj8GfT+8ldo8xqHsCQ3Lf VgDQ== X-Gm-Message-State: ACgBeo1+vMPJ2G3XeVbZcXSX+IkyuvFdUreBP1ts8LKN/8qa6gJFAmrA UOnj2BYtwqQJ0SFaGjIB3JE= X-Google-Smtp-Source: AA6agR7NndT0UfbnRLVVBDrCYbVVWGcKOtSiX/MvYeRN/K/URG8NpTCzGHTR2MPiiJ2N6Zaubfg7Bg== X-Received: by 2002:a05:6402:43c4:b0:43b:c5eb:c9dd with SMTP id p4-20020a05640243c400b0043bc5ebc9ddmr9454754edc.402.1659765189402; Fri, 05 Aug 2022 22:53:09 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id ep11-20020a1709069b4b00b0073087f7dfe2sm2324037ejc.125.2022.08.05.22.53.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 22:53:09 -0700 (PDT) Message-ID: <2368e93f4beab4a962a324c33a234786ac45848b.camel@gmail.com> Subject: Re: libgccjit is unusable From: Liliana Marie Prikler To: John Kehayias Date: Sat, 06 Aug 2022 07:53:08 +0200 In-Reply-To: References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <65497ff154c8bed606d30e5a367e8f17b1a53cc7.camel@gmail.com> <1df52a98b3eaf5e49bbbef852dd33d188b16f757.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Andrew Whatson , 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 (-) Am Samstag, dem 06.08.2022 um 05:37 +0000 schrieb John Kehayias: > Hello, > > ------- Original Message ------- > On Friday, August 5th, 2022 at 5:31 PM, Liliana Marie Prikler wrote: > > > The style changes are not the only thing at play here, though. In > > particular, I am trying to build Emacs 28.1, whereas Andrew builds > > other versions, though notably the newest one ought to include the > > smoke test. You could also try other combinations for libgccjit and > > gcc to see if those make a difference – last time I tried it did > > not. > > > > I'm seeing the same version, 28.1.90, in yours and from Andrew's > channel. And just checking that indeed it is 28.1.90 that I've been > running locally from that channel, with libgccjit@11.3.0. I have not > tried with v29. Pardon that, it's an artifact from trying to fetch 28.1.90 via url- fetch and failing. Note that the hash is the one for 28.1. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 06 23:19:31 2022 Received: (at 55657) by debbugs.gnu.org; 7 Aug 2022 03:19:32 +0000 Received: from localhost ([127.0.0.1]:35791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKWp9-0000Mm-J1 for submit@debbugs.gnu.org; Sat, 06 Aug 2022 23:19:31 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:21773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKWp6-0000MW-T7 for 55657@debbugs.gnu.org; Sat, 06 Aug 2022 23:19:29 -0400 Date: Sun, 07 Aug 2022 03:19:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1659842361; x=1660101561; bh=z6SpmWjn59j9fJtZUOPASKgV3VOcXX4IzZiMOUqew3o=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=m0VAtu9SWxaCHehfD3voYcc0FBBxy/1Ijv+ZYACd3Lmhu7wKFQ5zfVaRY/Mw1/Jio 9MmFQyv0rn+qLuapHtE2j7H6jgoBvqVq7oiMRCF+P4VfF/fZ4wnXfKFGVqJRGE2Yp4 htUER08VA+Xfl77cpN8DQO89Dq5si8OXN6dTsOibL+iWotml0Vuxq06BLaGDZSu5gS 81CSuNhohYTLwD6cRl/rJh9NM3gDIIvf0SXPwYrWXdlRNp+EjFdnwF7Q7tb97kz82x q50KODYAUwyG5b8eHSAXcnzVU/bLtCXNN83z/0xCsFRt8MrwPvv9kyTMI7v13q02uk fwl02lVLDzfGw== To: Liliana Marie Prikler From: John Kehayias Subject: Re: libgccjit is unusable Message-ID: In-Reply-To: <2368e93f4beab4a962a324c33a234786ac45848b.camel@gmail.com> References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <65497ff154c8bed606d30e5a367e8f17b1a53cc7.camel@gmail.com> <1df52a98b3eaf5e49bbbef852dd33d188b16f757.camel@gmail.com> <2368e93f4beab4a962a324c33a234786ac45848b.camel@gmail.com> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Andrew Whatson , 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: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, ------- Original Message ------- On Saturday, August 6th, 2022 at 1:53 AM, Liliana Marie Prikler wrote: > Pardon that, it's an artifact from trying to fetch 28.1.90 via url- > fetch and failing. Note that the hash is the one for 28.1. On Andrew's channel I can change the version/commit/hash to 28.1 and it bui= lds fine. Though this is using a git checkout at the 28.1 tag commit, but I= don't think that matters here? (Emacs runs too, but only tried in guix she= ll and just to see it opens, didn't see if it compiles anything.) And yet with your code I cannot. I tried using the phase from Andrew instea= d of your code, tried adding gcc to the native-inputs to match Andrew, used= gcc-11 with libgccjit-11, ...still the same configure failure on the libgc= cjit test program: can't find libgccjit.so Weird. Adding just the libgccjit library path to LD_LIBRARY_PATH makes configure f= ind libgccjit, but then fails to find libx11 in that same libgccjit test pr= ogram. Instead, making LD_LIBRARY_PATH=3DLIBRARY_PATH fixes the configure a= nd it finally fails on the runpath validation. Maybe cause of messing with = LD_LIBRARY_PATH or could use the patch Andrew has? Anyway, wasn't looking i= nto this. I thought I had a similar problem with the test program you had started wit= h, but in the end just the LIBRARY_PATH tweak was needed. I wish I could re= member the combination of things I tried that also had it failing to find l= ibgccjit. Or perhaps it was something libgccjit was linked to, but I hadn't= explored? So. I tried to see what was different between your and Andrew's code and I'= m not seeing what it could be. There must be some subtle difference we're m= issing? Seems we have all the ingredients and a known working example. John From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 07 09:59:12 2022 Received: (at 55657) by debbugs.gnu.org; 7 Aug 2022 13:59:12 +0000 Received: from localhost ([127.0.0.1]:38001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKgoC-0002zF-8h for submit@debbugs.gnu.org; Sun, 07 Aug 2022 09:59:12 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:40565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKgoB-0002z2-4N for 55657@debbugs.gnu.org; Sun, 07 Aug 2022 09:59:11 -0400 Received: by mail-ed1-f67.google.com with SMTP id f22so8544211edc.7 for <55657@debbugs.gnu.org>; Sun, 07 Aug 2022 06:59:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=B7Y+ZYccq1GgiKCduQLS7hj9lcJ/jhXQQrLQApis4tA=; b=X5L5sRyCipPL9mjIJxHC7t9sPNCRTwbMjbZk5eZh3E4Wndps5vx4B3JhqRWhfvqHgP McydEtW2IKJVMWu55Uj3Z+vOW5XbZJ430V51dIpE1xXZaeSMCoI7BvafEs2KAw58w8kY Yawl1ZrzRdMRU3ArNxt+nSX3k+peHaJLs+O1BoyqBIH1fZtM8e/TqdzfjECmbdlN34Al fc2hUGVRl5KL84/ytY7P/6KzMU6q89U1m5ohme2NSsI9V2LGcSFaqNpFrmRqfODsTd1v f2LdeOXHapMiefotg6k0GKIQCsCY62dRpwL+Iw8vhlk+pme33vVvfYwHoV8z6C4pZURi nj7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=B7Y+ZYccq1GgiKCduQLS7hj9lcJ/jhXQQrLQApis4tA=; b=LmRlVh2P7z3pGstogpauWGgifxcwGD7iRyUVU7OHIm3OUbuTW30+6NTb7kd3pTuF19 0dB9IohcZAHQYT8D1bgw9JxzCdvoOxWpBOnqes9TN+o+5LgRuoyQfgX6s3i9gwgdQlQS wppObyercGBSCMTUlZd/Pr3OFnqjLFD9UQz2RWMQrG5wjkYZPayl1wZ7Rw/5WRsw0XB8 1htyBqHaXMmpnUvqg0Z+MXDHxOZ9n76sncVUYkFZIYV7lAqZ7077wB6WCVmlM9X9wSMn M6i/HzgfQDERaofAuxFhZsY19xGISRbbiA0RopHqPREXkj4NtPXlVH8ihoKQ/CgImpMa S9tA== X-Gm-Message-State: ACgBeo0bFTNN5Bdurx2GZRA2tzaW15h8Un6+N9Prv/gYbZ7iJa3SX53u QnJbHUxZvryOMTqeU3OZsZ8= X-Google-Smtp-Source: AA6agR4iHNSsrxuMIfNS+hbYHPjSamRm+Fbz9HKAep3uy+e5eCshH7Aktom1sVruGuG/yEni048Usg== X-Received: by 2002:a05:6402:4a:b0:440:b77c:86ce with SMTP id f10-20020a056402004a00b00440b77c86cemr479714edu.77.1659880745253; Sun, 07 Aug 2022 06:59:05 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id q19-20020aa7da93000000b0043bd2a79311sm3152763eds.37.2022.08.07.06.59.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Aug 2022 06:59:04 -0700 (PDT) Message-ID: <462ab8b824dc49f099b81b1e2eb8f0e59a0d7e39.camel@gmail.com> Subject: Re: libgccjit is unusable From: Liliana Marie Prikler To: John Kehayias Date: Sun, 07 Aug 2022 15:59:03 +0200 In-Reply-To: References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <65497ff154c8bed606d30e5a367e8f17b1a53cc7.camel@gmail.com> <1df52a98b3eaf5e49bbbef852dd33d188b16f757.camel@gmail.com> <2368e93f4beab4a962a324c33a234786ac45848b.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Andrew Whatson , 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 (-) Am Sonntag, dem 07.08.2022 um 03:19 +0000 schrieb John Kehayias: > So. I tried to see what was different between your and Andrew's code > and I'm not seeing what it could be. There must be some subtle > difference we're missing? Seems we have all the ingredients and a > known working example. It's a really stupid one. Basically, the tests and really any executable you try to build fails to execute without LD_LIBRARY_PATH set. Now obviously, that's an issue with ld and you know which package has ld? That's right, it's binutils! In Andrew's recipe, he sneakily snarfed out binutils from inputs using assoc-ref, but I'm using the new package style with (this-package- input) to achieve the same thing, so I had to add binutils. But this now shadows ld-wrapper. So we have to add ld-wrapper as well. Now this makes me question whether the driver options are actually sane or whether we'd have to prepend ld-wrapper to those as well. WDYT, Andrew? From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 07 11:09:35 2022 Received: (at 55657) by debbugs.gnu.org; 7 Aug 2022 15:09:36 +0000 Received: from localhost ([127.0.0.1]:38158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKhuJ-00071M-J5 for submit@debbugs.gnu.org; Sun, 07 Aug 2022 11:09:35 -0400 Received: from mail-40133.protonmail.ch ([185.70.40.133]:50761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKhuH-000717-15 for 55657@debbugs.gnu.org; Sun, 07 Aug 2022 11:09:35 -0400 Date: Sun, 07 Aug 2022 15:09:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1659884966; x=1660144166; bh=l+JS0ZMcVfh+/s/ODkcXXDMSQ4t5M108AYPHq4609PQ=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=VOWP80qOpYqOLUXIrxVLUGQrgl0d44wDpqT9PNqmjG4y0t87VwSgTd6ZWzqE6y6Zd VpyCvnRWpT93xBzriSJ3aMc+OE6JhngoWgnY2fltI7zjLoQMHmtw4WYlcyAccTDpzx RXHIU+V4aX9Wdu6rbCzkrZiDV39PJD7ML7GuLxI0prpAV+5yH2M/tI/T5VK6f6j9yr 6FWsUSrXvPwGbHFurb/UwftOvMWto2hm1Wjh3mqUGuT0xxTi1Og/7Ps+fNst08uOqP oWS/7pZ4S4/H2RRjyRWC+VKC40u6Vqyf5ldJqbMendgpWBKNWnpQXckQhbeZic768/ PIS9puoZOTP5w== To: Liliana Marie Prikler From: John Kehayias Subject: Re: libgccjit is unusable Message-ID: <5SoKwC-pzglh33cUxrCFU0cfNr-6bvU4E_fNwP3eWNBZLC8f38M6b_-dv3Th39qgzxVgXXiBxJpXbGPxq9UOJNY9ulVUXcO6zMXIxr5agnk=@protonmail.com> In-Reply-To: <462ab8b824dc49f099b81b1e2eb8f0e59a0d7e39.camel@gmail.com> References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <65497ff154c8bed606d30e5a367e8f17b1a53cc7.camel@gmail.com> <1df52a98b3eaf5e49bbbef852dd33d188b16f757.camel@gmail.com> <2368e93f4beab4a962a324c33a234786ac45848b.camel@gmail.com> <462ab8b824dc49f099b81b1e2eb8f0e59a0d7e39.camel@gmail.com> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Andrew Whatson , 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: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ------- Original Message ------- On Sunday, August 7th, 2022 at 9:59 AM, Liliana Marie Prikler wrote: > It's a really stupid one. Basically, the tests and really any > executable you try to build fails to execute without LD_LIBRARY_PATH > set. Now obviously, that's an issue with ld and you know which package > has ld? That's right, it's binutils! > Ah! That LD_LIBRARY_PATH was needed was the clue. > In Andrew's recipe, he sneakily snarfed out binutils from inputs using > assoc-ref, but I'm using the new package style with (this-package- > input) to achieve the same thing, so I had to add binutils. But this > now shadows ld-wrapper. So we have to add ld-wrapper as well. Now > this makes me question whether the driver options are actually sane or > whether we'd have to prepend ld-wrapper to those as well. > Is the assoc-ref for binutils (implicit input?) equivalent to just using #$= binutils directly? e.g. (string-append "-B" #$binutils "/bin/") with no add= ed binutils to the inputs. Is that not a good idea? As a test, that does in= deed work, everything configures, builds, and runs (only tested opening wit= h no configuration). > WDYT, Andrew? From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 07 11:41:37 2022 Received: (at 55657) by debbugs.gnu.org; 7 Aug 2022 15:41:37 +0000 Received: from localhost ([127.0.0.1]:38183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKiPI-0007oL-VA for submit@debbugs.gnu.org; Sun, 07 Aug 2022 11:41:37 -0400 Received: from mail-ej1-f67.google.com ([209.85.218.67]:43692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKiPG-0007o8-SJ for 55657@debbugs.gnu.org; Sun, 07 Aug 2022 11:41:35 -0400 Received: by mail-ej1-f67.google.com with SMTP id gb36so12516445ejc.10 for <55657@debbugs.gnu.org>; Sun, 07 Aug 2022 08:41:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=/L4XfqIz+BgxdOhCjeYTCDsFCkcPic7kcaYTDxtaScE=; b=O7TAPUJkPw6/Pu8udUssUOo/cnL0zYPoTSfc8nhdO66MQol/B8ZuAaMQcjjAwzwyvx Et0LPu84r4Qcw1FyALfsiF6cIZSomct51u+Ioc9VoZPHod2fmQRZGqIovELeNk1Yham+ /IorAXnDfZYIRIzQWtSDyk+C9Wrwny0qwZBis/7f9egCG8csNv9Zy7bADT2gt+ufAX6e OQ0sZn7WvHe6wYNt6z4TN/CIgjoosR01dhQXaxcjMaMb4Y5g0pItIhFZna+7xxvRCzU7 12hs75SShgayVRSVbkjZR81dkOV/e6NugaGL8zjdscna20pYS1BbIvzpesOkyRX39Pg0 zkFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=/L4XfqIz+BgxdOhCjeYTCDsFCkcPic7kcaYTDxtaScE=; b=igbk7GFSmVQHAbAEjPyURiE0un0mkK+ip5goLx2wlWozduJwG9Xp5FERy2+AFY9Dgh gzY9DVyUQjtS1U8wDtoEnJK8RaZDtJvHSz2ZLYUBm++U7EBUEwb0vYWM6y5I2SdVmWpo rIhL31qK2Rh3rnkgbNhk2QJ5kfXz7ajtmJoSh+I0rQFLRQ0xDVCk9RbCIQypXuQwBTzh Qtd3UMb7kXF+FcS+KtecZ/fXndHmJyfmdZk1svetIqvOdW8UHqVwyGqjJopQi9yy/K1J oN7R0CIueo7JjHzgueOWZRFaRGSsPyWd0JbqXjU4Sl/pTlYYVykI/vDk8nhR+x0b0z44 fRfw== X-Gm-Message-State: ACgBeo0cMcSHXKKimrraLrC/LDcXpAeZe2fVtp63yyF4E/iwADKs8KAA jbSrejLO3GZW/XlreM8KMpI= X-Google-Smtp-Source: AA6agR4zGsBM+0FGe+iuELBEp29tlxIY+C6OpR459RVCECDwEI/fEIBOA5nJjqHTg1zgRzBZgpuj/g== X-Received: by 2002:a17:907:a420:b0:731:5809:9593 with SMTP id sg32-20020a170907a42000b0073158099593mr1253643ejc.213.1659886888946; Sun, 07 Aug 2022 08:41:28 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id fv22-20020a170907509600b0072b1cb2818csm3875453ejc.158.2022.08.07.08.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Aug 2022 08:41:28 -0700 (PDT) Message-ID: Subject: Re: libgccjit is unusable From: Liliana Marie Prikler To: John Kehayias Date: Sun, 07 Aug 2022 17:41:27 +0200 In-Reply-To: <5SoKwC-pzglh33cUxrCFU0cfNr-6bvU4E_fNwP3eWNBZLC8f38M6b_-dv3Th39qgzxVgXXiBxJpXbGPxq9UOJNY9ulVUXcO6zMXIxr5agnk=@protonmail.com> References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <65497ff154c8bed606d30e5a367e8f17b1a53cc7.camel@gmail.com> <1df52a98b3eaf5e49bbbef852dd33d188b16f757.camel@gmail.com> <2368e93f4beab4a962a324c33a234786ac45848b.camel@gmail.com> <462ab8b824dc49f099b81b1e2eb8f0e59a0d7e39.camel@gmail.com> <5SoKwC-pzglh33cUxrCFU0cfNr-6bvU4E_fNwP3eWNBZLC8f38M6b_-dv3Th39qgzxVgXXiBxJpXbGPxq9UOJNY9ulVUXcO6zMXIxr5agnk=@protonmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Andrew Whatson , 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 (-) Am Sonntag, dem 07.08.2022 um 15:09 +0000 schrieb John Kehayias: > Is the assoc-ref for binutils (implicit input?) equivalent to just > using #$binutils directly? e.g. (string-append "-B" #$binutils > "/bin/") with no added binutils to the inputs. Is that not a good > idea? As a test, that does indeed work, everything configures, > builds, and runs (only tested opening with no configuration). Not quite, because this binutils is actually binutils-final from commencement.scm, which it doesn't seem we can import the normal way. Also doing this would make it so that binutils isn't configurable, which with an input you get. The trick is just to also use make-ld- wrapper from base.scm Cheers From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 09 14:44:16 2022 Received: (at 55657-done) by debbugs.gnu.org; 9 Aug 2022 18:44:16 +0000 Received: from localhost ([127.0.0.1]:44974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUD9-000164-VR for submit@debbugs.gnu.org; Tue, 09 Aug 2022 14:44:16 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:47038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLUD9-00015q-85 for 55657-done@debbugs.gnu.org; Tue, 09 Aug 2022 14:44:15 -0400 Received: by mail-ed1-f68.google.com with SMTP id s11so16196303edd.13 for <55657-done@debbugs.gnu.org>; Tue, 09 Aug 2022 11:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:subject:mime-version:to:content-transfer-encoding :message-id; bh=nXGnp29Sb9Zc0LOYlw9L1aKw2zTu/r6ga8TfBuZqKEI=; b=IIgg8nA+EeWL0KQD6syTien0UQBqvKqQNxU88Fqur3DNvRF/DXusXhMdew9Tkhb1FP CgTAqAHYwybV56+bRJccaZ3/VAkRrSVcwzuYdd9JP7h1cDmEYXO/6jtichlacKTiuwsY Mv5z7x1aIVljLbKD0gSIFRCD0YRABV7GlH+urshyRRx/+h/sSPuT4Ddjh/MK44QN8Szg VivcXMJZSf37Hk8qRfQJTlEP334YRR3aT4/t1iIHlcx6K+Ld9XMigom0sGwQAqv39+Fy qkkTCe9moVORapylw1is0Soy+HmKlfDcUD8wvsqn2jAu1Uh2BwH3iMMojlBOXGUdlEOx /POg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:subject:mime-version:to :content-transfer-encoding:message-id; bh=nXGnp29Sb9Zc0LOYlw9L1aKw2zTu/r6ga8TfBuZqKEI=; b=Q0FTiI3XdjeIhcQ/AClTMSKhZh1jRsluh5Uf4gVeu71nbPWvdPLH7rGFsan3VvdRAI q+KodBwmstpU5xT7xswlxqs5Af0dpqBV1qJblsMSLh1Gs15jq0CRI4UjbEju0bqPRNW3 zqqgf0v9OH/LRV5zDIubWBQfdm7Icz2ruibIl3E/QLZy4ImVEAC0FzIDB/Xk1+GGzq+X 8HF8cS9cnw/mN8ACKOI+pC31S+4vmur1AzfMbvvJGHXGcaffN39sRRCpCnNRHcS9d8ER XXsn0IZkn7cJ9Bu3PmefLy3ypkwjNtBf3hle42+4frz6k4BwCfAsOZk5cULzzdBqLEJP cXZA== X-Gm-Message-State: ACgBeo0avUUwYa3aI0VPEbag5ZFiSrqSHOJluPHDhhWJEY4znCkQNK6J L3xtTGxr5fhf0WRevcqBb2RSIco921Y= X-Google-Smtp-Source: AA6agR6oRUvilP6uqenrbKYa0n70ulk9dUwQy54+GNMo6P9T3o+AofvZKdSK7s9cM7C8WckOtdiTLQ== X-Received: by 2002:a05:6402:444c:b0:43b:d375:e932 with SMTP id o12-20020a056402444c00b0043bd375e932mr22835973edb.399.1660070649193; Tue, 09 Aug 2022 11:44:09 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id cz18-20020a0564021cb200b0043d1eff72b3sm6528719edb.74.2022.08.09.11.44.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 11:44:08 -0700 (PDT) From: Liliana Marie Prikler Date: Tue, 9 Aug 2022 20:37:43 +0200 Subject: [PATCH 0/6] Add native compilation to Emacs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 to: guix-patches@gnu.org Content-Transfer-Encoding: 7bit Message-ID: <4c232648145659a2c3edca6d32725d8120cc14d3.camel@gmail.com> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 55657-done 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, at long last the following patch set should enable native compilation for both Emacs and emacs-build-system. I tested emacs-dash and at the very least native code is generated, though I haven't yet checked whether it is also loaded. As with any shiny new Emacs feature, please verify that the Emacs portion of your manifests/home configurations build and report any related errors *before* I push this and curse your configuration. Cheers Liliana Marie Prikler (6): gnu: Parameterize libgccjit. gnu: libgccjit: Build with bootstrapped gcc. gnu: libgccjit: Build multiple versions. gnu: emacs: Build with native compilation. guix: emacs-utils: Add emacs-compile-directory. build-system: emacs: Use native compilation. gnu/packages/emacs.scm | 64 ++++++++++++++++++++++++++++++- gnu/packages/gcc.scm | 53 +++++++++++++++++-------- guix/build/emacs-build-system.scm | 5 ++- guix/build/emacs-utils.scm | 26 +++++++++++++ 4 files changed, 128 insertions(+), 20 deletions(-) -- 2.37.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 09 16:45:11 2022 Received: (at 55657) by debbugs.gnu.org; 9 Aug 2022 20:45:11 +0000 Received: from localhost ([127.0.0.1]:45219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLW6B-0004ZP-3f for submit@debbugs.gnu.org; Tue, 09 Aug 2022 16:45:11 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:20341) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLW69-0004Z0-Dn for 55657@debbugs.gnu.org; Tue, 09 Aug 2022 16:45:10 -0400 Date: Tue, 09 Aug 2022 20:44:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1660077903; x=1660337103; bh=IIEHdRMGEI7yXMb8U4U07s9/aJcXS0HNeuyx+YCFZBw=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=C5SrXB+8Jz2/BWY1kEfVh978GcxYVYD0yselJxN/lf7RDvfH4GEuk+aNfwMZoYG+7 gJjPff+Kymo09In+ACm4x4GKo2M39O9VwmivmFYVPbspdQFcnoexzDH6XH0RfjfuDk RgVsCNq/llhB02N/gtqvK+ceib6rpV2+nrO+M5sMOUX/Z5mSEtAR7JpR5BNizuVZtM U0X0la2S/G0UYYj6gIFZ/62K160kBg4myZNplb+hPRH04KOnPHSpKyqsEwaViswZRC tj2ZXEaWsdAc/0v1E3wzCV1AHC/jlYqGTkztUdSaDsd9a0iIfV4JiibR6HpvAr3rfV jTJqx5ViyQ8xw== To: Liliana Marie Prikler From: John Kehayias Subject: Re: libgccjit is unusable Message-ID: In-Reply-To: References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <1df52a98b3eaf5e49bbbef852dd33d188b16f757.camel@gmail.com> <2368e93f4beab4a962a324c33a234786ac45848b.camel@gmail.com> <462ab8b824dc49f099b81b1e2eb8f0e59a0d7e39.camel@gmail.com> <5SoKwC-pzglh33cUxrCFU0cfNr-6bvU4E_fNwP3eWNBZLC8f38M6b_-dv3Th39qgzxVgXXiBxJpXbGPxq9UOJNY9ulVUXcO6zMXIxr5agnk=@protonmail.com> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Andrew Whatson , 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: , Reply-To: John Kehayias Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thanks for the new patchset Lily, very excited to have emacs with native co= mpiliation in upstream Guix! (At the very least so I don't have to compile = libgccjit and emacs) For everyone following along at home, please see https://issues.guix.gnu.or= g/57086 As for the original issue here, I guess the LIBRARY_PATH and ld shadowing i= s the workaround. I don't know if that is something that can/should be inco= rporated into the libgccjit package definition or should just be handled by= any package using it. Currently, that will just be emacs anyway and hopefu= lly the discussion here is useful to anyone trying to use libgccjit. Thanks again Lily and Andrew for your work here! From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 09 19:54:11 2022 Received: (at 55657) by debbugs.gnu.org; 9 Aug 2022 23:54:11 +0000 Received: from localhost ([127.0.0.1]:45505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLZ34-0006vB-Re for submit@debbugs.gnu.org; Tue, 09 Aug 2022 19:54:11 -0400 Received: from mail-ua1-f47.google.com ([209.85.222.47]:35406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLZ33-0006uy-48 for 55657@debbugs.gnu.org; Tue, 09 Aug 2022 19:54:09 -0400 Received: by mail-ua1-f47.google.com with SMTP id f10so5239157uap.2 for <55657@debbugs.gnu.org>; Tue, 09 Aug 2022 16:54:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=POflQHe8EuD5jrWF9kXV5ybDsg0WLQAy7hfhc7X/WT4=; b=NxqfN2OYfhE7dWH2WCd1w1pkVtjP9L16YOmHSYHUx9oCF/Zj1I3Li1XxXZ5eO623W3 sfAFROzao0nzwIq5Nuh/SokjlpuRH92G1YgGGSKPfttRNorohdnwXei6Q8nMLL+C5I9i Qu3I1UwFxydwzXLWcRRFnUXtwc9W78CorLXL7SsrnsZZf1NvSKOjuYwxve6A1GvK82Ne ZS5I2NURu69PtFI+cF2W0SXTHj/af3h1KXsuT8rDXlvnCBkJ0YTQoU2tuNk2bKwF0Fk+ fWeoNsfIAotQQCn5Z29Oq0ArYg3LcJhoE2/hWiP68zZABOtJswa774iIxxYGEeuHgpnf Nnvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=POflQHe8EuD5jrWF9kXV5ybDsg0WLQAy7hfhc7X/WT4=; b=HeE5HBpziacmNWeMe1lUAw6RbTiqUsc4EDs1jBoVFZvqtG51TgAWBlaH+M5w3mPsOq GyVf6nZrrKlsjuQ1mu6cZ3dw3RkSv/O4cgyrjV7Em+wXpQMoRpIHgDXLjG/bW9wW7vGn E0reEYpdIH9fGCrNGCC2cnNnvZ1OrKbN4wc35nS1aJcXE9PWNuQIXLQ7NOP/uI8DcHvi 2ZloejH+s+LO/IDk7P/mJau1wtGVYuJ7H+/rYT+Los0WanC/7HgUbhzOhI5rn89ihxjn moWkbt0Z5ZDul/3OMM6I13J/xHulfAO725BPh6wK4zkAGuUhTO2TEBtnd4sl+TxYUFmp hZGQ== X-Gm-Message-State: ACgBeo0dCCzOeavXjnB4OA4ll/u3M98iPvUGrr4N0KnMrABjBA6C6PfA lUtAj/sN5dcWt26ujchl+wXHY0M1xO+SPr8R88flQXeh X-Google-Smtp-Source: AA6agR4waieXmXQqOC7lM6x0TvQ8Fe3g6ZA253YMb41NOzHvOCkqLT1pPe/mpUeVGf2Zo6qVrFOG9AMEyTwSmyKYSfM= X-Received: by 2002:ab0:6716:0:b0:38c:cdcd:1556 with SMTP id q22-20020ab06716000000b0038ccdcd1556mr4305740uam.63.1660089243481; Tue, 09 Aug 2022 16:54:03 -0700 (PDT) MIME-Version: 1.0 References: <-WzfXRgBunfV6CTG4v5TA24Vk7Vty4mGqGpQdTTU2OkJpt-i1gM2iOOEDl9ODBZd1xuARNui4gnp1gZfkPtmHwlSwMmdagPc2fEXJyCWRJI=@protonmail.com> <1df52a98b3eaf5e49bbbef852dd33d188b16f757.camel@gmail.com> <2368e93f4beab4a962a324c33a234786ac45848b.camel@gmail.com> <462ab8b824dc49f099b81b1e2eb8f0e59a0d7e39.camel@gmail.com> <5SoKwC-pzglh33cUxrCFU0cfNr-6bvU4E_fNwP3eWNBZLC8f38M6b_-dv3Th39qgzxVgXXiBxJpXbGPxq9UOJNY9ulVUXcO6zMXIxr5agnk=@protonmail.com> In-Reply-To: From: Andrew Whatson Date: Tue, 9 Aug 2022 23:53:52 +0000 Message-ID: Subject: Re: libgccjit is unusable To: John Kehayias Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 55657 Cc: Tobias Geerinckx-Rice , "remco@remworks.net" , Liliana Marie Prikler , "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 (-) John Kehayias wrote: > > As for the original issue here, I guess the LIBRARY_PATH and ld shadowing= is the workaround. I don't know if that is something that can/should be in= corporated into the libgccjit package definition or should just be handled = by any package using it. Currently, that will just be emacs anyway and hope= fully the discussion here is useful to anyone trying to use libgccjit. This might be possible by adding LIBRARY_PATH to native-search-paths in the libgccjit package definition? > Thanks again Lily and Andrew for your work here! Thanks John & Lily for persisting with getting this submitted, I'm very grateful for your efforts. Cheers, Andrew From unknown Fri Jun 20 05:37:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 07 Sep 2022 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator