<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.gmailsignatureprefix
        {mso-style-name:gmail_signature_prefix;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-IE" style="mso-fareast-language:EN-US">The difference between release + debug and “debugoptimized” is that the former is “-O3 -g” while the latter is “-O2 -g”. The buildtypes are just shortcuts for setting optimization level
 and debug flags, and release is -O3 only flag.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IE" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Patrick Robb <probb@iol.unh.edu>
<br>
<b>Sent:</b> Wednesday, March 15, 2023 7:14 PM<br>
<b>To:</b> Richardson, Bruce <bruce.richardson@intel.com><br>
<b>Cc:</b> David Marchand <david.marchand@redhat.com>; ci@dpdk.org; Aaron Conole <aconole@redhat.com>; Thomas Monjalon <thomas@monjalon.net><br>
<b>Subject:</b> Re: Meson buildtype for ci jobs?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">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.<o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">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...<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Wed, Mar 15, 2023 at 1:02 PM Richardson, Bruce <<a href="mailto:bruce.richardson@intel.com">bruce.richardson@intel.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><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" 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<o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><span class="gmailsignatureprefix">-- </span><o:p></o:p></p>
<div>
<div>
<p style="margin:0cm"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Patrick Robb</span><o:p></o:p></p>
<p style="margin:0cm"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Technical Service Manager</span><span style="color:#222222"><o:p></o:p></span></p>
<p style="margin:0cm"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">UNH InterOperability Laboratory</span><span style="color:#222222"><o:p></o:p></span></p>
<p style="margin:0cm"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">21 Madbury Rd, Suite 100, Durham, NH 03824</span><span style="color:#222222"><o:p></o:p></span></p>
<p style="margin:0cm"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1155CC"><a href="http://www.iol.unh.edu/" target="_blank"><span style="color:#1155CC">www.iol.unh.edu</span></a></span><span style="color:#222222"><o:p></o:p></span></p>
<p style="margin:0cm"><span style="color:#222222"><o:p> </o:p></span></p>
<p style="margin:0cm"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#333333"><img border="0" width="150" height="37" style="width:1.5625in;height:.3854in" id="_x0000_i1025" src="https://lh4.googleusercontent.com/7sTY8VswXadak_YT0J13osh5ockNVRX2BuYaRsKoTTpkpilBokA0WlocYHLB4q7XUgXNHka6-ns47S8R_am0sOt7MYQQ1ILQ3S-P5aezsrjp3-IsJMmMrErHWmTARNgZhpAx06n2"></span><span style="color:#222222"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>