<?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>13671</bug_id>
          
          <creation_ts>2019-12-04 10:44:14 +0000</creation_ts>
          <short_desc>uninative: cmake-native: libstdc++.so.6: version `GLIBCXX_3.4.26&apos; not found</short_desc>
          <delta_ts>2019-12-05 16:04:21 +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>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominik Wójt">domin144</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>domin144</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85692</commentid>
    <comment_count>0</comment_count>
    <who name="Dominik Wójt">domin144</who>
    <bug_when>2019-12-04 10:44:14 +0000</bug_when>
    <thetext>Preconditions/Environment
-------------------------
poky, sumo
host machine with gcc 9.2.1

Triggering Action/Cause
-----------------------
bitbake cmake-native

Expectation
-----------
Build success.

Actual Result
-------------
/home/dwojt/scratch/mpi-components-aggregator/mpi-build-environment/build/tmp/work/x86_64-linux/cmake-native/3.10.3-r0/build/Bootstrap.cmk/cmake: /home/dwojt/scratch/mpi-components-aggregator/mpi-build-environment/build/tmp/sysroots-uninative/x86_64-linux/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.26&apos; not found (required by /home/dwojt/scratch/mpi-components-aggregator/mpi-build-environment/build/tmp/work/x86_64-linux/cmake-native/3.10.3-r0/build/Bootstrap.cmk/cmake)

Reproducibility
---------------
always

Details
-------
The issue seems to be caused by GLIBCXX version required by executables built by gcc 9 to be more recent than the one provided by uninative. The mechanism for disabling uninative only checks for GLIBC verion on host machine to be more recent than UNINATIVE_MAXGLIBCVERSION, GLIBCXX is not checked.
Poky versions:
UNINATIVE_MAXGLIBCVERSION 2.29
libstdc++.so.6: GLIBCXX_3.4.25
Host versions:
GLIBC 2.29
libstdc++.so.6: GLIBCXX_3.4.28

Possible solution could be to include something like UNINATIVE_MAXGLIBCXXVERSION in uninative.bbclass and yocto-uninative.inc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85693</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-12-04 11:55:06 +0000</bug_when>
    <thetext>Upgrading uninative in sumo would likely fix this FWIW as there are newer uninative releases which address this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85730</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-12-05 16:04:21 +0000</bug_when>
    <thetext>Unfortunately sumo is outside our support window now so we don&apos;t track/work on these bugs. I believe upgrading uninative to a new version would solve the problem though and should be straightforward.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>