This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Error building gcc-2.95.2


I downloaded a copy of gcc-2.95.2 today from gcc.gnu.org and am
compiling it
on an AMD processor running Mandrake-Linux 8.0 (which comes with what
claims
to be gcc version 2.96 but doesn't have -MD which is why I am trying to
recompile
gcc).

When compiling, I get compile errors in libio/indstream.cc for lines 82
to 106
complaining about a type mismatch between an int and a streampos.  These

errors go away if I change the declaration of ret_val in these two
routines
from "int ret_val" to "streampos ret_val", but new ones show up
complaining
that streampos (ret_val) is incompatible with the constants 0 and EOF.

It appears that ret_val must be an int to be compatible with the
constants 0 and
EOF, but if it is to be the returned value of  seekoff and seekpos, then
it
will have to be of type streampos.  And apparently on this system,
streampos is
not an int;  it appears to be a struct of an integer position and a
flag.

jim





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