Skip to contentSkip to conversation

Pyro's uninative and libstdc++ symbols

DISCUSSION Raphael Kubo da Costa 4 participants 6 messages Aug 25, 2017 – Sep 7, 2017

lore
Share & tools
lore
#0 lore raw

I've recently updated my host system to Fedora 26, which has GCC 7.

This seems to be causing some issues on Pyro, where I have a -native recipe that is built with my system's g++ and ends up generating a binary with the following symbol:

    0000000000000000      DF *UND*  0000000000000000  GLIBCXX_3.4.23 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&, unsigned long, std::allocator<char> const&)

GLIBCXX_3.4.23 is not part of Pyro's uninative's libstdc++, so when that binary is invoked in another (non-native) recipe as part of do_configure it fails to run:

    gn: /data/src/yocto/poky/build/tmp/sysroots-uninative/x86_64-linux/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.23' not found (required by gn)

Is there anything I should be doing differently here?

#1 lore raw

Hi,

You could try to build your own uninative:

bitbake uninative-tarball

and use your own uninative:

update: poky/meta/conf/distro/include/yocto-uninative.inc

Or stop using uninative.
But I'm also curios why native built with newer gcc is not using glibc from uninative (older glibc than gcc 7 uses)

Br,
Chris Z

Quoted 20 lines · Raphael Kubo da Costa

I've recently updated my host system to Fedora 26, which has GCC 7.

This seems to be causing some issues on Pyro, where I have a -native recipe that is built with my system's g++ and ends up generating a binary with the following symbol:

    0000000000000000      DF *UND*  0000000000000000  GLIBCXX_3.4.23 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&, unsigned long, std::allocator<char> const&)

GLIBCXX_3.4.23 is not part of Pyro's uninative's libstdc++, so when that binary is invoked in another (non-native) recipe as part of do_configure it fails to run:

    gn: /data/src/yocto/poky/build/tmp/sysroots-uninative/x86_64-linux/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.23' not found (required by gn)

Is there anything I should be doing differently here? --
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw
In reply to Raphael Kubo da Costa
Quoted 17 lines · Raphael Kubo da Costa

I've recently updated my host system to Fedora 26, which has GCC 7.

This seems to be causing some issues on Pyro, where I have a -native recipe that is built with my system's g++ and ends up generating a binary with the following symbol:

    0000000000000000      DF *UND*  0000000000000000  GLIBCXX_3.4.23 std::basic_string<char, std::char_traits<char>, std::allocator<char>

Quoted 1 line

::basic_string(std::string const&, unsigned long,

std::allocator<char> const&)

GLIBCXX_3.4.23 is not part of Pyro's uninative's libstdc++, so when that
binary is invoked in another (non-native) recipe as part of do_configure
it fails to run:

Quoted 5 lines

    gn: /data/src/yocto/poky/build/tmp/sysroots-uninative/x86_64- linux/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.23' not found (required by gn)

Is there anything I should be doing differently here?

We need to update the uninative version in pyro to the more recent version in master. uninative works on the principle that it the same version or newer than the host system and for older releases this ceases to be the case unless we upgrade it.

Cheers,

Richard

#3 lore raw
Quoted 18 lines · Richard Purdie
Quoted 17 lines · Raphael Kubo da Costa

I've recently updated my host system to Fedora 26, which has GCC 7.

This seems to be causing some issues on Pyro, where I have a -native recipe that is built with my system's g++ and ends up generating a binary with the following symbol:

     0000000000000000      DF *UND*  0000000000000000  GLIBCXX_3.4.23

std::basic_string<char, std::char_traits<char>, std::allocator<char>

Quoted 1 line

::basic_string(std::string const&, unsigned long,

std::allocator<char> const&)

GLIBCXX_3.4.23 is not part of Pyro's uninative's libstdc++, so when that
binary is invoked in another (non-native) recipe as part of do_configure
it fails to run:

Quoted 6 lines
Quoted 5 lines
     gn: /data/src/yocto/poky/build/tmp/sysroots-uninative/x86_64-

linux/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.23' not found (required by gn)

Is there anything I should be doing differently here?

We need to update the uninative version in pyro to the more recent

is this action just a straight forward backport from Master?
-= Armin

Quoted 8 lines

version in master. uninative works on the principle that it the same version or newer than the host system and for older releases this ceases to be the case unless we upgrade it.

Cheers,

Richard

#4 lore raw
Quoted 29 lines · akuster
Quoted 27 lines · Richard Purdie
Quoted 25 lines · Raphael Kubo da Costa

I've recently updated my host system to Fedora 26, which has GCC 7.

This seems to be causing some issues on Pyro, where I have a -native
recipe that is built with my system's g++ and ends up generating a
binary with the following symbol:

     0000000000000000      DF
*UND*  0000000000000000  GLIBCXX_3.4.23
std::basic_string<char, std::char_traits<char>,
std::allocator<char>

Quoted 2 lines

::basic_string(std::string const&, unsigned long,

std::allocator<char> const&)

GLIBCXX_3.4.23 is not part of Pyro's uninative's libstdc++, so when
that
binary is invoked in another (non-native) recipe as part of do_configure
it fails to run:

Quoted 8 lines
Quoted 7 lines
Quoted 6 lines

     gn: /data/src/yocto/poky/build/tmp/sysroots- uninative/x86_64-
linux/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.23' not found (required by gn)

Is there anything I should be doing differently here?

We need to update the uninative version in pyro to the more recent

is this action just a straight forward backport from Master?

Yes, should be...

Cheers,

Richard

#5 lore raw
Quoted 34 lines · Richard Purdie
Quoted 33 lines · akuster
Quoted 32 lines · Richard Purdie
Quoted 30 lines · Raphael Kubo da Costa

I've recently updated my host system to Fedora 26, which has GCC 7.

This seems to be causing some issues on Pyro, where I have a -native
recipe that is built with my system's g++ and ends up generating a
binary with the following symbol:

     0000000000000000      DF
*UND*  0000000000000000  GLIBCXX_3.4.23
std::basic_string<char, std::char_traits<char>,
std::allocator<char>

Quoted 2 lines

::basic_string(std::string const&, unsigned long,

std::allocator<char> const&)

GLIBCXX_3.4.23 is not part of Pyro's uninative's libstdc++, so when
that
binary is invoked in another (non-native) recipe as part of do_configure
it fails to run:

     gn: /data/src/yocto/poky/build/tmp/sysroots- uninative/x86_64-
linux/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.23' not found (required by gn)

Quoted 5 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line

Is there anything I should be doing differently here?

We need to update the uninative version in pyro to the more recent

is this action just a straight forward backport from Master?

Yes, should be...

For the record, I think Richard fixed this with pyro commit 98dcaa9d2c95328eedd6d3608f41c808509348b4 ("uninative: Update to 1.7 uninative release"). I can confirm I can continue using all the uninative bits on Fedora 26 now. Thanks!