RE: make build -j does not appear to be thread safe
Johnny Hwang <[email protected]> Mon, 12 Oct 2015 21:43:15 +0000
| Newsgroups | gmane.network.open-pegasus.general |
|---|---|
| Message-ID | <SN1PR07MB2224D166B84D9CA88F2A0F79B4310@SN1PR07MB2224.namprd07.prod.outlook.com> |
--_000_SN1PR07MB2224D166B84D9CA88F2A0F79B4310SN1PR07MB2224namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks. For what it's worth, I noticed that the 'build' target aliases to '= depend all', so I'm just running make depend && make all -j instead as work= around right now, good enough for me. From: Remi Chateauneu (Imap) [mailto:[email protected]] Sent: Monday, October 05, 2015 9:29 PM To: Johnny Hwang <[email protected]>; [email protected] Subject: Re: make build -j does not appear to be thread safe Le 06/10/2015 02:13, Johnny Hwang a =E9crit : I get intermittent build errors when I run build -j on 2.14.1, and it appea= rs to be a regression from 2.13.0. Anyone else noticing this issue? I noticed this problem with many other makefiles, and therefore I never use= the -j option except in very specific cases: "In practice, GNU Make parallel execution is severely limited by a number o= f problems stemming from the fact that almost all Makefiles are written wit= h the implicit notion that they will run in series." http://www.cmcrossroad= s.com/article/pitfalls-and-benefits-gnu-make-parallelization --_000_SN1PR07MB2224D166B84D9CA88F2A0F79B4310SN1PR07MB2224namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"> <meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri",sans-serif; color:black;} a:link, span.MsoHyperlink {mso-style-priority:99; color:#0563C1; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:#954F72; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal; font-family:"Calibri",sans-serif; color:windowtext;} span.EmailStyle18 {mso-style-type:personal-reply; font-family:"Calibri",sans-serif; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body bgcolor=3D"white" lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span style=3D"color:#1F497D">Thanks. For what it= 217;s worth, I noticed that the ‘build’ target aliases to ̵= 6;depend all’, so I’m just running make depend && make = all -j instead as workaround right now, good enough for me.<o:p></o:p></spa= n></p> <p class=3D"MsoNormal"><span style=3D"color:#1F497D"><o:p> </o:p></spa= n></p> <div> <div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in = 0in 0in"> <p class=3D"MsoNormal"><b><span style=3D"color:windowtext">From:</span></b>= <span style=3D"color:windowtext"> Remi Chateauneu (Imap) [mailto:remi.chate= [email protected]] <br> <b>Sent:</b> Monday, October 05, 2015 9:29 PM<br> <b>To:</b> Johnny Hwang <[email protected]>; [email protected]= g<br> <b>Subject:</b> Re: make build -j does not appear to be thread safe<o:p></o= :p></span></p> </div> </div> <p class=3D"MsoNormal"><o:p> </o:p></p> <div> <p class=3D"MsoNormal">Le 06/10/2015 02:13, Johnny Hwang a =E9crit :<s= pan style=3D"font-size:12.0pt"><o:p></o:p></span></p> </div> <blockquote style=3D"margin-top:5.0pt;margin-bottom:5.0pt"> <p class=3D"MsoNormal">I get intermittent build errors when I run build -j = on 2.14.1, and it appears to be a regression from 2.13.0. Anyone else notic= ing this issue?<o:p></o:p></p> </blockquote> <p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><span style=3D"font-s= ize:12.0pt;font-family:"Times New Roman",serif"><br> I noticed this problem with many other makefiles, and therefore I never use= the -j option except in very specific cases:<br> <br> "In practice, GNU Make parallel execution is severely limited by a num= ber of problems stemming from the fact that almost all Makefiles are writte= n with the implicit notion that they will run in series." <a href=3D"http://www.cmcrossroads.com/article/pitfalls-and-benefits-gnu-ma= ke-parallelization"> http://www.cmcrossroads.com/article/pitfalls-and-benefits-gnu-make-parallel= ization</a><br> <br> <o:p></o:p></span></p> </div> </body> </html> --_000_SN1PR07MB2224D166B84D9CA88F2A0F79B4310SN1PR07MB2224namp_--