error compiling gcc3.2 statically (chapter 5 LFS4.0)

Greg Schafer gschafer at zip.com.au
Wed Jan 22 16:16:45 PST 2003


On Thu, Jan 23, 2003 at 01:14:24AM +0100, mojoman wrote:
> Hi, can anybody help me with this on LFS4.0. Compiling gcc3.2 in chapter 5
> (static) results in this error. Ive compiled this before on same system
> (RedHat 6.2) before and had no problem then.
> 
> // Thomas
> 
> TARGET_CPU_DEFAULT="" \
> /bin/sh ../../gcc-3.2/gcc/mkconfig.sh tconfig.h
> ./xgcc -B./ -B/static/i586-pc-linux-gnu/bin/ -isystem
> /static/i586-pc-linux-gnu/include -isystem
> /static/i586-pc-linux-gnu/sys-include -O2 -DIN_GCC    -W -Wall
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
> ./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  -g0
> -finhibit-size-directive -fno-inline-functions -fno-exceptions
> -fno-omit-frame-pointer \
>    -c ../../gcc-3.2/gcc/crtstuff.c -DCRT_BEGIN \
>   -o crtbegin.o
> /tmp/ccFtx0cL.s: Assembler messages:
> /tmp/ccFtx0cL.s:21: Error: Unknown pseudo-op:  `.hidden'
> make[2]: *** [crtbegin.o] Error 1
> make[2]: Leaving directory `/mnt/lfs/static/gcc-build/gcc'
> make[1]: *** [stage1_build] Error 2
> make[1]: Leaving directory `/mnt/lfs/static/gcc-build/gcc'
> make: *** [bootstrap] Error 2

Your host is prolly too old. But you should be able to work around the
problem by utilising the Ch 5 gcc instructions from LFS cvs:-

ie: add

   --with-as=$LFS/static/bin/as \
   --with-ld=$LFS/static/bin/ld

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