gcc 3.2 compilation error

thomas thomas.degris at wanadoo.fr
Thu Oct 24 13:44:17 PDT 2002


Hello,

I am trying to compile gcc 3.2 in static (to install a Lfs 4.1). So, I 
applied the two different patch as following :

==> patch -Np1 -i ../gcc-3.2.patch
patching file gcc/calls.c
patching file gcc/calls.c
patching file gcc/config/i386/i386.h
patching file gcc/expr.c
{lfs at clementine}--{/usr/src/lfs-packages-4.0-rc1/gcc-3.2}
==> patch -Np1 -i ../gcc-3.2-nofixincludes-2.patch
patching file gcc/Makefile.in

and I run the compilation as indicated in the lfs book :

*mkdir ../gcc-build &&
cd ../gcc-build &&
../gcc-3.2/configure --prefix=/static --enable-languages=c \
   --disable-nls --disable-shared &&
echo "#define HAVE_GAS_HIDDEN 1" >> gcc/auto-host.h &&
make BOOT_LDFLAGS=-static bootstrap &&
make prefix=$LFS/static install &&
ln -s gcc $LFS/static/bin/cc

*My problem is I got the following error during compiling Gcc 3.2 :
gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long 
-DHAVE_CONFIG_H -DGENERATOR_FILE -I/usr/include -I/usr/network/include 
  -I. -I. -I../../gcc-3.2/gcc -I../../gcc-3.2/gcc/. 
-I../../gcc-3.2/gcc/config -I../../gcc-3.2/gcc/../include 
../../gcc-3.2/gcc/read-rtl.c -o read-rtl.o
../../gcc-3.2/gcc/read-rtl.c: In function `fatal_with_file_and_line':
../../gcc-3.2/gcc/read-rtl.c:67: warning: implicit declaration of 
function `VA_OPEN'
../../gcc-3.2/gcc/read-rtl.c:67: `ap' undeclared (first use in this 
function)
../../gcc-3.2/gcc/read-rtl.c:67: (Each undeclared identifier is reported 
only once
../../gcc-3.2/gcc/read-rtl.c:67: for each function it appears in.)
../../gcc-3.2/gcc/read-rtl.c:68: warning: implicit declaration of 
function `VA_FIXEDARG'
../../gcc-3.2/gcc/read-rtl.c:68: parse error before `FILE'
../../gcc-3.2/gcc/read-rtl.c:69: parse error before `const'
../../gcc-3.2/gcc/read-rtl.c:90: warning: implicit declaration of 
function `VA_CLOSE'
make[2]: *** [read-rtl.o] Error 1
make[2]: Leaving directory `/usr/src/lfs-packages-4.0-rc1/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/usr/src/lfs-packages-4.0-rc1/gcc-build/gcc'
make: *** [bootstrap] Error 2


So, I would like to know if somebody got the same problem and how to fix 
that... I am running a Lfs 3.2 (I think.... I am not totally sure).

Thank you very much,

All the best,

Thomas

PS: sorry if this is the second mail I send. I had some problem with my 
mozilla.

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list