LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux from scratch on top of debian! (https://www.linuxquestions.org/questions/linux-newbie-8/linux-from-scratch-on-top-of-debian-4175509267/)

manishthatte 06-30-2014 04:26 AM

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?

manishthatte 06-30-2014 05:47 AM

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

manishthatte 06-30-2014 08:52 AM

Installed libmpc-dev libmpfr-dev libgmp-dev from the debian repositories in the host system.
Now the compilation of gcc is going on.

manishthatte 06-30-2014 09:36 AM

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

manishthatte 06-30-2014 03:07 PM

OK. Finally got past gcc. Had to add 1 gb ram more !!!

dijetlo 07-01-2014 08:49 AM

RAM...
It's just good stuff.
;)

manishthatte 07-01-2014 09:17 AM

now proceeding with further completion of the lfs build... No errors so far. Passed second phase, now finalising the system...

EDDY1 07-01-2014 04:19 PM

Have you checked your host system requirements to make sure that you have the correct tools to build lfs

manishthatte 07-01-2014 06:50 PM

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)...

manishthatte 07-03-2014 04:00 AM

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

basica 07-03-2014 06:24 AM

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.

manishthatte 07-03-2014 11:00 AM

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 !!!

basica 07-03-2014 04:38 PM

There's no point in automating it, takes all the learning out of it if you're a newbie! :)

manishthatte 07-04-2014 08:48 AM

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.

manishthatte 07-04-2014 08:50 AM

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.


All times are GMT -5. The time now is 04:22 PM.