LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-01-2014, 09:24 PM   #1
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
Lightbulb [How-To]: Errors, checks, and tests tips.


By default the book(s) normal only have only the basics about running make test or make check. if you would like to create a better way of tracking errors in tests for packages here's a suggestion when running the make check/tests commands.

Code:
make -j8 check 2>&1 | tee /tmp/<package_name>.log
Using this and similar commands for make tests and other check command directs errors into a logfile as well as output to the terminal. The -j* command is there only to help speed things up considerably.

Plus if you stumble on some serious errors you can submit the logs back to the upstream to help them out.

Alternatively, if you want all the stdout and stderr readouts to go to a log file rather than both the terminal and the log pass this command instead:

Code:
make -j8 check &> /tmp/<package-name>-check-log
This will direct ALL output from the check to the log file. This is useful when some checks put out too much output that can crash the terminal, such as the vim package.

Last edited by ReaperX7; 07-02-2014 at 01:25 PM.
 
Old 07-02-2014, 05:58 AM   #2
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Rep: Reputation: 38
Thanks for the tip!

BTW, I was thinking of making a thread about something useful I found and after reading your how to, it made me think maybe we should create a general thread of tips. I think it'd be nice to have it all in one place. What does everyone think?
 
Old 07-02-2014, 07:15 PM   #3
oblo
Member
 
Registered: May 2014
Location: Rome, Italy
Distribution: LFS 7.6
Posts: 55

Rep: Reputation: Disabled
I think these how-tos are very useful and put it in a dedicated place would be a good idea!
Particularly i will try the "backup system using tar" next time i will install lfs.
 
Old 07-02-2014, 08:32 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
We do need to find more and more useful hints, tips, and suggestions.

The LFS wiki is in need of some serious updates, but the project has been behind in funding for a while now. I'm wondering if they are forgoing the wiki and other things just to try and stem costs enough.
 
  


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
Are these error harmful? -.sd1 Soft Errors: 0 Hard Errors: 6 Transport Errors: 0 manalisharmabe Solaris / OpenSolaris 2 10-04-2013 11:55 AM
Need tips on using Ethernet to power WiFi network, and tips on setting up WiFi crabpot8 Linux - Networking 2 08-24-2009 06:42 PM
debian checks filesystems for errors every bootup baldy1324 Linux - General 2 08-04-2006 12:07 PM
Errors at the end of gcc tests Basel Linux From Scratch 1 09-04-2005 09:16 PM
Integrity checks on RH 6.1 munyard Linux - Security 1 12-11-2002 07:29 AM

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

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