compile error - gcc

compile error - gcc

Post by Nick Traxle » Fri, 16 Mar 2001 09:23:18



I am trying to replace the compiler packaged with redhat
7 (gcc 2.96) with the current stable release, 2.95.2.
But, the compile dies with what appears to be incorrect
code. I'm running a pentium2/300 w/ 192 MB.
Does anyone have suggestions? Or, are there RPMs
anywhere? (I've looked on gcc.gnu.org, but I didn't
see anything)

Any help is appreciated!

Here's the error dialog:

../../../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 `/tmp/build/i686-pc-linux-gnu/libio'
make[1]: *** [all-target-libio] Error 2
make[1]: Leaving directory `/tmp/build'
make: *** [bootstrap-lean] Error 2
--
Nick Traxler
Computer Science, Purdue University
http://www.cs.purdue.edu/people/traxlend

"The two most common things in the Universe are Hydrogen and Stupidity."

 
 
 

compile error - gcc

Post by Steve Marti » Fri, 16 Mar 2001 11:46:59



> I am trying to replace the compiler packaged with redhat
> 7 (gcc 2.96) with the current stable release, 2.95.2.
> But, the compile dies with what appears to be incorrect
> code.

Don't know if this is a factor (I'm just guessing here),
but you might try using the "other" compiler shipped
with RH7, i.e. "kgcc". Go ahead and do the "configure"
step, then edit the generated top-level Makefile and replace
the line

CC = gcc

with

CC = kgcc

This should tell the Makefile to use the 2.91.66 compiler
that Red Hat put in the distro for kernel compilations.
(The only good thing I've ever heard about 2.96 was from
Red Hat's propaganda; the FSF says this version should
not be used for production code and that it shouldn't have
been included in any distros, as it is purely an internally-
used development branch of GCC.)

Hope this helps.

 
 
 

compile error - gcc

Post by Katriel Trau » Fri, 16 Mar 2001 15:43:40


I had the same problem,
Evidently the 2.95.2 doesn't compile on RH 7.
Try compiling the 2.995.2.1 from
http://packages.linuxfromscratch.org/new-in-cvs/
It compiled for me under RH7 with no probs at all.

Katriel.


Quote:> I am trying to replace the compiler packaged with redhat
> 7 (gcc 2.96) with the current stable release, 2.95.2.
> But, the compile dies with what appears to be incorrect
> code. I'm running a pentium2/300 w/ 192 MB.
> Does anyone have suggestions? Or, are there RPMs
> anywhere? (I've looked on gcc.gnu.org, but I didn't
> see anything)

> Any help is appreciated!

> Here's the error dialog:

> ../../../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 `/tmp/build/i686-pc-linux-gnu/libio'
> make[1]: *** [all-target-libio] Error 2
> make[1]: Leaving directory `/tmp/build'
> make: *** [bootstrap-lean] Error 2
> --
> Nick Traxler
> Computer Science, Purdue University
> http://www.cs.purdue.edu/people/traxlend

> "The two most common things in the Universe are Hydrogen and Stupidity."

 
 
 

compile error - gcc

Post by Paul Kimo » Fri, 16 Mar 2001 13:31:21



> I am trying to replace the compiler packaged with redhat
> 7 (gcc 2.96) with the current stable release, 2.95.2.
> But, the compile dies

It is known that gcc-2.95.2 doesn't build right on glibc-2.2 systems.
I'm not sure whether you are running into this particular problem,
but you could try

(1) applying the patch at
    http://clisp.cons.org/~haible/gcc-glibc-2.2-compat.diff

or

(2) trying gcc-2.95.3.test*, which is being prepared for release soon; see
    http://gcc.gnu.org/ml/gcc/2001-03/msg00387.html

--
Paul Kimoto
This message was originally posted on Usenet in plain text.  Any images,
hyperlinks, or the like shown here have been added without my consent,
and may be a violation of international copyright law.

 
 
 

compile error - gcc

Post by Rasmus B?g Hanse » Fri, 16 Mar 2001 18:41:22



> I am trying to replace the compiler packaged with redhat
> 7 (gcc 2.96) with the current stable release, 2.95.2.
> But, the compile dies with what appears to be incorrect
> code. I'm running a pentium2/300 w/ 192 MB.
> Does anyone have suggestions? Or, are there RPMs
> anywhere? (I've looked on gcc.gnu.org, but I didn't
> see anything)

Good idea to replace it :)

However gcc 2.95.2 does not compile out-of-the-box with glibc 2.2, which
RedHat 7 comes with.

So instead you could download a patched one - for example mine:

www.amagerkollegiet.dk/~moffe/

This one will compile and install fine on RedHat 7 (at least it did on
my box and a couple of others).

Good luck

Rasmus

 
 
 

compile error - gcc

Post by Frank Neurat » Fri, 16 Mar 2001 16:46:46



> I am trying to replace the compiler packaged with redhat
> 7 (gcc 2.96) with the current stable release, 2.95.2.
> But, the compile dies with what appears to be incorrect
> code. I'm running a pentium2/300 w/ 192 MB.
> Does anyone have suggestions? Or, are there RPMs
> anywhere? (I've looked on gcc.gnu.org, but I didn't
> see anything)

> Any help is appreciated!

> Here's the error dialog:

> ../../../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 `/tmp/build/i686-pc-linux-gnu/libio'
> make[1]: *** [all-target-libio] Error 2
> make[1]: Leaving directory `/tmp/build'
> make: *** [bootstrap-lean] Error 2
> --
> Nick Traxler
> Computer Science, Purdue University
> http://www.cs.purdue.edu/people/traxlend

> "The two most common things in the Universe are Hydrogen and Stupidity."

gcc-2.95.2 does not compile with glibc-2.2.2 !

You have to patch gcc. Check: http://www.gnu.org/software/gcc/bugs.html

Frank

 
 
 

compile error - gcc

Post by Art Haa » Sat, 17 Mar 2001 00:39:34



> I am trying to replace the compiler packaged with redhat
> 7 (gcc 2.96) with the current stable release, 2.95.2.
> But, the compile dies with what appears to be incorrect
> code. I'm running a pentium2/300 w/ 192 MB.
> Does anyone have suggestions? Or, are there RPMs
> anywhere? (I've looked on gcc.gnu.org, but I didn't
> see anything)

> Any help is appreciated!

> Here's the error dialog:

> [ ... errors ... ]

From the Glibc FAQ:

2.35.   When recompiling GCC, I get compilation errors in libio.

{BH} You are trying to recompile gcc 2.95.2?  Use gcc 2.95.2.1 instead.
This version is needed because the fpos_t type and a few libio internals
have changed in glibc 2.2, and gcc 2.95.2.1 contains a corresponding patch.

You're essentially doing this.

I installed glibc-2.2.2 last week, and replace my gcc-2.95.2 compiler
with gcc-2.95.3-test4. This is the test release of the 2.95.3 version
of GCC, and now there is a test5 release. It built without a hitch.

ftp://gcc.gnu.org/pub/gcc/releases/2.95.3-prerelease

It may also be available on GNU mirrors - the above site is often hard
to get in to.

--
###############################
# Art Haas
# (713) 689-2417
###############################

 
 
 

compile error - gcc

Post by Nick Traxle » Sat, 17 Mar 2001 14:14:22


This was what fixed it. I just patched in that
diff file and it compiled. Now I have to make
util-linux and e2fsprogs, and I'll (finally)
be able to build the 2.4 kernel.

Thanks for all the replies!
Nick


> gcc-2.95.2 does not compile with glibc-2.2.2 !

> You have to patch gcc. Check: http://www.gnu.org/software/gcc/bugs.html

> Frank

 
 
 

1. compiling error gcc: not found

I am building a LRP disk.  To run <insmod> for an ethernet driver module it
first needs to be compiled as a loadable.  3Com provides a batch compile
file for this driver.  When run, it ends with a "gcc: not found" error.
There is obviously a kernel, what does it mean?  Thanks.

Steve.

2. NCR5380 SCSI CD Recognized by OS but Not by Setup HELP!!!

3. compile error GCC

4. 2.4.18 - CMI9738 codec support in ac97_codec.c

5. Kernel 2.4.15-pre4 compile error (gcc 2.95.3 and 3.0[12])

6. Selecting UID numbers

7. gcc error 11 compiling kernel (gcc 2.7.0)

8. /kernel: NMI ISA 3c, EISA ff

9. gcc internal error when compiling kernel

10. gcc compile error, please help

11. fix decnet compile error on newer gcc's

12. GCC/CC compiling errors?

13. GCC Compile Error