On Tue, 2010-05-25 at 12:03 +0200, Wolfgang wrote:
> Hello,
> 
> I tried to compile the gcc-melt branch from svn, 

A big thanks for testing GCC MELT! What svn revision of the MELT branch
are you testing? Did you configure gcc-melt with --enable-bootstrap?

Can you reproduce the bug inside a clean build tree? (I mean, removing
all your build tree, and start again the configure & the build)

> 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"

Which gcc is this one? (What does gcc -v tells you?).

I hoped to have corrected this bug by adding the MELTHERE_CFLAGS in GCC
MELT's gcc/Makefile.in near line 5076. I am not a guru in autoconf + GNU
make tricks. Apparently, something is still wrong.

A dirty workaround might be to replace every -gtoggle occurrence in the
build tree gcc/Makefile with -g.

I will try to reproduce that bug!

Thanks for reporting it.


BTW, I am surprised that GCC (even a plain 4.4 or 4.5) issues an error
for an unrecognised debug output level. I would imagine it would in that
case issue a warning, and try to do what -g does...

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 mines, sont seulement les miennes} ***


Reply via email to