From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SJkzJ+17j2KnUwAAbAwnHQ (envelope-from ) for ; Thu, 26 May 2022 15:09:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gA0zJu17j2JK4wAAG6o9tA (envelope-from ) for ; Thu, 26 May 2022 15:09:01 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5893B395B2 for ; Thu, 26 May 2022 15:09:00 +0200 (CEST) Received: from localhost ([::1]:36330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuDEZ-0004tp-98 for larch@yhetil.org; Thu, 26 May 2022 09:08:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuDDe-0004s4-Lm for bug-guix@gnu.org; Thu, 26 May 2022 09:08:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35253) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuDDe-0004Nn-7B for bug-guix@gnu.org; Thu, 26 May 2022 09:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nuDDe-0003la-2w for bug-guix@gnu.org; Thu, 26 May 2022 09:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55657: libgccjit is unusable Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 26 May 2022 13:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55657 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 55657@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165357043614398 (code B ref -1); Thu, 26 May 2022 13:08:01 +0000 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: From: Liliana Marie Prikler 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653570540; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=UBQL/q3JLhiDJ206YL01QP8w7BqYJagBCF37dDmDkQk=; b=SEblJPK8ZMAGGGokGl4AYjOiPxZeqeHf7oD4ETQOxlkIl3CvjvEITELqhVgQiMyAsSugJU 0T+5GpJOu4QYBZ4Gp9w0cR4iCnroY77c11ApeJ43x12c+/k1MH/ST5IypAnp+aPYrbYQrl 1oCx7Qbo/OLsCz4osU6gidJ5V3JbrgqiPV9UsMosZhISWqaB2fZl5gKhzD03GmEOgEN6xA ttVm7hCxhDbYpblwRWGaiDn4N2k1V1RWtMTxXV7D3QNO3//4trcNRHV31DJIPjXtCOWsz7 3b9B4smn+ZIhilSS7FVDOsCJMPj4kjD9a4KcTAtjjD8K/8mwEUZ86Kw8VAUB3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653570540; a=rsa-sha256; cv=none; b=Fy+PQ84or1UQpFfbQnNluj0k43MpJNf3NZyhDJ0KWFxQQ57nnn9Y+76OaR7g2hdujjiJbi uGKITE37luw4JqO7F0WF4taeOcj63winY+0O5rzTLC4n0L7+09G2fMWSMnoD5nBXD36OoT yOt2QIkAV/+VbEeXXkJNiy0ibiHkLZfVrEnhaOEGh6fzs7KNJyOROKNxN4XQS3N4wqq7ZL RKKK69rqyUjizD4+ZE3yXs6qTIgqj1XJgiAA/Yd/ze23EHseESa0fWZjqerukeWxq6xbea XV+Jl8Jhly/HdH07iIUdYahkiePEtb1w3ReAVAB39yRIpxEOb2tGR4F607HqfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Sk6dM2Rk; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Sk6dM2Rk; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5893B395B2 X-Spam-Score: 3.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: eG1iS7BJV6R1 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