Bug 13671 - uninative: cmake-native: libstdc++.so.6: version `GLIBCXX_3.4.26' not found
Summary: uninative: cmake-native: libstdc++.so.6: version `GLIBCXX_3.4.26' not found
Status: RESOLVED OBSOLETE
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-12-04 10:44 UTC by Dominik Wójt
Modified: 2019-12-05 16:04 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Wójt 2019-12-04 10:44:14 UTC
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' 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.
Comment 1 Richard Purdie 2019-12-04 11:55:06 UTC
Upgrading uninative in sumo would likely fix this FWIW as there are newer uninative releases which address this issue.
Comment 2 Richard Purdie 2019-12-05 16:04:21 UTC
Unfortunately sumo is outside our support window now so we don't track/work on these bugs. I believe upgrading uninative to a new version would solve the problem though and should be straightforward.