LinuxQuestions.org
Review your favorite Linux distribution.
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 03-06-2013, 09:21 AM   #1
bluforce
Member
 
Registered: Apr 2012
Posts: 51

Rep: Reputation: Disabled
GCC/G++ 4.4.7 issue on RHEL 6.3


Guys,
A bunch of my developers that run RHEL 6.3 are having issues since GCC/G++ was upgraded last night to 4.4.7 (we use run to patch nightly).
Anyways, the same code that compiled yesterday, won't compile today. The version that worked was 4.4.6. Is there a way to downgrade?

We're at a point with our Build now that we can't introduce the risk of a new compiler. Is there a way to downgrade?

TIA!
 
Old 03-06-2013, 09:43 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
yum downgrade gcc
or - presumably -:
yum install gcc.4.4.6-4.el6

Then lock it in /etc/yum.conf

Then perhaps disable automatic patching on build systems that you don't want be patched.
 
1 members found this post helpful.
Old 03-06-2013, 10:04 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
First thing to do : Add three lines to /etc/yum.conf
.. to prevent updating :

exclude=gcc*
exclude=cpp*
exclude=libgcc*

Remark : The wildcards ( * ) are important. Not to be omitted.

.. And I guess you can replace the packages, ref. #2, @AlucardZero.
I.e. cpp-4.4.7, libgcc-4.4.7, gcc-4.4.7, gcc-c++-4.4.7 ( gcc-gfortran ?),
libstdc++-4.4.7, libstdc++-devel-4.4.7

Update check : rpm -qa --last > last-packages.txt .

-
 
Old 03-06-2013, 11:26 AM   #4
bluforce
Member
 
Registered: Apr 2012
Posts: 51

Original Poster
Rep: Reputation: Disabled
THis machine actually updated to RHEL 6.4 last night. Anyways, it seems like a tangled mess right now.
Code:
# yum downgrade gcc
Loaded plugins: downloadonly, refresh-packagekit, rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Downgrade Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.i686 0:4.4.6-4.el6 will be a downgrade
--> Processing Dependency: cpp = 4.4.6-4.el6 for package: gcc-4.4.6-4.el6.i686
--> Processing Dependency: libgomp = 4.4.6-4.el6 for package: gcc-4.4.6-4.el6.i686
---> Package gcc.i686 0:4.4.7-3.el6 will be erased
--> Finished Dependency Resolution
Error: Package: gcc-c++-4.4.7-3.el6.i686 (@rhel-i386-workstation-6)
           Requires: gcc = 4.4.7-3.el6
           Removing: gcc-4.4.7-3.el6.i686 (@rhel-i386-workstation-6)
               gcc = 4.4.4-15.el6
               gcc = 4.4.7-3.el6
           Downgraded By: gcc-4.4.6-4.el6.i686 (rhel-i386-workstation-6)
               gcc = 4.4.6-4.el6
               gcc = 4.4.4-15.el6
           Available: gcc-4.4.4-13.el6.i686 (rhel-i386-workstation-6)
               gcc = 4.4.4-13.el6
           Available: gcc-4.4.5-6.el6.i686 (rhel-i386-workstation-6)
               gcc = 4.4.5-6.el6
               gcc = 4.4.4-15.el6
           Available: gcc-4.4.6-3.el6.i686 (rhel-i386-workstation-6)
               gcc = 4.4.6-3.el6
               gcc = 4.4.4-15.el6
Error: Package: gcc-gfortran-4.4.7-3.el6.i686 (@rhel-i386-workstation-6)
           Requires: gcc = 4.4.7-3.el6
           Removing: gcc-4.4.7-3.el6.i686 (@rhel-i386-workstation-6)
               gcc = 4.4.4-15.el6
               gcc = 4.4.7-3.el6
           Downgraded By: gcc-4.4.6-4.el6.i686 (rhel-i386-workstation-6)
               gcc = 4.4.6-4.el6
               gcc = 4.4.4-15.el6
           Available: gcc-4.4.4-13.el6.i686 (rhel-i386-workstation-6)
               gcc = 4.4.4-13.el6
           Available: gcc-4.4.5-6.el6.i686 (rhel-i386-workstation-6)
               gcc = 4.4.5-6.el6
               gcc = 4.4.4-15.el6
           Available: gcc-4.4.6-3.el6.i686 (rhel-i386-workstation-6)
               gcc = 4.4.6-3.el6
               gcc = 4.4.4-15.el6
Error: Package: gcc-4.4.6-4.el6.i686 (rhel-i386-workstation-6)
           Requires: cpp = 4.4.6-4.el6
           Installed: cpp-4.4.7-3.el6.i686 (@rhel-i386-workstation-6)
               cpp = 4.4.4-15.el6
               cpp = 4.4.7-3.el6
           Available: cpp-4.4.4-13.el6.i686 (rhel-i386-workstation-6)
               cpp = 4.4.4-13.el6
           Available: cpp-4.4.5-6.el6.i686 (rhel-i386-workstation-6)
               cpp = 4.4.5-6.el6
               cpp = 4.4.4-15.el6
           Available: cpp-4.4.6-3.el6.i686 (rhel-i386-workstation-6)
               cpp = 4.4.6-3.el6
               cpp = 4.4.4-15.el6
           Available: cpp-4.4.6-4.el6.i686 (rhel-i386-workstation-6)
               cpp = 4.4.6-4.el6
               cpp = 4.4.4-15.el6
Error: Package: gcc-4.4.6-4.el6.i686 (rhel-i386-workstation-6)
           Requires: libgomp = 4.4.6-4.el6
           Installed: libgomp-4.4.7-3.el6.i686 (@rhel-i386-workstation-6)
               libgomp = 4.4.4-15.el6
               libgomp = 4.4.7-3.el6
           Available: libgomp-4.4.4-13.el6.i686 (rhel-i386-workstation-6)
               libgomp = 4.4.4-13.el6
           Available: libgomp-4.4.5-6.el6.i686 (rhel-i386-workstation-6)
               libgomp = 4.4.5-6.el6
               libgomp = 4.4.4-15.el6
           Available: libgomp-4.4.6-3.el6.i686 (rhel-i386-workstation-6)
               libgomp = 4.4.6-3.el6
               libgomp = 4.4.4-15.el6
           Available: libgomp-4.4.6-4.el6.i686 (rhel-i386-workstation-6)
               libgomp = 4.4.6-4.el6
               libgomp = 4.4.4-15.el6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
 
Old 03-06-2013, 11:36 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The easy way : Remove the packages, that no other packages depend on :

# yum remove gcc gcc-c++ libstdc++-devel libgomp gcc-gfortran libgfortran

Then downgrade : cpp, libgcc

Now you can install the packages that you want.

-
 
Old 03-06-2013, 12:35 PM   #6
bluforce
Member
 
Registered: Apr 2012
Posts: 51

Original Poster
Rep: Reputation: Disabled
Thanks guys.

I think we got it with:

Quote:
yum downgrade cpp gcc-c++ gcc-gfortran gcc libgfortran libgomp libstdc++ libstdc++-devel
 
Old 03-06-2013, 10:28 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
marked solved but

rhel minor upgrades do not change drastically
so moving to gcc 4.4 is only a few added things to the source
a few extra #include< ?????> adding some explicit calls to some libs ( they are not acquired from the parent any more )

adding linking to the lib will stop the DSO errors
"-lm" and "-lGL" are common ones that need to be declared
and 4.4 is old enough that almost every known error IS found in Google

your DEV's might want to read the changes to gcc
the gcc web page is full of the needed documentation
 
  


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
What versions of g++ and gcc come standard with RHEL 5.3 Mark8812 Linux - General 1 02-23-2011 03:38 PM
Rhel 5.1 gcc rpm jon_k Linux - Software 4 09-01-2010 01:39 AM
[SOLVED] RHEL gcc miamagoo Linux - Software 11 07-07-2010 08:23 AM
Errors installing gcc on RHEL 4 Isuru Divarathne Linux - Software 3 10-22-2009 01:23 AM
Installing gcc 2.95 in RHEL 3 airizar Red Hat 2 09-14-2005 05:55 PM

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

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