LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-16-2016, 02:54 PM   #1
hpmachining
LQ Newbie
 
Registered: Apr 2016
Posts: 15

Rep: Reputation: 1
Gcc 6.1.0


Hello everyone. I see that LFS/BLFS is moving to gcc 6.1.0 compiler in the development builds. Just wondering if anyone here has upgraded to this version. If so, have you had any issues along the way? Any reasons you can think of for or against upgrading? Thanks!

Paul
 
Old 05-16-2016, 03:12 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Pro: it's new and improved, and if you're building everything anyway (LFS, right?) why not?
Con: if it isn't broken why fix it?

As with any upgrade, there ought to be a concrete reason you want to use it. Either there's a specific new feature you need, or something else you use will depend on the new version, so you're forced to upgrade. Upgrading for its own sake is fine if you're beta testing or developing, but otherwise probably not rational.
 
1 members found this post helpful.
Old 05-16-2016, 03:29 PM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi hpmachining

I have just built the systemd version using 6.1.0 all went well, lxde running ok
 
1 members found this post helpful.
Old 05-16-2016, 04:43 PM   #4
hpmachining
LQ Newbie
 
Registered: Apr 2016
Posts: 15

Original Poster
Rep: Reputation: 1
Thanks for the input. So far I have just been playing around building on flash drives. I succeeded in building a working Xfce desktop with Gedit, Firefox, Thunderbird, Gimp, Qt 5.5.1 (with Creator), FFmpeg and Audacious on a 16 GB flash drive. I had to mount another drive to build a couple of the bigger packages. It was good practice, and I figure I can use it as a host system for future builds.

Next I want to build a system on a 120GB SSD drive and was debating the following options:
1) Restore a LFS-7.9 systemd (with some BLFS applications) image as the base, upgrade gcc to 6.1 using BLFS instructions, and build BLFS systemd dev components from scratch.
2) Restore the same image as 1, but install BLFS without upgrading compiler.
3) Starting everything from scratch, using LFS development book, which is using gcc 6.1.

I hope that explains why I am looking at upgrading the compiler. I appreciate any feedback anyone has.

Thanks again!
Paul
 
Old 05-16-2016, 07:08 PM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
FYI it's always best to build a new LFS with LFS as the host as you know its compliant
 
1 members found this post helpful.
Old 05-17-2016, 04:00 AM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Take care with gcc-6.x. It is new, but it is being discussed in the mailing list with having some issues due to the new stricter c++ coding guidelines it's aiming to enforce. c++14 I believe. You may be forced to fall back to gcc-5.x in some cases or llvm+clang to build packages successfully. Patches and updates are coming in to packages, but take extreme care.
 
1 members found this post helpful.
Old 05-18-2016, 03:20 AM   #7
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
Quote:
Originally Posted by hpmachining View Post
Thanks for the input. So far I have just been playing around building on flash drives. I succeeded in building a working Xfce desktop with Gedit, Firefox, Thunderbird, Gimp, Qt 5.5.1 (with Creator), FFmpeg and Audacious on a 16 GB flash drive. I had to mount another drive to build a couple of the bigger packages. It was good practice, and I figure I can use it as a host system for future builds.

Next I want to build a system on a 120GB SSD drive and was debating the following options:
1) Restore a LFS-7.9 systemd (with some BLFS applications) image as the base, upgrade gcc to 6.1 using BLFS instructions, and build BLFS systemd dev components from scratch.
2) Restore the same image as 1, but install BLFS without upgrading compiler.
3) Starting everything from scratch, using LFS development book, which is using gcc 6.1.

I hope that explains why I am looking at upgrading the compiler. I appreciate any feedback anyone has.

Thanks again!
Paul
All options will do.
I would go for option 2, usually BLFS will compile on an older LFS and if not you can upgrade a few packages while trying.
Option 3 should be the most painless experience though slowest as you will need to redo LFS again. But then again, LFS takes about a day and BLFS can take up to 2 weeks or more.
Option 1 is interesting as well, do you use a package manager?

I am still running LFS 7.1/7.2 and upgraded the toolchain, then the LFS book to what I thought was safe to use today and build a minimal but useable BLFS.
Because I have a package manager installed (pkgutils from CRUX) it is no hassle to update packages without knowing what files I need to move/delete/edit.

I still use gcc 4.9.3.

Good luck.
 
1 members found this post helpful.
Old 05-18-2016, 10:02 AM   #8
hpmachining
LQ Newbie
 
Registered: Apr 2016
Posts: 15

Original Poster
Rep: Reputation: 1
Thanks for the heads up ReaperX7, I started following the dev list about 3 weeks ago and have read about the issues you mentioned. I'm leaning towards staying with 5.3 for my SSD build, and play around with upgrading and fresh build on flash drives just for practice. I actually don't mind a few problems along the way. I learn much more when things go wrong.

hendrickxm, I am not using a package manager yet. What I did was make a list of the BLFS packages with notes, in order of install, for the packages I added to the base LFS to get a console based system that I can work with. I also keep the sources in a separate directory. For the X WIndow packages I got lazy and just kept the sources in separate directories, one for the Xorg build, and one for the desktop. I am going to take a look at pkgutils.

Thanks for the input!
Paul
 
Old 05-19-2016, 03:19 AM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
One way you could manage packages is to use /opt and create scripts to manage your /path/to. It's a dirty method, and very Windowish... but it works.
 
1 members found this post helpful.
  


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
LXer: GCC 4.9 vs. GCC 5.1 vs. GCC 6.0 SVN Compiler Benchmarks LXer Syndicated Linux News 0 06-08-2015 01:00 PM
[SOLVED] Gcc error building tools on 7.4.rc1 chapter 5.10. GCC-4.8.1 - Pass 2 Keith Hedger Linux From Scratch 3 08-29-2013 11:30 AM
LXer: Compiler Benchmarks Of GCC, LLVM-GCC, DragonEgg, Clang LXer Syndicated Linux News 0 11-08-2010 05:11 PM
[SOLVED] SEGMENTATION FAULT using gcc 4.4.4 -O2 , works with gcc 4.1.0 -O2 or gcc 4.4.4 -O1 amir1981 Programming 36 07-26-2010 06:07 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:37 PM.

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