gm2
[Top][All Lists]
Advanced

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

[Gm2] gcc-3.3.1+gm2-20030926 build fails on Debian Woody


From: Waldek Hebisch
Subject: [Gm2] gcc-3.3.1+gm2-20030926 build fails on Debian Woody
Date: Sun, 28 Sep 2003 22:13:17 +0200 (MET DST)

I am trying to build GNU M2 from the latest tarball 
(gcc-3.3.1+gm2-20030926.tar.gz).

I using Debian Woody:

address@hidden:/arc/pom/gcc/gm/gm2-lin$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)


I unpacked the tarball and configured:
../gcc-3.3.1+gm2-20030926/configure --enable-checking --enable-languages=c,gm2

then I run make:
make > mlogg 2>&1 &

make stopped with the message:
gcc   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes  -fno-common  -DHAVE_CONFIG_H  -o stage1/gm2/cc1gm2 
gm2/gccgm2.o gm2/gm2builtins.o gm2/gm2-lang.o         
gm2/gm2-compiler-boot/gm2.a gm2/gm2-libs-boot/libgm2.a 
gm2/p2c/p2c-src/src/libp2c.a                     main.o libbackend.a   
../libiberty/libiberty.a
libbackend.a(toplev.o): In function `set_Wunused':
/arc/pom/gcc/gm/gm2-lin/gcc/../../gcc-3.3.1+gm2-20030926/gcc/toplev.c:1563: 
multiple definition of `current_function_decl'
gm2/gccgm2.o(.bss+0x0):/arc/pom/gcc/gm/gm2-lin/gcc/../../gcc-3.3.1+gm2-20030926/gcc/gm2/gccgm2.c:
 first defined here
collect2: ld returned 1 exit status
make[2]: *** [stage1/gm2/cc1gm2] Error 1
make[2]: Leaving directory `/arc/pom/gcc/gm/gm2-lin/gcc'
cp: cannot stat `stage2/gm2/cc1gm2': No such file or directory
make[1]: *** [cc1gm2] Error 1
make[1]: Leaving directory `/arc/pom/gcc/gm/gm2-lin/gcc'
make: *** [all-gcc] Error 2

So I edited `gccgm2.c' to remove declaration of `current_function_decl'
and remade. Then I got:

gcc   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes  -fno-common  -DHAVE_CONFIG_H  -o stage1/gm2/h2def \
              gm2/gm2-compiler/clex.o \
              gm2/gm2-compiler-boot/CLexBuf.o \
              gm2/gm2-compiler-boot/h2def_init.o \
              gm2/gm2-compiler-boot/h2def.o gm2/gm2-compiler-boot/gm2.a 
gm2/gm2-libs-boot/libgm2.a gm2/p2c/p2c-src/src/libp2c.a                       
../libiberty/libiberty.a
gm2/gm2-compiler-boot/gm2.a(m2lex.o): In function `yylex':
/arc/pom/gcc/gm/gm2-lin/gcc/../../gcc-3.3.1+gm2-20030926/gcc/gm2/m2.lex:82: 
multiple definition of `yyin'
gm2/gm2-compiler/clex.o:/arc/pom/gcc/gm/gm2-lin/gcc/../../gcc-3.3.1+gm2-20030926/gcc/gm2/c.lex:108:
 first defined here
... many more errors
collect2: ld returned 1 exit status
make[1]: *** [stage1/gm2/h2def] Error 1
make[1]: Leaving directory `/arc/pom/gcc/gm/gm2-lin/gcc'
make: *** [all-gcc] Error 2

-- 
                              Waldek Hebisch
address@hidden 

reply via email to

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