This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++ 2.90.8 build problems


Hi All,

I'm having a problem building libstdc++ 2.90.8 with gcc 2.95.3. The 
following error occurs while building c++io.cc:

c++io.cc: In method `struct std::__c_streampos 
std::__basic_file::seekoff(long int, std::_Ios_Seekdir, std::_Ios_Openmode 
= std::operator |((enum _Ios_Openmode)1, (enum _Ios_Openmode)2))':
c++io.cc:210: conversion from `__off64_t' to non-scalar type 
`std::__c_streampos' requested
c++io.cc: In method `struct std::__c_streampos 
std::__basic_file::seekpos(_G_fpos64_t, std::_Ios_Openmode = std::operator 
|((enum _Ios_Openmode)1, (enum _Ios_Openmode)2))':
c++io.cc:214: `struct std::__c_streampos' used where a `long long int' was 
expected
cc1plus: warnings being treated as errors
c++io.cc:214: warning: control reaches end of non-void function 
`std::__basic_file::seekpos(_G_fpos64_t, std::_Ios_Openmode)'
c++io.cc: In method `struct std::__c_streampos 
std::__basic_file::sys_seek(_G_fpos64_t, std::_Ios_Seekdir)':
c++io.cc:243: `struct std::__c_streampos' used where a `long long int' was 
expected
c++io.cc:243: warning: control reaches end of non-void function 
`std::__basic_file::sys_seek(_G_fpos64_t, std::_Ios_Seekdir)'

At a guess, I'd say this is a glibc problem since I've had no trouble in 
the past building this library on other Linux boxes. The glibc version in 
this case looks like 2.2, installed on a SuSE 7.1 system from the rpm named 
glibc-2.2-7.

If anyone has an idea of how this problem can be worked-around, I'd be most 
appreciative. :)

Cheers,

  - Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]