help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retrieving the "include" directory for Emacs Modules


From: Basile Starynkevitch
Subject: Re: Retrieving the "include" directory for Emacs Modules
Date: Fri, 20 Dec 2024 10:01:42 +0100
User-agent: Evolution 3.52.3-0ubuntu1

On Fri, 2024-12-20 at 09:09 +0200, Eli Zaretskii wrote:
> > From: Björn Bidar <bjorn.bidar@thaodan.de>
> > Cc: Stefan Monnier <monnier@iro.umontreal.ca>
> > Date: Fri, 20 Dec 2024 01:50:31 +0200
> > 
> > Why not install the Emacs module header to PREFIX/include on these
> > platforms
> 
> We already do that.


A suggestion (perhaps a stupid one) might be to 

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 

       #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 
(GNU emacs commit is 926a9c864adc29f056) and it fails to build after an
autogen.sh and a 
'./configure'  '--program-suffix=-trunk' '--with-x-toolkit=gtk3' \
   '--with-native-compilation' '--with-sqlite3' '--with-modules' \
   '--with-gpm' '--disable-silent-rules' '--without-rsvg' \
   'CFLAGS=-O2 -g' 'CC=/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 
/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).

-- 
Basile STARYNKEVITCH           <basile@starynkevitch.net>
8 rue de la Faïencerie
92340 Bourg-la-Reine,          France
http://starynkevitch.net/Basile & https://github.com/bstarynk 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]