LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-14-2001, 11:54 AM   #1
Borkowski
LQ Newbie
 
Registered: Sep 2001
Location: CT, USA
Distribution: CRUX Linux; OpenBSD; ARCH Linux
Posts: 22

Rep: Reputation: 15
Question Need to go from gcc-2.96-xx to gcc-2.95.2


I have some application that can go under gcc-2.95.2, RD Linux 6.1. However I have installed RD 7.0 with
gcc-2.96-40 because I have this RH on my CD. Now I am trying to install gcc-2.95.2 from source. Till now my success=0. Rh 7.0 with gcc-2.96 does not want to compile the gcc-2.95.2. Maybe I do something wrong. May
anybody help me?

I have typed

'/usr/local/src/gcc-2.95.2/configure --prefix=/usr/loca/gcc/ --enable-languages=c++ i386-ps-Linux'

It seams that this phase was OK.

Then I typed

'gmake bootstrap'

In every of the three stages of building gcc there were the same three errors

1)
gcc -DIN_GCC -g -DHAVE_CONFIG_H -I. -I/usr/local/src/gcc-2.95.2/gcc -I/usr/local/src/gcc-2.95.2/gcc/config -I/usr/local/src/gcc-2.95.2/gcc/../include \
-DTARGET_NAME=\"i386-pc-linux\" \
-c `echo /usr/local/src/gcc-2.95.2/gcc/toplev.c | sed 's,^\./,,'`
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/local/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type


2)
gcc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I/usr/local/src/gcc-2.95.2/gcc -I/usr/local/src/gcc-2.95.2/gcc/config -I/usr/local/src/gcc-2.95.2/gcc/../include /usr/local/src/gcc-2.95.2/gcc/reload1.c
/usr/local/src/gcc-2.95.2/gcc/reload1.c: In function `maybe_fix_stack_asms':
/usr/local/src/gcc-2.95.2/gcc/reload1.c:1275: warning: passing arg 4 of `decode_asm_operands' from incompatible pointer type

3)
ln -s /usr/local/src/gcc-2.95.2/gcc/../libiberty/cplus-dem.c cxxmain.c
gcc -c -DMAIN -DIN_GCC -g -DHAVE_CONFIG_H -I. -I/usr/local/src/gcc-2.95.2/gcc -I/usr/local/src/gcc-2.95.2/gcc/config -I/usr/local/src/gcc-2.95.2/gcc/../include \
-DVERSION=\"2.95.2\" cxxmain.c
cxxmain.c: In function `main':
cxxmain.c:4527: warning: assignment discards qualifiers from pointer target type
cxxmain.c:4530: warning: assignment discards qualifiers from pointer target type


Then the same at stage1 and once more at stage2.




And then in the end:

/usr/local/build/gcc/xgcc -B/usr/local/build/gcc/ -B/usr/local/gcc//i386-pc-linux/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I/usr/local/src/gcc-2.95.2/libio -nostdinc++ -D_IO_MTSAFE_IO /usr/local/src/gcc-2.95.2/libio/indstream.cc
/usr/local/src/gcc-2.95.2/libio/indstream.cc:78: new declaration `int indirectbuf::seekoff(long long int, ios::seek_dir, int)'
/usr/local/src/gcc-2.95.2/libio/indstream.h:70: ambiguates old declaration `struct streampos indirectbuf::seekoff(long long int, ios::seek_dir, int = 3)'
/usr/local/src/gcc-2.95.2/libio/indstream.cc: In method `int indirectbuf::seekoff(long long int, ios::seek_dir, int)':
/usr/local/src/gcc-2.95.2/libio/indstream.cc:85: `struct streampos' used where a `int' was expected
/usr/local/src/gcc-2.95.2/libio/indstream.cc:88: `struct streampos' used where a `int' was expected
/usr/local/src/gcc-2.95.2/libio/indstream.cc:90: `struct streampos' used where a `int' was expected
/usr/local/src/gcc-2.95.2/libio/indstream.cc: At top level:
/usr/local/src/gcc-2.95.2/libio/indstream.cc:98: new declaration `int indirectbuf::seekpos(_G_fpos64_t, int)'
/usr/local/src/gcc-2.95.2/libio/indstream.h:71: ambiguates old declaration `struct streampos indirectbuf::seekpos(_G_fpos64_t, int = 3)'
/usr/local/src/gcc-2.95.2/libio/indstream.cc: In method `int indirectbuf::seekpos(_G_fpos64_t, int)':
/usr/local/src/gcc-2.95.2/libio/indstream.cc:105: `struct streampos' used where a `int' was expected
/usr/local/src/gcc-2.95.2/libio/indstream.cc:108: `struct streampos' used where a `int' was expected
/usr/local/src/gcc-2.95.2/libio/indstream.cc:110: `struct streampos' used where a `int' was expected
gmake[2]: *** [indstream.o] Error 1
gmake[2]: Leaving directory `/usr/local/build/i386-pc-linux/libio'
gmake[1]: *** [all-target-libio] Error 2
gmake[1]: Leaving directory `/usr/local/build'
gmake: *** [bootstrap] Error 2





May anybody tell me what to do?

Can I find somewhere compiled gcc-2.95.2 (rpm or something else).

Thank you,
 
Old 09-15-2001, 07:21 PM   #2
rolf
Member
 
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mageia 5 x86_64
Posts: 187

Rep: Reputation: 33
Can't help with your current strategy but maybe consider another one:

Get the rpm for the gcc version you want and

$ rpm -i --test gcc.rpm

to get whatever dependencies might be needed.

When you have different versions of gcc installed, you can switch between them with

# update-alternatives --config gcc

Good luck.
 
Old 09-18-2001, 11:44 AM   #3
Borkowski
LQ Newbie
 
Registered: Sep 2001
Location: CT, USA
Distribution: CRUX Linux; OpenBSD; ARCH Linux
Posts: 22

Original Poster
Rep: Reputation: 15
Question Where is gcc-2.95.2.rpm?

May anybody tell me where I can find gcc-2.95.2.rpm.

I have found RH Linux 6.2 on ftp.redhat.com. There are rpm files for RH Linux 6.2, however there are not gcc-2.95.2 among them.

Maybe Linux 6.2 can work without gcc at all. Then how it can compile c++ programs?

Last edited by Borkowski; 09-18-2001 at 02:52 PM.
 
Old 09-18-2001, 06:07 PM   #4
rolf
Member
 
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mageia 5 x86_64
Posts: 187

Rep: Reputation: 33
Over at rpmfind.net (remember this site):

http://rpmfind.net/linux/rpm2html/se...ery=gcc-2.95.2

I found a link to a Mandrake rpm that also links to the src.rpm. Can't advise whether either of these would work for you. Maybe you could # rpm --rebuild the source.rpm? If you do, # rpm --checksig the gcc.src.rpm. In Mandrake, anyway, this will check the gpg signature (I think you have to install a gpg key from the packager) and md5sum. I think it will tell you about the md5sum whether or not you have the gpg key installed.

Good luck.
 
Old 09-24-2001, 10:54 AM   #5
Borkowski
LQ Newbie
 
Registered: Sep 2001
Location: CT, USA
Distribution: CRUX Linux; OpenBSD; ARCH Linux
Posts: 22

Original Poster
Rep: Reputation: 15
egcs-1.1.2 can be used in RH Linux 7.0

Now I know that I should not install gcc-2.95.2 because RH Linux 7.0 has egcs-1.1.2 and all what goes with it.

For me egcs-1.1.2 occurred to be as good as gcc-2.95.2 because command egcs++ compiles Geant4 quite well.

I suspect that for other people, that are struggling with gcc-2.96 on RH Linux 7.0 like me, this may be acceptable solution of their problems.

Last edited by Borkowski; 09-24-2001 at 11:01 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 10:23 PM
a doubt with host gcc and arm-linux-gcc renjithgopal Linux - General 1 09-11-2003 04:02 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration