LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-16-2016, 09:50 PM   #1
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Rep: Reputation: 23
Building LFS/BLFS without GCC


Hi guys,

I just wonder how to build LFS without GCC.

In my case, I would like to utilize my old Pentium III to become PC router and firewall.

1. First, I will construct temporary tool complete with GCC (chapter five)
2. In chapter six
-> Linux API Headers
-> Glibc, Zlib, File, Binutils
-> Only Libstdc++, no GCC
-> For the rest, just compile packages needed
-> Linux kernel
3. Some package in BLFS, like iptables, sshd, network maneger, and any packages needed would alse be compiled in chroot environment.

Please enlighten me.
 
Old 04-17-2016, 01:56 AM   #2
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
Um... You have to have GCC because of how you work things in. Not everything can be built with the host.
 
Old 04-17-2016, 10:04 PM   #3
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Original Poster
Rep: Reputation: 23
I only have old 4 GB hard drive and 128 MB SDRAM on my old Pentium-III.
I think it should be enough to run PC Router and Firewall.

Because the hard drive capacity is so small, so I should not install to many packages.
Only few packages required to build the system (and of course it required dependencies).

Most program would search for glibc & libstdc++ besides their dependencies,
so I think it would be OK not to build GCC in order to save space.
All programs build in chroot, and it will be linked to glibc and libstdc++
in real system (I will build this system on my i5 laptop).

Please enlighten me again, whether this would work or not.
Or I must put GCC to make the system works.
 
Old 04-18-2016, 06:53 AM   #4
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
Look into CLFS rather than LFS, mainly the x86 imbedded versions if your goal is a firewall/router setup.

http://clfs.org/view/clfs-embedded/x86/

It'll be small.
 
Old 04-18-2016, 03:22 PM   #5
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Original Poster
Rep: Reputation: 23
Thanks ReaperX7

First, I'll follow the book first, to understand the concept.
After that, I'll customize to meet my need.

For know I consider this as "solved"
 
  


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
[SOLVED] LFS/BLFS SVN: gcc-4.8.0 and glibc-2.17 re_nelson Linux From Scratch 3 07-09-2013 10:50 PM
LFS 7.1 errors in chapter 6 when building gcc in 6.17 kevstev Linux From Scratch 3 01-02-2013 12:31 PM
[SOLVED] Which version of book to use for BLFS??? (LFS-6.7 used for building LFS) rkmv Linux From Scratch 3 02-21-2012 05:32 PM
Building GCC for LFS dbbolton Linux - Software 9 11-27-2009 03:35 AM
building LFS GCC question citrus Linux From Scratch 6 05-12-2004 08:36 AM

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

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