stop build of kernel when there is a compilation error when using make -j
Hello, When I run "make" for a kernel tree, it stops immediately on the first compilation error. However, when I use "make -j 4" and there an error, it does not stop immediately because of the parallel build using several CPU cores Is there a way to cause "make -j 4" to stop on the first compilation error ? regards, Kevin
On Sun, 08 Sep 2013 13:33:06 +0300, Kevin Wilson said:
However, when I use "make -j 4" and there an error, it does not stop immediately because of the parallel build using several CPU cores
Is there a way to cause "make -j 4" to stop on the first compilation error ?
Control-C works pretty well. If you don't want to watch it scroll by waiting for an error, write an 'expect' script to do it for you.
Hi, What is "expect" script ? is it in bash? is there a good link for it ? rgs Kevin On Mon, Sep 9, 2013 at 4:15 AM, <Valdis.Kletnieks@vt.edu> wrote:
On Sun, 08 Sep 2013 13:33:06 +0300, Kevin Wilson said:
However, when I use "make -j 4" and there an error, it does not stop immediately because of the parallel build using several CPU cores
Is there a way to cause "make -j 4" to stop on the first compilation error ?
Control-C works pretty well. If you don't want to watch it scroll by waiting for an error, write an 'expect' script to do it for you.
Kevin Wilson <wkevils@gmail.com> wrote:
Hi,
What is "expect" script ? is it in bash? is there a good link for it ? rgs Kevin
On Mon, Sep 9, 2013 at 4:15 AM, <Valdis.Kletnieks@vt.edu> wrote:
On Sun, 08 Sep 2013 13:33:06 +0300, Kevin Wilson said:
However, when I use "make -j 4" and there an error, it does not stop immediately because of the parallel build using several CPU cores
Is there a way to cause "make -j 4" to stop on the first compilation error ?
Control-C works pretty well. If you don't want to watch it scroll by waiting for an error, write an 'expect' script to do it for you.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Expect is conceptually similar to awk, but awk scans files, expect runs processes interactively and parses the output. It has been part of unix (linux) for decades. It can be called from any shell. Google "expect script tutorials" Greg -- Sent from my Android phone with K-9 Mail. Please excuse my brevity.
Did you try "make -S" Regards, Binoy ________________________________________ From: kernelnewbies-bounces@kernelnewbies.org [kernelnewbies-bounces@kernelnewbies.org] on behalf of Greg Freemyer [greg.freemyer@gmail.com] Sent: Wednesday, September 11, 2013 5:02 PM To: Kevin Wilson; Valdis Kletnieks Cc: kernelnewbies@kernelnewbies.org Subject: Re: stop build of kernel when there is a compilation error when using make -j Kevin Wilson <wkevils@gmail.com> wrote:
Hi,
What is "expect" script ? is it in bash? is there a good link for it ? rgs Kevin
On Mon, Sep 9, 2013 at 4:15 AM, <Valdis.Kletnieks@vt.edu> wrote:
On Sun, 08 Sep 2013 13:33:06 +0300, Kevin Wilson said:
However, when I use "make -j 4" and there an error, it does not stop immediately because of the parallel build using several CPU cores
Is there a way to cause "make -j 4" to stop on the first compilation error ?
Control-C works pretty well. If you don't want to watch it scroll by waiting for an error, write an 'expect' script to do it for you.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Expect is conceptually similar to awk, but awk scans files, expect runs processes interactively and parses the output. It has been part of unix (linux) for decades. It can be called from any shell. Google "expect script tutorials" Greg -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
On Wed, 11 Sep 2013 14:14:05 -0000, binoy.jayan@wipro.com said:
Did you try "make -S"
Actually, that's the default, and -S only exists so you can cancel an inherited -k from above. The problem is that if 'make -j4' launches 4 sub-makes, the one that hits the error of course stops right away, but the other three will keep going until they come up for air, which can take some time....
participants (4)
-
binoy.jayan@wipro.com -
Greg Freemyer -
Kevin Wilson -
Valdis.Kletnieks@vt.edu