Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.