GCC problems

Thomas T. Veldhouse veldy at veldy.net
Thu Jan 4 08:00:30 PST 2001


Are you using glibc-2.2 or glibc-2.1.3?

My guess is that they updated gcc for glibc-2.2 and you are still using
glibc-2.1.3.

Tom Veldhouse
veldy at veldy.net

----- Original Message -----
From: "Robert Mcleod" <soapman at paradise.net.nz>
To: <lfs-config at linuxfromscratch.org>
Sent: Thursday, January 04, 2001 4:20 PM
Subject: GCC problems


> Hi, I'm new to the list (new to the art of building a linuxfromscratch
system
> too!) and I'm having problems trying to compile gcc (Chapter two)
>
> My computer is running Debian SID on kernel 2.2.17
> I have $LFS variable set to /mnt/lfs which is a 900mb partition.
>
> I've installed everything in chapter two up to gcc. I skipped the portion
about
> compiling gcc for the current environment as gcc --version gave this
response:
>
> [root at soapbox]/mnt/lfs/usr/src/gcc-build# gcc --version
> 2.95.3
> [root at soapbox]/mnt/lfs/usr/src/gcc-build#
>
> I went straight to the section "Installation of GCC on the LFS system",
> extracted the bzip, and followed the book and typed exactly what it said:
>
> mkdir $LFS/usr/src/gcc-build &&
> cd $LFS/usr/src/gcc-build &&
>
.../gcc-2.95.2/configure --prefix=/usr --with-gxx-include-dir=/usr/include/g+
+
> --enable-languages=c,c++ --disable-nls &&
> make -e DFLAGS=-static bootstrap &&
> make prefix=$LFS/usr local_prefix=$LFS/usr/local
> gxx_include_dir=$LFS/usr/include/g++ install
>
>
> I've watched it compile from beginning to end, it configures fine and it
seems
> to do stage 1 and stage 2 of make bootstrap fine, but when it starts doing
> stage 3, when it tries to build indstream.o it stuffs up.
>
> Here is a dump from near the end that may shed light on something to
someone:
> (I see alot of warning msgs, maybe too many for gcc to be bothered with?)
>
>
>  /mnt/lfs/usr/src/gcc-build/gcc/xgcc -B/mnt/lfs/usr/src/gcc-build/gcc/
> -B/usr/i686-pc-linux-gnu/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE
> -fno-implicit-templates -I. -I../../../gcc-2.95.2/libio -nostdinc++
> -D_IO_MTSAFE_IO  ../../../gcc-2.95.2/libio/indstream.cc -o pic/indstream.o
> /mnt/lfs/usr/src/gcc-build/gcc/xgcc -B/mnt/lfs/usr/src/gcc-build/gcc/
> -B/usr/i686-pc-linux-gnu/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE
> -fno-implicit-templates -I. -I../../../gcc-2.95.2/libio -nostdinc++
> -D_IO_MTSAFE_IO ../../../gcc-2.95.2/libio/indstream.cc
> ../../../gcc-2.95.2/libio/indstream.cc: In method `struct streampos
> indirectbuf::seekoff(long long int, ios::seek_dir, int = 3)':
> ../../../gcc-2.95.2/libio/indstream.cc:82: `struct streampos' used where a
> `int' was expected ../../../gcc-2.95.2/libio/indstream.cc:85: `struct
> streampos' used where a `int' was expected
> ../../../gcc-2.95.2/libio/indstream.cc:87: `struct streampos' used where a
> `int' was expected ../../../gcc-2.95.2/libio/indstream.cc:89: conversion
from
> `int' to non-scalar type `streampos' requested
> ../../../gcc-2.95.2/libio/indstream.cc: In method `struct streampos
> indirectbuf::seekpos(_G_fpos64_t, int = 3)':
> ../../../gcc-2.95.2/libio/indstream.cc:99: `struct streampos' used where a
> `int' was expected ../../../gcc-2.95.2/libio/indstream.cc:102: `struct
> streampos' used where a `int' was expected
> ../../../gcc-2.95.2/libio/indstream.cc:104: `struct streampos' used where
a
> `int' was expected ../../../gcc-2.95.2/libio/indstream.cc:106: conversion
from
> `int' to non-scalar type `streampos' requested make[2]: *** [indstream.o]
Error
> 1 make[2]: Leaving directory
> `/mnt/lfs/usr/src/gcc-build/i686-pc-linux-gnu/libio' make[1]: ***
> [all-target-libio] Error 2 make[1]: Leaving directory
> `/mnt/lfs/usr/src/gcc-build' make: *** [bootstrap] Error 2
>
> hrm maybe if i change occurences of 'struct streampos' to int it will
compile?
> I'll give that a shot first, and post my results :)
>
> I might try an apt-get update, followed by another get of gcc first, just
to
> see if sid is still using gcc2.95.3.
>
> Anyway, any suggestions on how to fix my problem (short of replacing gcc!)
> would be nice :)
>
> Thanks,
> Robert Mcleod
>
>
> ****************
> Who needs a signature when you're omnipresent?
> ****************
>
> --
> Unsubscribe: send email to lfs-apps-request at linuxfromscratch.org
> and put unsubscribe in the subject header of the message
>
>


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




More information about the blfs-support mailing list