LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-15-2009, 01:22 PM   #1
potuz
Member
 
Registered: Jul 2009
Distribution: Gentoo, CLFS.
Posts: 40

Rep: Reputation: 16
gcc testsuite hangs


Hi there, after installing the final version of GCC-4.4.1 following CLFS SVN-20091010-x86_64-Multilib I run the testsuite for gcc with make -k check and it hangs.

It also kills any other program
running in the host (like a browser with the book for example, and the
whole desktop) so I think this might be a problem with running out of
memory. Is there any way I can find info? the test just hang at the
beginning on:

Running /sources/gcc-4.4.1/gcc/testsuite/gcc.c-torture/compile/compile.exp ...

And that's it.

Thanks,

R.
 
Old 10-16-2009, 12:22 AM   #2
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Try running Htop in a seperate console and watch your memory and cpu usage. Try
Code:
make -j1 -k
 
Old 10-16-2009, 09:36 PM   #3
potuz
Member
 
Registered: Jul 2009
Distribution: Gentoo, CLFS.
Posts: 40

Original Poster
Rep: Reputation: 16
Yep, running top I can see at some point the Ram gets used almost entirely and the host starts to die. It's a Core 2 duo 2Gb of Ram. I thought it should be enough to install CLFS without trouble. Didn't even bother adding a Swap partition this time. Perhaps I should've done that?

R.
 
Old 10-16-2009, 10:22 PM   #4
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Definitely worth a try ... I was reading a Gentoo forum, when I was using Gentoo. I used to use a RAM tmpfs for portage. And the remarks where that it would take upwards of 2-4 gigs, too compile GCC and GLIBC. So I think swapping with the hdd is the way to go. To be honest I would create a swap file versus a partition, just a preference.
 
Old 10-16-2009, 10:26 PM   #5
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
As a side note ... Have you considered a package manager for your LFS build..?

I'm putting together a tutorial, just for this scenario. Its partiality done, but should be finished by tomorrow.

You can check it out here:
http://manwithaplan.blogetery.com/20...d-with-pacman/

Last edited by manwithaplan; 10-17-2009 at 12:30 AM.
 
Old 10-19-2009, 08:33 PM   #6
potuz
Member
 
Registered: Jul 2009
Distribution: Gentoo, CLFS.
Posts: 40

Original Poster
Rep: Reputation: 16
It was lack of Swap in the end (it seems, I keep my fingers crossed). I'm running the check with a Swapfile in the host and so far it goes for more than usual at the very least. I'm surprised that the testsuite itself won't tell you that it's running out of RAM and that you should swap.

As for package management, I have already a couple of CLFS systems at home and so far I have been successful with DESTDIR and keeping list of files and directories, I'm quite comfortably as it is... that's a hot topic, people have different taste

Thanks

P.
 
  


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
CLFS: libgcc missing while EGLIBC-testsuite DaCapitalist Linux From Scratch 2 07-14-2009 01:41 PM
install of GCC 4.0.3 hangs at 'insn-attrtab.o' radiodee1 Linux - Software 2 10-09-2006 05:40 PM
LFS6.1 - 6.14 GCC installation, make check hangs Pugho Linux From Scratch 3 12-01-2005 06:28 PM
Question regarding gcc testsuite , proc , devpts tuxfood Linux From Scratch 1 12-03-2004 05:06 AM
compiling gcc-3.1.1 : libjava testsuite failures cdlen LinuxQuestions.org Member Success Stories 2 10-10-2003 04:11 AM

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

All times are GMT -5. The time now is 12:57 AM.

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