Hello All,

I apparently have a makefile bug (the bug is mine, not of make!) in
the GCC MELT branch, only when using it for plugin.

In case you want to help me, here are the gory details

First, read http://gcc-melt.org/ & http://gcc-melt.org/leaflet.html &
http://gcc.gnu.org/wiki/MELT for the context.

To reproduce the bug, assuming you have a gcc-4.5 enabled for plugins
installed somewhere:

Retrieve the entire GCC MELT branch, eg. rev 165598 (actually, you'll
need very few files from it). I call $GCCMELTSOURCE the source tree from SVN

You don't have to build the GCC MELT branch (in a seperate build tree) to 
reproduce the bug, but just

cd $GCCMELTSOURCE
./contrib/make-melt-source-tar.sh $GCCMELTSOURCE /tmp/gccmeltplugin
## this have created a /tmp/gccmeltplugin directory & its tar archive 
/tmp/gccmeltplugin.tgz
cd /tmp/gccmeltplugin
## now try to build MELT as a plugin to gcc-4.5, this is a shell script which 
eventually run make
env GCC=gcc-4.5 ./build-melt-plugin.sh -M /tmp/gccmeltplugin -Y 
gt-melt-runtime-plugin-4.5.h

#############################

More simply, I don't master every detail of make.
In the gcc/melt-make.mk file of the GCC MELT branch (which gets copied into 
/tmp/gccmeltplugin) I have things like

warmelt-%.so: warmelt-%.c  $(melt_make_module_makefile) melt-predef.h 
cc1$(exeext)
        $(MELT_MAKE_MODULE) melt_module \
              GCCMELT_CFLAGS="$(melt_cflags) $(MELT_FINAL_CFLAGS)" \
              GCCMELT_MODULE_SOURCE=$< GCCMELT_MODULE_BINARY=$@

and I believed that just having the above rule is enough to get it triggered 
when makeing warmelt-first.1.so, but apparently not,  with make -d I am getting

Trying pattern rule with stem `first.1'.
 Rejecting impossible implicit prerequisite `warmelt-first.1.c'.

What does stem means in the context of make?

###

The funny thing is that the same melt-make.mk Makefile is used (perhaps in a 
slightly different context) when building GCC MELT branch and it works. Perhaps 
I have a vpath issue somewhere.


Cheers.
-- 
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 mine, sont seulement les miennes} ***

Reply via email to