<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Would passing "-Ddebug=true" be better than changing the default buildtype?<br>It's possible to have a release build (i.e. O3 optimized) with debug info.<br></blockquote><div><br></div><div>Strangely, even with -Ddebug true if I'm running buildtype "release" it returns the same warnings. I'm inferring from your comment that release optimization == debugoptimized optimization and debug behavior from -Ddebug=true == debug behavior from debugoptimized, so release buildtype + debug "should" have the same behavior as just setting buildtype debugoptimized, and yet...</div><div><br></div><div>I'll have to look into this a little more. Hopefully by the end I'll be like David and understand the relations between these flags better, hah.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 15, 2023 at 1:02 PM Richardson, Bruce <<a href="mailto:bruce.richardson@intel.com">bruce.richardson@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> -----Original Message-----<br>
> From: David Marchand <<a href="mailto:david.marchand@redhat.com" target="_blank">david.marchand@redhat.com</a>><br>
> Sent: Wednesday, March 15, 2023 4:08 PM<br>
> To: Patrick Robb <<a href="mailto:probb@iol.unh.edu" target="_blank">probb@iol.unh.edu</a>><br>
> Cc: <a href="mailto:ci@dpdk.org" target="_blank">ci@dpdk.org</a>; Aaron Conole <<a href="mailto:aconole@redhat.com" target="_blank">aconole@redhat.com</a>>; Richardson, Bruce<br>
> <<a href="mailto:bruce.richardson@intel.com" target="_blank">bruce.richardson@intel.com</a>>; Thomas Monjalon <<a href="mailto:thomas@monjalon.net" target="_blank">thomas@monjalon.net</a>><br>
> Subject: Re: Meson buildtype for ci jobs?<br>
> <br>
> On Wed, Mar 15, 2023 at 4:52 PM Patrick Robb <<a href="mailto:probb@iol.unh.edu" target="_blank">probb@iol.unh.edu</a>> wrote:<br>
> ><br>
> > Hello all,<br>
> ><br>
> > The lab recently received a request to re-enable Alpine compile jobs,<br>
> which have been disabled for almost a year. In dry running the compile<br>
> job, I noticed that it was failing. At the same time, David Marchand did<br>
> an Alpine compile with Github Actions which was successful. It seems the<br>
> source of the different behavior is the meson buildtype being used - the<br>
> build script used by GHA sets meson buildtype to debugoptimized, whereas<br>
> the script used by the community lab runs with buildtype debug (the meson<br>
> default). I did my own Github Actions runs (with both buildtype options)<br>
> to sanity check:<br>
> <a href="https://github.com/PatrickRobbIOL/dpdk/actions/runs/4427160204/jobs/776436" rel="noreferrer" target="_blank">https://github.com/PatrickRobbIOL/dpdk/actions/runs/4427160204/jobs/776436</a><br>
> 8640<br>
> <br>
> Are you sure about the default value?<br>
> <br>
> Afaics, meson selects by default a "release" buildtype (and I think I<br>
> always saw this value in the past).<br>
> I have this with meson 1.0.<br>
> <br>
> $ meson setup qsdlgfh<br>
> ...<br>
> $ meson configure qsdlgfh | grep buildtype<br>
> buildtype release<br>
> [plain, debug, debugoptimized, Build type to use<br>
> <br>
> ><br>
> > The reason I'm writing this email is that I'm wondering whether the<br>
> buildtype decision made by those who wrote .ci/linux-build.sh for GHA was<br>
> intentional and important. I know many of the people who have commits on<br>
> that script follow this mailing list. Obviously if it's in some way more<br>
> appropriate for CI purposes to run meson setup in this way, I'm happy to<br>
> make that change at the lab and in the process that would free up bringing<br>
> Alpine compile testing online. But, if not, then I think it's most<br>
> appropriate to consider compile on Alpine as broken and avoid bringing<br>
> coverage for Alpine online until that issue is resolved.<br>
> <br>
> The reason why we went with debugoptimized was primarly for the ABI<br>
> checks, as by default, the debug symbols were missing (which would<br>
> match with a "release" default buildtype).<br>
> See 777014e56d07 ("devtools: add ABI checks").<br>
> <br>
<br>
Would passing "-Ddebug=true" be better than changing the default buildtype?<br>
It's possible to have a release build (i.e. O3 optimized) with debug info.<br>
<br>
/Bruce<br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><font color="#000000" face="Arial"><span style="font-size:13.3333px;white-space:pre-wrap">Patrick Robb</span></font></p><p style="color:rgb(34,34,34);line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Technical Service Manager</span></p><p dir="ltr" style="color:rgb(34,34,34);line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">UNH InterOperability Laboratory</span></p><p dir="ltr" style="color:rgb(34,34,34);line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">21 Madbury Rd, Suite 100, Durham, NH 03824</span></p><p dir="ltr" style="color:rgb(34,34,34);line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(17,85,204);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><a href="http://www.iol.unh.edu/" style="color:rgb(17,85,204)" target="_blank">www.iol.unh.edu</a></span></p><p dir="ltr" style="color:rgb(34,34,34);line-height:1.2;margin-top:0pt;margin-bottom:0pt"><br></p><p dir="ltr" style="color:rgb(34,34,34);line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(51,51,51);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh4.googleusercontent.com/7sTY8VswXadak_YT0J13osh5ockNVRX2BuYaRsKoTTpkpilBokA0WlocYHLB4q7XUgXNHka6-ns47S8R_am0sOt7MYQQ1ILQ3S-P5aezsrjp3-IsJMmMrErHWmTARNgZhpAx06n2" width="150" height="37" style="border: none;"></span></p></div></div>