LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2014, 05:26 AM   #16
manishthatte
Member
 
Registered: May 2014
Distribution: Linux from scratch, Ubuntu, Mint, Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled

memory exhausted error while compiling gcc.But I have 1 gb ram and 8 gb swap file. Is there any other way to work around this problem?
 
Old 06-30-2014, 06:47 AM   #17
manishthatte
Member
 
Registered: May 2014
Distribution: Linux from scratch, Ubuntu, Mint, Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled
used a lower version of gcc. Now the error is different:

checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI.
make[1]: *** [configure-mpc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
 
Old 06-30-2014, 09:52 AM   #18
manishthatte
Member
 
Registered: May 2014
Distribution: Linux from scratch, Ubuntu, Mint, Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled
Installed libmpc-dev libmpfr-dev libgmp-dev from the debian repositories in the host system.
Now the compilation of gcc is going on.
 
Old 06-30-2014, 10:36 AM   #19
manishthatte
Member
 
Registered: May 2014
Distribution: Linux from scratch, Ubuntu, Mint, Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled
Problem with gcc refuses to be solved.


gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make[2]: *** [insn-attrtab.o] Error 4
make[2]: *** Waiting for unfinished jobs....
rm gcc.pod
make[2]: Leaving directory `/mnt/lfs/sources/gcc-4/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-4/gcc-build'
make: *** [all] Error 2
 
Old 06-30-2014, 04:07 PM   #20
manishthatte
Member
 
Registered: May 2014
Distribution: Linux from scratch, Ubuntu, Mint, Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled
OK. Finally got past gcc. Had to add 1 gb ram more !!!
 
Old 07-01-2014, 09:49 AM   #21
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,307
Blog Entries: 2

Rep: Reputation: Disabled
RAM...
It's just good stuff.
 
Old 07-01-2014, 10:17 AM   #22
manishthatte
Member
 
Registered: May 2014
Distribution: Linux from scratch, Ubuntu, Mint, Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled
now proceeding with further completion of the lfs build... No errors so far. Passed second phase, now finalising the system...
 
Old 07-01-2014, 05:19 PM   #23
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Have you checked your host system requirements to make sure that you have the correct tools to build lfs
 
Old 07-01-2014, 07:50 PM   #24
manishthatte
Member
 
Registered: May 2014
Distribution: Linux from scratch, Ubuntu, Mint, Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled
Eddy1... Yes. I am almost finished with compilation of the basic system. All the initial errors were due to low ram (1gb) and I also had to enable swap file.

Also, I am now using debian sid instead of wheezy, to take advantage of the newer libraries (didnt get any gmp, mpc and mpfr error this time)...
 
Old 07-03-2014, 05:00 AM   #25
manishthatte
Member
 
Registered: May 2014
Distribution: Linux from scratch, Ubuntu, Mint, Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled
Basic system took 24 hrs and xorg is expected to take 36 hrs And The kernel is yet to compile which will take another 5 hrs. Samsung 148N plus netbook. Intel atom processor 1GB ram
 
Old 07-03-2014, 07:24 AM   #26
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 166

Rep: Reputation: 37
Make sure you follow the guide exactly and take it slow. It's easy to skip sections accidentally if you're rushing yourself trying to finish quickly. The first few times I had trouble building was because I ignored warnings thinking they weren't a big deal (i.e. the ones found in the version checker script at the start of the book). If you take the requirements seriously, and follow the instructions exactly you will end up with a working system, guaranteed.
 
Old 07-03-2014, 12:00 PM   #27
manishthatte
Member
 
Registered: May 2014
Distribution: Linux from scratch, Ubuntu, Mint, Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled
basica: I tried building lfs manually. Too tedious and prone to human errors So I resorted to lfscript. first attempt failed due to error in my kernel config file. Now rebuilding again. So far so good !!!
 
Old 07-03-2014, 05:38 PM   #28
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 166

Rep: Reputation: 37
There's no point in automating it, takes all the learning out of it if you're a newbie!
 
Old 07-04-2014, 09:48 AM   #29
manishthatte
Member
 
Registered: May 2014
Distribution: Linux from scratch, Ubuntu, Mint, Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled
Basica: Now college has started (I am studying law). Will build a proper lfs system manually after I have gained enough experience (and have made enough mistakes ) using this automated script. But certainly I am going to build my very own linux one day... First let me get a feel of what an lfs system works and how many new unforeseen problems I have to deal with.
 
Old 07-04-2014, 09:50 AM   #30
manishthatte
Member
 
Registered: May 2014
Distribution: Linux from scratch, Ubuntu, Mint, Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled
A good news is that today my basic system is installed and it has been detected by the update-grub command. Now the xorg environment is being compiled. Expected to finish tomorrow.
 
  


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
LXer: News: Linux Top 3: Nussbaum Remains Debian Project Leader, Heartbleed Hits Linux and Linux 3.1 LXer Syndicated Linux News 0 04-15-2014 03:30 PM
Linux from scratch to Debian Badal Naik Linux From Scratch 8 09-01-2013 06:08 AM


All times are GMT -5. The time now is 09:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration