From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0GcqIH7l6mLrngAAbAwnHQ (envelope-from ) for ; Wed, 03 Aug 2022 23:15:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IAryH37l6mKeugAAauVa8A (envelope-from ) for ; Wed, 03 Aug 2022 23:15:42 +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 142001401A for ; Wed, 3 Aug 2022 23:15:42 +0200 (CEST) Received: from localhost ([::1]:35712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJLiP-0005TQ-9c for larch@yhetil.org; Wed, 03 Aug 2022 17:15:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJLgo-0004KQ-OP for bug-guix@gnu.org; Wed, 03 Aug 2022 17:14:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60410) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJLgo-0003lW-Bx for bug-guix@gnu.org; Wed, 03 Aug 2022 17:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJLgo-00061Y-7A for bug-guix@gnu.org; Wed, 03 Aug 2022 17:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55657: libgccjit is unusable Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 03 Aug 2022 21:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55657 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Liliana Marie Prikler Cc: Andrew Whatson , Tobias Geerinckx-Rice , "remco@remworks.net" , "55657@debbugs.gnu.org" <55657@debbugs.gnu.org> Received: via spool by 55657-submit@debbugs.gnu.org id=B55657.165956123023129 (code B ref 55657); Wed, 03 Aug 2022 21:14:02 +0000 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== 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-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" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias From: John Kehayias via Bug reports for GNU 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=1659561342; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=P/9+WpT+uw6f+bbgOf5BHadIhm1ZP649NNDues0Ihh8=; b=szWb+AJVxXm7m75v9R+/FDSaaQQQW997qDJK9FZlXqdZEKH5pbiQxmBwXO7awtwocyw3tQ xf9ydMHDVJFrS6fUgL+AQl2nE6/TzPCxE+U0U7hbQCxhPTDtlF8AEExw2tO6xXMtOMaK78 YzneUiGWewbJq+q3PdXFzw/JXKzdrPv+GhqW9tAH+wONzEjOiXD4kdLyZyppMRX0XcZQC3 J7Y9lhVWwhIsCuF5u5VuECKN3JBrJQ3sKjJCg6e8JQkJOA6f2EzolybpBKSXYy+RQOPx5Y fxFmySw90aDt3KQUKjyTI6PpDaN2Bdx5NjbYUbN5C1dq9FA37ZPzum3y30dhEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659561342; a=rsa-sha256; cv=none; b=XIqc/6ncCShYLS4kKyphrO/gWeCNAgywMf650ImWvIGTSCpIB4SV8NBjRzBqBykEFrTCNr HSOXQChd3rWeOA7jR6Umd9P2G/6RuL1vuEp+oN1Wsk+0NnQ3BLrA0CkIEshGkRJwFfqHEY EFJTB5RG176qVdwzlWoBg64vgVjLnHwM5klnryQ01hFLY0yN9ddUt9HUd3OcnXZpeBZ/aw WG6DZC7qbdLGggnXPTfNi8xZYWNSBxqZ6KSXoA09+F7TRu/txbNtvZdaw65CfHGfWuZ/yk IJ/HAxtZM6JBsBBueLFbs4G+s/T3k/NiHQuT5cdmiGXegBmh6Mt+MUS+k/T8Dw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=exzppopi; dmarc=pass (policy=none) header.from=gnu.org; 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: -0.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=exzppopi; dmarc=pass (policy=none) header.from=gnu.org; 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: 142001401A X-Spam-Score: -0.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: XsJh+nydgIYb 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