<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15804</bug_id>
          
          <creation_ts>2025-03-18 15:40:11 +0000</creation_ts>
          <short_desc>Add sanity test for g++ supporting &quot;--std=gnu++20&quot;</short_desc>
          <delta_ts>2025-03-28 15:03:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>oe-core other</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yoann Congal">yoann.congal</reporter>
          <assigned_to name="Yoann Congal">yoann.congal</assigned_to>
          <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101408</commentid>
    <comment_count>0</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2025-03-18 15:40:11 +0000</bug_when>
    <thetext>&quot;g++ --std=g++20 ...&quot; is needed to build nodejs.

Instead of failing late into the build, add a sanity check at the start for this.

Timeline:
* https://lists.openembedded.org/g/openembedded-devel/topic/111740469 (thread about failing nodejs build)
* https://lists.yoctoproject.org/g/yocto-patches/topic/yocto_autobuilder2_patch/111757761 (thread on the removal of Ubuntu 20.04 worker for meta-oe)
* Discussed at the engineering call (20250318):
 * Ubuntu 20.04 in near EOL
 * We may remove its support &quot;soon&quot; (without buildtools)
 * To do this, it starts with this sanity check
 * Then, it will justify the use of buildtools or removable from supported distros.

Impact on documentation: the &quot;g++ supports --std=g++20&quot; requirement needs to be documented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101417</commentid>
    <comment_count>1</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2025-03-18 23:19:31 +0000</bug_when>
    <thetext>Errata: the option to test for odejs is &quot;std=gnu++20&quot; (not std=g++20)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101435</commentid>
    <comment_count>2</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2025-03-20 14:39:25 +0000</bug_when>
    <thetext>Patch v2 sent:
openembedded-core@lists.openembedded.org | [PATCH v2 1/2] sanity: Refactor &amp;quot;C++ toolchain support this flag&amp;quot; check
https://lists.openembedded.org/g/openembedded-core/topic/patch_v2_1_2_sanity/111808358
openembedded-core@lists.openembedded.org | [PATCH v2 2/2] insane: Check if the C++ toolchain supports --std=gnu++20
https://lists.openembedded.org/g/openembedded-core/topic/patch_v2_2_2_insane_check/111808359</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101452</commentid>
    <comment_count>3</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2025-03-21 10:12:05 +0000</bug_when>
    <thetext>Sanity check added here:
sanity: Refactor &quot;C++ toolchain support this flag&quot; check : https://git.openembedded.org/openembedded-core/commit/?id=42d012e8414736d89618422fb6f9bce9e4a2a391
sanity: Check if the C++ toolchain supports --std=gnu++20 : 
https://git.openembedded.org/openembedded-core/commit/?id=19004950ad5691ef51f7fcf946558bd0de561403

TODO: Document the requirement on the c++ host compiler</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101460</commentid>
    <comment_count>4</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2025-03-22 22:58:06 +0000</bug_when>
    <thetext>Doc patch sent:
[PATCH] poky.yaml.in: Raise minimum GCC version to 10.1
https://lists.yoctoproject.org/g/docs/topic/patch_poky_yaml_in_raise/111852706</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101530</commentid>
    <comment_count>5</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2025-03-28 15:03:55 +0000</bug_when>
    <thetext>Doc patch merged:
https://git.yoctoproject.org/yocto-docs/commit/?id=0e538c102bfcb7184c76c2401e8cb878168c4434</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>