LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 12-13-2012, 08:24 AM   #1
Lancelot1
Member
 
Registered: Dec 2007
Location: Amsterdam
Distribution: (K)Ubuntu
Posts: 102

Rep: Reputation: 15
LFS 7.2 GCC test duration


In section 6.17 there is a GCC test that takes forever to complete. It has now been running for 6 hours.

make -k check

Is there anyway to split this or speed it up?
 
Old 12-13-2012, 08:37 AM   #2
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 874

Rep: Reputation: 174Reputation: 174
I got bored with waiting for the tests to finish when making my first LFS, so just quit them and figured if the compiler is fubar it will show up quite soon, I don't use the tests now, but thats just what I do
 
Old 12-13-2012, 08:39 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Quote:
Originally Posted by Lancelot1 View Post
In section 6.17 there is a GCC test that takes forever to complete. It has now been running for 6 hours.
That is a long time, although the (old/slow?) hardware used could be the culprit.

Quote:
Is there anyway to split this or speed it up?
If your CPU has multiple cores you could try this:
Code:
export MAKEFLAGS='-j 2'
make -k check
If you have 4 cores try 4 instead of 2.

This might not work. If you see messages like this *** Waiting for unfinished jobs.... then you need to unset MAKEFLAGS and be be patient....

Not running the tests isn't an option in my opinion (unless you have successfully installed LFS version X on platform Y multiple times already).
 
Old 12-13-2012, 08:40 AM   #4
Lancelot1
Member
 
Registered: Dec 2007
Location: Amsterdam
Distribution: (K)Ubuntu
Posts: 102

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Keith Hedger View Post
I got bored with waiting for the tests to finish when making my first LFS, so just quit them and figured if the compiler is fubar it will show up quite soon, I don't use the tests now, but thats just what I do
ok but that isn't for everyone. This is a learning curve for me so I don't want to skip it
 
Old 12-13-2012, 03:53 PM   #5
re_nelson
Member
 
Registered: Oct 2011
Location: Texas, USA
Distribution: LFS-SVN, Gentoo-2.2 ~amd64, CentOS-6.5, Slackware64-current, FreeBSD-9.2-STABLE
Posts: 176

Rep: Reputation: Disabled
Quote:
Originally Posted by Lancelot1 View Post
In section 6.17 there is a GCC test that takes forever to complete. It has now been running for 6 hours.

make -k check

Is there anyway to split this or speed it up?
That's not at all atypical and is quite hardware dependent. When I recently upgraded to GCC 4.7.2, it took some 8 hours to run and that's on a quad core system. Having built several instances of LFS, I've just grown accustomed to the long wait and prefer to run the checks or tests on all packages. Knowing how long it would take gave me an opportunity to cut the grass, trim the hedges and clean up the leaves in the yard. Thanks to LFS, I have a good-looking yard and got some much-needed exercise. What a versatile distro!
 
Old 12-14-2012, 02:20 AM   #6
Lancelot1
Member
 
Registered: Dec 2007
Location: Amsterdam
Distribution: (K)Ubuntu
Posts: 102

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by druuna View Post
That is a long time, although the (old/slow?) hardware used could be the culprit.

If your CPU has multiple cores you could try this:
Code:
export MAKEFLAGS='-j 2'
make -k check
If you have 4 cores try 4 instead of 2.

This might not work. If you see messages like this *** Waiting for unfinished jobs.... then you need to unset MAKEFLAGS and be be patient....

Not running the tests isn't an option in my opinion (unless you have successfully installed LFS version X on platform Y multiple times already).
ok druuna thanks, will try it

Yeah my laptop is 3 years old so I guess there are some issues but still this shouldnt be a problem with linux.
I did see multi time outs on tests

Last edited by Lancelot1; 12-14-2012 at 02:34 AM.
 
Old 12-14-2012, 02:41 AM   #7
re_nelson
Member
 
Registered: Oct 2011
Location: Texas, USA
Distribution: LFS-SVN, Gentoo-2.2 ~amd64, CentOS-6.5, Slackware64-current, FreeBSD-9.2-STABLE
Posts: 176

Rep: Reputation: Disabled
Quote:
Originally Posted by re_nelson View Post
When I recently upgraded to GCC 4.7.2, it took some 8 hours to run and that's on a quad core system.
Just for the record, I build GCC with ALL languages, including Ada, Java and Objective C as well as C and C++. So, even on a i5 quad core, it takes a long time to run.
 
  


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
[SOLVED] LFS: Error during GCC-4.7.1-Pass 1 (LFS 7.2, Section 5.5) erkant Linux From Scratch 7 11-28-2012 06:03 AM
Test suite for finished LFS? McZ Linux From Scratch 7 11-23-2012 03:48 AM
Gcc 4.6.1 can't Find in /mnt/lfs/tools on LFS verison 7.0 using LFS_TGT xerofoify Linux From Scratch 20 08-03-2012 12:55 PM
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 04:23 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration