From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Basile Starynkevitch Newsgroups: gmane.emacs.help Subject: Re: Retrieving the "include" directory for Emacs Modules Date: Fri, 20 Dec 2024 10:01:42 +0100 Message-ID: References: <86ttbcdhwn.fsf@gnu.org> <865xnscj0s.fsf@gnu.org> <87ttazmdvc.fsf@> <86msgqkeyv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3251"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.52.3-0ubuntu1 To: Eli Zaretskii , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 20 10:02:30 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tOYty-0000hS-6a for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 20 Dec 2024 10:02:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOYtR-0007tN-6p; Fri, 20 Dec 2024 04:01:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOYtP-0007tE-0z for help-gnu-emacs@gnu.org; Fri, 20 Dec 2024 04:01:55 -0500 Original-Received: from relay5-d.mail.gandi.net ([2001:4b98:dc4:8::225]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOYtL-0003L6-5V; Fri, 20 Dec 2024 04:01:54 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 696B71C000E; Fri, 20 Dec 2024 09:01:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=starynkevitch.net; s=gm1; t=1734685303; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=FleBvLKQTCwtmGMDxtEaOpuo2CEieJC82dyk8/sAsu4=; b=NHFqxI0pgC2s9PRAUwt5p1Ip04WkvKAIDkHxqW4T1SLlyPVfCs+bKAqk5IAdo3a7/gde5Z Wg3bY2zkNy8vNHKjc30J23Dg5NxI2JzGwktcKiUmRfHsXnHLk06TrHCZ1U+hGDe0RNpkOn rsoArhYGJna4L8AtdYfj1jd1rtNcGBT4+5D9OoubakMNsvz+t5SO6QM3/JkkosjiHMqoB3 pBFNVojBedHxVNacu9+mpOf7aPXWGthIobI8zReLZQWml84mJmP2bTSexMHYAzZrtb1kSk yKi3vikUWptxXD64D8QhFt/qhlC0oZlDpJO8emdKY+AHFSEUZpPv43yvl0GnRQ== In-Reply-To: <86msgqkeyv.fsf@gnu.org> X-GND-Sasl: basile@starynkevitch.net Received-SPF: pass client-ip=2001:4b98:dc4:8::225; envelope-from=basile@starynkevitch.net; helo=relay5-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148892 Archived-At: On Fri, 2024-12-20 at 09:09 +0200, Eli Zaretskii wrote: > > From: Bj=C3=B6rn Bidar > > Cc: Stefan Monnier > > Date: Fri, 20 Dec 2024 01:50:31 +0200 > >=20 > > Why not install the Emacs module header to PREFIX/include on these > > platforms >=20 > We already do that. A suggestion (perhaps a stupid one) might be to=20 1. have some C function (or C #define) in PREFIX/include/emacs-module.h give the installed PREFIX string. On my Linux Mint 22 (x86-64) desktop the system file /usr/include/emacs-module.h is provided by package emacs-common and apparently don't have any such thing (I didn't look inside the #include-d files). Of course I mean something better and more robust than=C2=A0 #define EMACS_INCLUDE_FILE __FILE__ 2. have an Elisp builtin function (maybe there is one already but C-h a don't find it) which returns the Elisp string giving the prefix. BTW I just git clone-d https://git.savannah.gnu.org/git/emacs.git into my desktop's /usr/src/Editors/emacs directory=C2=A0 (GNU emacs commit is 926a9c864adc29f056) and it fails to build after an autogen.sh and a=20 './configure' '--program-suffix=3D-trunk' '--with-x-toolkit=3Dgtk3' \ '--with-native-compilation' '--with-sqlite3' '--with-modules' \ '--with-gpm' '--disable-silent-rules' '--without-rsvg' \ 'CFLAGS=3D-O2 -g' 'CC=3D/usr/bin/gcc-14' the failure message is: checking for gcc_jit_context_acquire in -lgccjit... yes checking libgccjit.h usability... yes checking libgccjit.h presence... yes checking for libgccjit.h... yes configure: error: The installed libgccjit failed to compile and run a test program using the libgccjit library; see config.log for the details of the failure. But libgccjit is installed in=C2=A0 /usr/lib/gcc/x86_64-linux-gnu/14/include/libgccjit.h I also did compile gcc-15-20241215 from source code, so I also do have a /usr/local/include/libgccjit.h file My emacs config.log file can be downloaded by you before mid-january 2025 (at least on Linux) using wget http://starynkevitch.net/Basile/emacs-926a9c864adc29f0-config.log and its md5sum is 118c070dae8805c5c217a05b36659c18 At last my GPL licensed open source project is an inference engine on https://github.com/RefPerSys/RefPerSys (coded in C++ and work in progress). I eventually hope to make that RefPerSys (REFlexive PERsistent SYStem) a GNU project and I even hope to have some students (worldwide) contributing a bit to it. Regards from near Paris in France. NB. 15 years ago I contributed to GCC (plugin machinery). --=20 Basile STARYNKEVITCH 8 rue de la Fa=C3=AFencerie 92340 Bourg-la-Reine, France http://starynkevitch.net/Basile & https://github.com/bstarynk=20