LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-06-2014, 06:13 PM   #1
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Upgrading GCC


Can I just grab the original SlackBuild, remove the parts related to GCC 4.8 patches, alter the configure script and build it?
 
Old 10-06-2014, 08:11 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098Reputation: 2098
You always can try it out first. The SlackBuilds are often set to be version agnostic of packages. If you need to add patches, just re-add them to the script and place them in the directory with the SlackBuild script.
 
Old 10-06-2014, 08:14 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,113

Rep: Reputation: Disabled
Don't know about this specific package but a general advice is:
  • Check each patch to see if it is still necessary.
  • Check to see if other patches are necessary.
  • diff old vs new "./configure --help" to figure out how to deal with obsolete/new options.
  • Adapt the SlackBuild accordingly.
  • Try to build.
  • Correct build errors.
  • When there are no more build errors, check the old vs new package content.
  • If something seems missing or added, why? Was this expected?
  • When everything looks OK, test.
In testing apps such gcc, if a compilation fails, good luck to determine if it's due to the way gcc is built or an incompatibility between the application to compile and the gcc version.

Still in case of gcc I would need a very good reason not to let our BDFL do all that hard work for me as usual, but that's only MHO

Just out of curiosity, are you aware of a specific need to upgrade gcc?

Last edited by Didier Spaier; 10-06-2014 at 08:20 PM.
 
1 members found this post helpful.
Old 10-06-2014, 09:33 PM   #4
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
I just want to upgrade it for no reason at all.
 
Old 10-07-2014, 02:33 AM   #5
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
if you just want to test the latest gcc to play around and evaluate & learn c++ 11 and 14 features,
you can have multiple versions installed
 
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
upgrading from gcc 3.2 to gcc 3.4 in redhat 9.0 uma_mahesh_2005 Linux - Software 1 04-03-2006 01:08 AM
Upgrading gcc-3.4.3 from gcc-3.3.5 on Debian v3.1 MKSrivastava Debian 2 11-21-2005 10:09 PM
Upgrading GCC from 2.96 jared78 Linux - Software 6 05-11-2005 06:00 PM
Upgrading gcc The_Messiah Slackware 10 04-05-2005 01:26 AM
upgrading gcc abs Slackware 3 08-25-2004 08:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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