LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-24-2008, 10:23 AM   #1
phahn
Member
 
Registered: Apr 2002
Location: Philadelphia
Posts: 48

Rep: Reputation: 15
Trouble installing gcc


RedHat Enterprise AS 3.0 for my ia64 machine came with gcc. That was over 3 years ago. That version of gcc has some unresolved bugs in g77 that are giving me trouble, so I downloaded version 4.2.1 ( the next to the latest release) from one of the GNU mirror sites and proceeded to try to install it. The configuration step worked perfectly and the build step almost completed. But then the build step stopped with the following error and an instruction to submit a bug report:

Quote:
/usr/local/src/gcc-4.2.1/host-ia64-unknown-linux-gnu/gcc/xgcc -B/usr/local/src/gcc-4.2.1/host-ia64-unknown-linux-gnu/gcc/ -B/usr/local/ia64-unknown-linux-gnu/bin/ -B/usr/local/ia64-unknown-linux-gnu/lib/ -isystem /usr/local/ia64-unknown-linux-gnu/include -isystem /usr/local/ia64-unknown-linux-gnu/sys-include -I. -c -o crtbegin.o -x assembler-with-cpp \
../.././gcc/config/ia64/crtbegin.asm
xgcc: Internal error: Illegal instruction (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [crtbegin.o] Error 1
make[3]: Leaving directory `/usr/local/src/gcc-4.2.1/host-ia64-unknown-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/usr/local/src/gcc-4.2.1'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/usr/local/src/gcc-4.2.1'
make: *** [bootstrap] Error 2
What to do now? Is there a safer/easier way to install?

I searched RPMfind but there was nothing for gcc redhat ia64

I checked similar threads, but nothing was helpful.
 
Old 01-24-2008, 11:23 AM   #2
author_unknown
Member
 
Registered: Aug 2007
Location: Buffalo, NY
Distribution: Fedora 7, RHEL5, CentOS 5 and Backtrack 2.0
Posts: 73

Rep: Reputation: 15
method 1:

# yum remove gcc

and then

# yum install gcc


Method 2 :

# yum update gcc



both are likely to work 4 u but i wd personally advice method 1
 
Old 01-24-2008, 12:57 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Phahn

gcc is pretty integral to any linux install. The version of gcc that the version of linux was built around is quite difficult to replace (it can be done, but it is a real PITA). Actually it cannot be replaced but you can install another version alongside. The system depends on the libraries in that specific version of gcc in order to operate. It would be far, far, easier to update the entire system to ver 5.1. Centos is RedHat el with the logos removed. It is binary compatible with the equivalent version of RHel (RHel5.1=Centos 5.1). Which means that you can run 99% of RH el rpms on Centos. It is free to download.

And no you cannot(in this case) just use yum.
 
Old 01-24-2008, 02:05 PM   #4
phahn
Member
 
Registered: Apr 2002
Location: Philadelphia
Posts: 48

Original Poster
Rep: Reputation: 15
Thanks for saving me some grief

Hi Lazlow,

When I saw the fourteen different packages associated with c++, I realized what a problem it would be to uninstall them. And, there would be no guarantee that I could build and install 4.2.1 from scratch.

I like your idea, but I am nervous about that too. My machine is a six year old Dell PowerEdge 7150 with Itanium cpus. The machine came with RH 7.2 installed. About four years ago, the OS was clobbered and when I wanted to re-install it from the installation disks, I found that disk1 was a copy of disk2. My search for replacement disks came to naught. And, I was informed by Dell that RH7.2 was the only linux OS qualified for this machine. RH convinced me to buy Enterprise AS 3.0. I have been using that OS continuously. But, if I dare to make updates, using RHN, I can no longer boot the machine. So, I am careful to keep running the original 3.0.

Since there are four HDs in the machine, I would very much like to try your suggestion to install a new version of the OS on an auxiliary drive. Any hints that you can give would be appreciated.

Peter
 
Old 01-24-2008, 02:30 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Peter

The key search phrase will be "dual boot" if you want to keep the machine as is while trying the new OS.

Personally I do not dual boot. My data is just too valuable and I cannot afford to be down for any significant amount of time. What I do is mark all the cables and drives (masking tape is your friend), pull out the important drives(you can just unplug them,no need to physically unmount them), and install the new OS on the remaining drive. As long as all goes well, I then add the "old" drives back in. Sometimes it can take some time to get all the "bugs" worked out. Don't get excited about these "bugs" they are usually just some minor thing that needs tweaked. About 90% of the time I have no issues at all. All the Qualified thing means is that they have thoroughly tested that specific box with that specific version. Ninety percent of the time this is not necessary, this is especially true if you are running an earlier version of the same OS.

Keep us posted.
Lazlow
 
Old 01-24-2008, 05:10 PM   #6
phahn
Member
 
Registered: Apr 2002
Location: Philadelphia
Posts: 48

Original Poster
Rep: Reputation: 15
Hi Lazlow,

Thanks for the prompt reply.

You are right about pulling all drives but the one on which you want to install. I recently replaced my boot drive with a much larger one. The only way that I could safely install the system on it was to take out all the other drives. The four drives on the 7150 are plug accessible from the front panel and can be easily unlocked and slipped out. (Due to software limitations, the drives are not hot-pluggable.)

Am I correct that I need to buy or burn (from disk images) a set of Centos 5.1 installation disks?

I may have a few more questions as I get closer to doing the install.

Peter
 
Old 01-24-2008, 06:20 PM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Yes, burning the images is the "best" way. If you have a DVD burner it is just one image.

http://www.centos.org/modules/tinyco...ndex.php?id=15


This (above) should get you started. They also list sources to buy(for a nominal charge) the disks if you need to. I just burned it when I switched my server to Centos 5. Just make sure to check the shasum (sha1sum) of the image before you burn it to make sure you have a good image.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trouble Installing gcc-3.2.1 leoneo11 Linux - Software 2 04-24-2007 04:07 PM
trouble installing gcc thorney Linux - Software 1 11-25-2005 02:31 PM
Trouble installing gcc the_serhan SUSE / openSUSE 1 06-06-2005 02:21 PM
trouble installing GCC hedgehog13 Linux - Software 10 08-09-2004 03:22 PM
Trouble installing GCC, need help glock19 Linux - General 0 03-14-2002 12:30 PM

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

All times are GMT -5. The time now is 06:03 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