problem in libio/indstream.cc building powerpc-linux-gcc

PIYUSH GUPTA piyush_g@yahoo.com
Fri Sep 29 01:26:00 GMT 2000


Hi,

  I am building a GCC PowerPC/Linux Cross Compiler
for host i686-pc-linux-gnu.

I used the following :-
1. binutils-2.10.0.26.tar.gz
2. gcc-core-2.95.2.tar.gz
3. glibc-2.1.94.tar.gz
4. glibc-crypt-2.1.tar.gz
5. glibc-linuxthreads-2.1.94.tar.gz
6. linux-2.4.0.tar.gz
7. gcc-2.95.2.tar.gz

 I configured and build everything except gcc for c++
using target=powerpc-linux.

 I could successfully obtain xgcc, and various
flavors of libgcc.a but when libio library is being
made I get the following error messages :-
------------------------------------------------------
make[1]: Entering directory 
`/home/cdot/piyush/objdir/gcc-2.95.2/powerpc-linux/libio'
test x"no" != xyes || \
  /home/cdot/piyush/objdir/gcc-2.95.2/gcc/xgcc 
-B/home/cdot/piyush/objdir/gcc-2.95.2/gcc/ 
-B/usr/local/x-compiler/host/i686-pc-linux-gnu/powerpc-linux/bin/
-c -O2 -fvtable-thunks -D_GNU_SOURCE 
-fno-implicit-templates -I.
-I../../../../sources/gcc-2.95.2/libio -nostdinc++ 
-D_IO_MTSAFE_IO 
../../../../sources/gcc-2.95.2/libio/indstream.cc -o 
pic/indstream.o
/home/cdot/piyush/objdir/gcc-2.95.2/gcc/xgcc 
-B/home/cdot/piyush/objdir/gcc-2.95.2/gcc/ 
-B/usr/local/x-compiler/host/i686-pc-linux-gnu/powerpc-linux/bin/
-c -O2 -fvtable-thunks -D_GNU_SOURCE 
-fno-implicit-templates -I.
-I../../../../sources/gcc-2.95.2/libio -nostdinc++ 
-D_IO_MTSAFE_IO
../../../../sources/gcc-2.95.2/libio/indstream.cc
../../../../sources/gcc-2.95.2/libio/indstream.cc: In
method `struct 
streampos indirectbuf::seekoff(long long int,
ios::seek_dir, int = 3)':
../../../../sources/gcc-2.95.2/libio/indstream.cc:83:
`struct 
streampos' used where a `int' was expected
../../../../sources/gcc-2.95.2/libio/indstream.cc:86:
`struct 
streampos' used where a `int' was expected
../../../../sources/gcc-2.95.2/libio/indstream.cc:88:
`struct 
streampos' used where a `int' was expected
../../../../sources/gcc-2.95.2/libio/indstream.cc:90:
conversion from 
`int' to non-scalar type `streampos' requested
../../../../sources/gcc-2.95.2/libio/indstream.cc: In
method `struct 
streampos indirectbuf::seekpos(_G_fpos64_t, int = 3)':
../../../../sources/gcc-2.95.2/libio/indstream.cc:100:
`struct 
streampos' used where a `int' was expected
../../../../sources/gcc-2.95.2/libio/indstream.cc:103:
`struct 
streampos' used where a `int' was expected
../../../../sources/gcc-2.95.2/libio/indstream.cc:105:
`struct 
streampos' used where a `int' was expected
../../../../sources/gcc-2.95.2/libio/indstream.cc:107:
conversion from 
`int' to non-scalar type `streampos' requested
make[1]: *** [indstream.o] Error 1
make[1]: Leaving directory 
`/home/cdot/piyush/objdir/gcc-2.95.2/powerpc-linux/libio'
make: *** [all-target-libio] Error 2
----------------------------------------------------

 Should I use glibc-2.1.3 instead of glibc-2.1.94 ?

 Can I use newlib instead of glibc ?

thanks,
with regards,
Piyush



__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list