This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
packaging GCC plugins using gengtype (e.g. MELT)?
- From: Basile Starynkevitch <basile at starynkevitch dot net>
- To: debian-gcc at lists dot debian dot org
- Cc: Sylvestre Ledru <sylvestre at debian dot org>, gcc at gcc dot gnu dot org
- Date: Sun, 14 Mar 2010 13:15:37 +0100
- Subject: packaging GCC plugins using gengtype (e.g. MELT)?
- References: <4B989833.70705@starynkevitch.net>
Basile Starynkevitch wrote in
http://lists.debian.org/debian-gcc/2010/03/msg00047.html
Now, one of the issues about MELT & Debian packaging is the fact that
melt-runtime.c (the source of melt.so plugin) uses GTY
http://gcc.gnu.org/onlinedocs/gccint/Type-Information.html#Type-Information
& register GGC roots thru PLUGIN_REGISTER_GGC_ROOTS ... Hence, it needs
gengtype (from GCC 4.5 build tree) to generate gt-melt-runtime.h
[#include-ed from melt-runtime.c] so the entire GCC 4.5 source & build
trees are needed to build melt.so (or any other gengtyp-ing GCC plugin).
See also http://gcc.gnu.org/ml/gcc/2010-03/msg00120.html &
http://gcc.gnu.org/ml/gcc/2010-03/msg00129.html
I did wrote a script to build the GCC MELT plugin, and I even made a
tarball snapshot of it -but it is much preferable to retrieve it thru
subversion from the GCC MELT branch-
I also updated the instructions to build GCC MELT as a plugin on
http://gcc.gnu.org/wiki/MELT%20tutorial which contains a link to the
snapshot tarball. I will probably update that link when useful.
Regards.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***