Re: Which file can I find the error message that shows on the screen when I build my kernel?jj
On Sun, Jun 22, 2008 at 11:03:33AM -0700, [EMAIL PROTECTED] wrote: > Hi: > I have make some changes to the kernel files and rebuild the kernel, but > when I rebuild the kernel, it show some errors and stop rebuild. The > question I want ask is that: Is there any file that store all these error > message, If there is, where can I find it? > Because there are too many errors occur, I can't see all the errors on the > screen, if there is a file that store these error messages, then I can > find all the errors and fixed them. > Thanks! > Best Wishes Check out the 'script(1)' utility man script If you invoke it with a file name, it will write all terminal stuff to a file. I almost always use it when I do a major build because it is impossible to catch stuff as it flies by on the screen. You can invoke it for the duration of a specific command or you can just start it on your interactive terminal session and then stop it when you are finished with it. jerry > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Which file can I find the error message that shows on the screen when I build my kernel?
Chuck Robey wrote: For along time, used only tcsh, under the mistaken belief that you couldn't redirect stderr for piping, under a sh-like shell, but about 6 months ago, I found out how to do that. If you would rather use a sh-like shell (maybe you'd be one of the bash-aficionados?) tell me, I will hunt up that trick. Under Bourne-style shells: make 2>&1 | tee /tmp/makeout TIMTOWTDI. Under any shell: script /tmp/makeout make Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: Which file can I find the error message that shows on the screen when I build my kernel?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gonzalo Nemmi wrote: > On Sunday 22 June 2008 15:17:56 Chuck Robey wrote: >> make |& tee makeout >> >> where the complete ooutput goes into the "makeout" file. The "&" there >> doesn't take it's normal meaning of throwing the task into the background, >> instead, what it does is to capture both the regular output plus the stderr >> output. If you don't use it, you'll get the listing UNTIL the error, and >> it won't register the error, so don't forget it, nor change it's placement. > > I wasn't aware of the use of "&" ! > > I thought that getting a new interactive shell would force tee to record > errors too, as it was supposed to record the whole thing, not leaving > anything out (the errors in this case =P) > > Thanks a lot for the tip Chuck ! There's an app somewhere in ports that will catch some programmable amount of a file (like maybe 1K bytes) and keep this amount as the file keeps writing in and out. That way you can easily catch the most important part only, and toss the rest. It'd be a nice project for anyone new to C, not too difficult. Alterntiavely, you could set it to toss all lines until it notices the work "error" (in upper, lower, or mixed case), whereupon, it switches to saving all. Would be a nice app, but it's there in ports already somewhere. For along time, used only tcsh, under the mistaken belief that you couldn't redirect stderr for piping, under a sh-like shell, but about 6 months ago, I found out how to do that. If you would rather use a sh-like shell (maybe you'd be one of the bash-aficionados?) tell me, I will hunt up that trick. -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIXrOLz62J6PPcoOkRAp2wAJ9XH39bz5QFD5tYOE3pIfjkVV+9EACfZhCe D6YvWJHo363S0oFPEP4x9hc= =AHRa -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Which file can I find the error message that shows on the screen when I build my kernel?
On Sunday 22 June 2008 15:17:56 Chuck Robey wrote: > make |& tee makeout > > where the complete ooutput goes into the "makeout" file. The "&" there > doesn't take it's normal meaning of throwing the task into the background, > instead, what it does is to capture both the regular output plus the stderr > output. If you don't use it, you'll get the listing UNTIL the error, and > it won't register the error, so don't forget it, nor change it's placement. I wasn't aware of the use of "&" ! I thought that getting a new interactive shell would force tee to record errors too, as it was supposed to record the whole thing, not leaving anything out (the errors in this case =P) Thanks a lot for the tip Chuck ! -- Blessings Gonzalo Nemmi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Which file can I find the error message that shows on the screen when I build my kernel?
On Sunday 22 June 2008 15:03:33 [EMAIL PROTECTED] wrote: > Hi: > I have make some changes to the kernel files and rebuild the kernel, but > when I rebuild the kernel, it show some errors and stop rebuild. The > question I want ask is that: Is there any file that store all these error > message, If there is, where can I find it? > Because there are too many errors occur, I can't see all the errors on the > screen, if there is a file that store these error messages, then I can > find all the errors and fixed them. > Thanks! > Best Wishes The Best of FreeBSD Basics by Dru Lavigne; pg43/44; Reed Media Services open your terminal and issue: "csh -i | tee nameoffile" what does that mean? well .. youll get a new prompt and everything that goes on, on that propmt, will be piped to "tee" which will "record everything" on "nameoffile" When done, press Ctrl-D then "cat nameoffile" to view your session. Example: You can often get answers to your questions about FreeBSD by searching in the FreeBSD mailing list archives at http://www.FreeBSD.org/search/search.html [EMAIL PROTECTED] ~]% csh -i | tee recording To read a compressed file without having to first uncompress it, use "zcat" or "zmore" to view it. -- Dru <[EMAIL PROTECTED]> [EMAIL PROTECTED] ~]% cd /usr/ports/ [EMAIL PROTECTED] /usr/ports]% make quicksearch name=linux-doom3 Port: linux-doom3-1.3.1.1304,1 Path: /usr/ports/games/linux-doom3 Info: Doom III for Linux Port: linux-doom3-demo-1.1.1286_1 Path: /usr/ports/games/linux-doom3-demo Info: DOOM III demo for Linux [EMAIL PROTECTED] /usr/ports]% exit [EMAIL PROTECTED] ~]% cat recording To read a compressed file without having to first uncompress it, use "zcat" or "zmore" to view it. -- Dru <[EMAIL PROTECTED]> [EMAIL PROTECTED] ~]% cd /usr/ports/ [EMAIL PROTECTED] /usr/ports]% make quicksearch name=linux-doom3 Port: linux-doom3-1.3.1.1304,1 Path: /usr/ports/games/linux-doom3 Info: Doom III for Linux Port: linux-doom3-demo-1.1.1286_1 Path: /usr/ports/games/linux-doom3-demo Info: DOOM III demo for Linux [EMAIL PROTECTED] /usr/ports]% exit [EMAIL PROTECTED] ~]% That's way better to store just the error messages (which can be easily redirected STDERR to a file using ">& nameoffile" under csh or "2> nameoffile" under bash) beacause you'll be recording your whole sessions instead of just the errors ;) Now be a good citizen, go to freebsdmall.com, buy the book and subscribe to Freebsd starting with version 7.0 ... ;) Thanks Dru, for your book sits on besides my computer now, and it will not move from there for a really long time :) Hope it helps :) -- Blessings Gonzalo Nemmi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Which file can I find the error message that shows on the screen when I build my kernel?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > Hi: > I have make some changes to the kernel files and rebuild the kernel, but > when I rebuild the kernel, it show some errors and stop rebuild. The > question I want ask is that: Is there any file that store all these error > message, If there is, where can I find it? > Because there are too many errors occur, I can't see all the errors on the > screen, if there is a file that store these error messages, then I can > find all the errors and fixed them. > Thanks! > Best Wishes Not zutomatically. When I run builds, I save rthe output. I normally do this in tcsh, so the command here is make |& tee makeout where the complete ooutput goes into the "makeout" file. The "&" there doesn't take it's normal meaning of throwing the task into the background, instead, what it does is to capture both the regular output plus the stderr output. If you don't use it, you'll get the listing UNTIL the error, and it won't register the error, so don't forget it, nor change it's placement. This can also be done in sh shell, but I'm not used to using the sh syntax for that (both piping and tossing the stdout with stderr), so if you need that, I will let someone else tell you how to do that. Be wary of the fact that, that makeout file's gonna be LARGE. Several megs in size. > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIXpdUz62J6PPcoOkRAhfLAJ0Zis2ahvh+Gto8u2eJt/vSkJwZugCfUgrK tEfIlZMl6A2YSTJJqPKOhQA= =GHLz -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Which file can I find the error message that shows on the screen when I build my kernel?
Hi: I have make some changes to the kernel files and rebuild the kernel, but when I rebuild the kernel, it show some errors and stop rebuild. The question I want ask is that: Is there any file that store all these error message, If there is, where can I find it? Because there are too many errors occur, I can't see all the errors on the screen, if there is a file that store these error messages, then I can find all the errors and fixed them. Thanks! Best Wishes ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"