This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Melt-building problem
On Tue, 2010-05-25 at 17:09 +0200, Wolfgang wrote:
> -------- Original-Nachricht --------
> > Datum: Tue, 25 May 2010 16:20:14 +0200
> > Von: Basile Starynkevitch <basile@starynkevitch.net>
> > An: Wolfgang <wolfgang8081@gmx.de>
> > CC: gcc@gcc.gnu.org
> > Betreff: Re: Melt-building problem
>
> > On Tue, 2010-05-25 at 12:03 +0200, Wolfgang wrote:
> > > Hello,
> > >
> > > I tried to compile the gcc-melt branch from svn,
It could happen that Wolfgang is hacking inside the MELT runtime to add
support for loop-s.
> >
> > > but i get the following error:
> > >
> > > ....
> > > make warmelt1
> > > make[4]: Entering directory `/home/wolfgang/gcc-melt/objects/gcc'
> > > date +"/* empty-file-for-melt.c %c */" > empty-file-for-melt.c-tmp
> > > /bin/bash ../../melt-branch/gcc/../move-if-change
> > empty-file-for-melt.c-tmp empty-file-for-melt.c
> > > make -f ../../melt-branch/gcc/melt-module.mk
> > VPATH=../../melt-branch/gcc:. meltmodule \
> > > GCCMELT_CFLAGS="-g -O2 -fomit-frame-pointer -g -g -O2
> > -fomit-frame-pointer -gtoggle -DIN_GCC -DHAVE_CONFIG_H -I melt-private-build-include
> > -I." \
> > >
> > GCCMELT_MODULE_SOURCE=../../melt-branch/gcc/melt/generated/warmelt-first.0.c GCCMELT_MODULE_BINARY=warmelt-first.0.so
> > > make[5]: Entering directory `/home/wolfgang/gcc-melt/objects/gcc'
> > > gcc -g -O2 -fomit-frame-pointer -g -g -O2 -fomit-frame-pointer -gtoggle
> > -DIN_GCC -DHAVE_CONFIG_H -I melt-private-build-include -I. -fPIC -c -o
> > warmelt-first.0.pic.o ../../melt-branch/gcc/melt/generated//warmelt-first.0.c
> > > cc1: error: unrecognised debug output level "toggle"
Perhaps re-merging the current MELT branch into your private branch
(assuming you have a private MELT variant) might help, because on my
side with GCCMELT_CC set to gcc-4.5 the make log contains
make warmelt1
make[4]: Entering directory `/usr/src/Lang/_MeltBoot/Obj/gcc'
date +"/* empty-file-for-melt.c %c */" > empty-file-for-melt.c-tmp
/bin/bash ../../melt-branch/gcc/../move-if-change
empty-file-for-melt.c-tmp empty-file-for-melt.c
make -f ../../melt-branch/gcc/melt-module.mk
VPATH=../../melt-branch/gcc:. meltmodule \
GCCMELT_CFLAGS="-g -fkeep-inline-functions -g
-fkeep-inline-functions -DIN_GCC -DHAVE_CONFIG_H -I
melt-private-build-include -I." \
GCCMELT_MODULE_SOURCE=../../melt-branch/gcc/melt/generated/warmelt-first.0.c GCCMELT_MODULE_BINARY=warmelt-first.0.so
make[5]: Entering directory `/usr/src/Lang/_MeltBoot/Obj/gcc'
gcc-4.5 -g -fkeep-inline-functions -g -fkeep-inline-functions -DIN_GCC
-DHAVE_CONFIG_H -I melt-private-build-include -I. -fPIC -c -o
warmelt-first.0.pic.o ../../melt-branch/gcc/melt/generated//warmelt-first.0.c
gcc-4.5 -g -fkeep-inline-functions -g -fkeep-inline-functions -DIN_GCC
-DHAVE_CONFIG_H -I melt-private-build-include -I. -fPIC -c -o
warmelt-first.0
+01.pic.o ../../melt-branch/gcc/melt/generated//warmelt-first.0+01.c
echo '/*' generated file ./warmelt-first.0-stamp.c '*/' >
warmelt-first.0-stamp.c-tmp
date "+const char melt_compiled_timestamp[]=\"%c \";" >>
warmelt-first.0-stamp.c-tmp
echo "const char melt_md5[]=\"\\" >> warmelt-first.0-stamp.c-tmp
for f
in ../../melt-branch/gcc/melt/generated/warmelt-first.0.c ../../melt-branch/gcc/melt/generated/warmelt-first.0+01.c; do \
md5line=`md5sum $f` ; \
printf "%s\\\n" $md5line >> warmelt-first.0-stamp.c-tmp; \
done
echo "\";" >> warmelt-first.0-stamp.c-tmp
echo "const char melt_csource[]=
\"../../melt-branch/gcc/melt/generated/warmelt-first.0.c ../../melt-branch/gcc/melt/generated/warmelt-first.0+01.c\";" >> warmelt-first.0-stamp.c-tmp
mv warmelt-first.0-stamp.c-tmp warmelt-first.0-stamp.c
gcc-4.5 -g -fkeep-inline-functions -g -fkeep-inline-functions -DIN_GCC
-DHAVE_CONFIG_H -I melt-private-build-include -I. -fPIC -shared \
./warmelt-first.0.pic.o ./warmelt-first.0
+01.pic.o ./warmelt-first.0-stamp.c -o warmelt-first.0.so
rm -f ./warmelt-first.0-stamp.c
As you can see, the inner make -f ../../melt-branch/gcc/melt-module.mk
has no -gtoggle inside the GCCMELT_CFLAGS. I see no reason it won't work
with gcc-4.4 as GCCMELT_CC
The GCC MELT was svn checkout cleanly, the svn info is
Tue May 25 17:06:44 MEST 2010
Path: melt-branch
URL: svn://gcc.gnu.org/svn/gcc/branches/melt-branch
Repository Root: svn://gcc.gnu.org/svn/gcc
Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4
Revision: 159821
Node Kind: directory
Last Changed Author: bstarynk
Last Changed Rev: 159667
Last Changed Date: 2010-05-21 16:44:05 +0200 (Fri, 21 May 2010)
So I tend to still believe that I did fix that bug, but I am not sure of
that. And I am not able to reproduce that bug on the latest MELT branch
rev 159821
Perhaps you might try to merge again the latest MELT branch into your
private one; the changes are mostly in gcc/Makefile.in or some gcc/*.mk
I believe.
Tell us if that helps!
Cheers.