Skip to contentSkip to conversation

libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by bin/cmake) #hardknott

DISCUSSION Mahendra Sondagar 4 participants 5 messages May 24, 2023 – May 27, 2023

lore
Share & tools
lore
#0 lore raw

Hi.. community

Hope all are doing well

I'm dealing with the Yocto hardknott with my Ubuntu host

The Ubuntu version is Ubuntu 22.04.2 LTS

During the building of the custom image, everything goes well until the build process hits the below error message

| make  -f CMakeFiles/Makefile2 preinstall

| make[1]: Entering directory '/home/aio/AIO_Systems_Yocto/var-fslc-yocto/build_aio/tmp/work/x86_64-linux/cmake-native/3.19.5-r0/build'

| make[1]: Nothing to be done for 'preinstall'.

| make[1]: Leaving directory '/home/aio/AIO_Systems_Yocto/var-fslc-yocto/build_aio/tmp/work/x86_64-linux/cmake-native/3.19.5-r0/build'

| ERROR: oe_runmake failed

| Install the project...

| bin/cmake -P cmake_install.cmake

| WARNING: exit code 1 from a shell command.

| bin/cmake: /home/aio/AIO_Systems_Yocto/var-fslc-yocto/build_aio/tmp/sysroots-uninative/x86_64-linux/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by bin/cmake)

| make: *** [Makefile:162: install] Error 1

| ERROR: ExecutionError('/home/aio/AIO_Systems_Yocto/var-fslc-yocto/build_aio/tmp/work/x86_64-linux/cmake-native/3.19.5-r0/temp/run.do_install.194605', 1, None, None)

for instance, I have also verified the installed version of the GLIBC via the below command

strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX

From where I got to know that, it's already installed!

Can anyone help me here to resolve the issue?

All comments and suggestions welcome

Thanks
Mahendra

#1 lore raw

22.04 is too new for hardknott which was EOL'ed a year ago. Always check the tested distributions sections in manual for a given release. In your case

https://github.com/yoctoproject/poky/blob/hardknott/documentation/ref-manual/system-requirements.rst#supported-linux-distributions

Quoted 71 lines · Mahendra Sondagar

Hi.. community

Hope all are doing well

I'm dealing with the Yocto hardknott with my Ubuntu host

The Ubuntu version is Ubuntu 22.04.2 LTS

During the building of the custom image, everything goes well until the build process hits the below error message

| make -f CMakeFiles/Makefile2 preinstall

| make[1]: Entering directory '/home/aio/AIO_Systems_Yocto/var-fslc-yocto/build_aio/tmp/work/x86_64-linux/cmake-native/3.19.5-r0/build'

| make[1]: Nothing to be done for 'preinstall'.

| make[1]: Leaving directory '/home/aio/AIO_Systems_Yocto/var-fslc-yocto/build_aio/tmp/work/x86_64-linux/cmake-native/3.19.5-r0/build'

| ERROR: oe_runmake failed

| Install the project...

| bin/cmake -P cmake_install.cmake

| WARNING: exit code 1 from a shell command.

| bin/cmake: /home/aio/AIO_Systems_Yocto/var-fslc-yocto/build_aio/tmp/sysroots-uninative/x86_64-linux/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by bin/cmake)

| make: *** [Makefile:162: install] Error 1

| ERROR: ExecutionError('/home/aio/AIO_Systems_Yocto/var-fslc-yocto/build_aio/tmp/work/x86_64-linux/cmake-native/3.19.5-r0/temp/run.do_install.194605', 1, None, None)

for instance, I have also verified the installed version of the GLIBC via the below command

strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX

From where I got to know that, it's already installed!

Can anyone help me here to resolve the issue?

All comments and suggestions welcome

Thanks
Mahendra

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#60109): https://lists.yoctoproject.org/g/yocto/message/60109
Mute This Topic: https://lists.yoctoproject.org/mt/99106807/1997914
Mute #hardknott:https://lists.yoctoproject.org/g/yocto/mutehashtag/hardknott Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
In reply to Mahendra Sondagar
Quoted 20 lines · Mahendra Sondagar

Hi.. community
Hope all are doing well

I'm dealing with the Yocto hardknott with my Ubuntu host The Ubuntu version is Ubuntu 22.04.2 LTS

During the building of the custom image, everything goes well until the build process hits the below error message

| make  -f CMakeFiles/Makefile2 preinstall
| make[1]: Entering directory '/home/aio/AIO_Systems_Yocto/var-fslc- yocto/build_aio/tmp/work/x86_64-linux/cmake-native/3.19.5-r0/build' | make[1]: Nothing to be done for 'preinstall'.
| make[1]: Leaving directory '/home/aio/AIO_Systems_Yocto/var-fslc- yocto/build_aio/tmp/work/x86_64-linux/cmake-native/3.19.5-r0/build'

| ERROR: oe_runmake failed
| Install the project...
| bin/cmake -P cmake_install.cmake
| WARNING: exit code 1 from a shell command.
| bin/cmake: /home/aio/AIO_Systems_Yocto/var-fslc-
Quoted 16 lines

yocto/build_aio/tmp/sysroots-uninative/x86_64- linux/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by bin/cmake)
| make: *** [Makefile:162: install] Error 1
| ERROR: ExecutionError('/home/aio/AIO_Systems_Yocto/var-fslc- yocto/build_aio/tmp/work/x86_64-linux/cmake-native/3.19.5- r0/temp/run.do_install.194605', 1, None, None)

for instance, I have also verified the installed version of the GLIBC via the below command
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
From where I got to know that, it's already installed!

Can anyone help me here to resolve the issue?
All comments and suggestions welcome

Upgrading uninative to a version from master will probably help fix that. As Khem mentions, hardknott is know longer supported through.

Cheers,

Richard

#3 lore raw

I've had success building yocto hardknott images using the crops/poky:ubuntu-20.04 docker image.

Quoted 59 lines · Richard Purdie
Quoted 28 lines · Mahendra Sondagar

Hi.. community
Hope all are doing well

I'm dealing with the Yocto hardknott with my Ubuntu host The Ubuntu version is Ubuntu 22.04.2 LTS

During the building of the custom image, everything goes well until the build process hits the below error message

| make -f CMakeFiles/Makefile2 preinstall
| make[1]: Entering directory '/home/aio/AIO_Systems_Yocto/var-fslc- yocto/build_aio/tmp/work/x86_64-linux/cmake-native/3.19.5-r0/build' | make[1]: Nothing to be done for 'preinstall'.
| make[1]: Leaving directory '/home/aio/AIO_Systems_Yocto/var-fslc- yocto/build_aio/tmp/work/x86_64-linux/cmake-native/3.19.5-r0/build'

| ERROR: oe_runmake failed
| Install the project...
| bin/cmake -P cmake_install.cmake
| WARNING: exit code 1 from a shell command.
| bin/cmake: /home/aio/AIO_Systems_Yocto/var-fslc-

yocto/build_aio/tmp/sysroots-uninative/x86_64- linux/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by bin/cmake)
| make: *** [Makefile:162: install] Error 1
| ERROR: ExecutionError('/home/aio/AIO_Systems_Yocto/var-fslc- yocto/build_aio/tmp/work/x86_64-linux/cmake-native/3.19.5- r0/temp/run.do_install.194605', 1, None, None)

Quoted 8 lines

for instance, I have also verified the installed version of the GLIBC via the below command
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX

From where I got to know that, it's already installed!

Can anyone help me here to resolve the issue?
All comments and suggestions welcome

Upgrading uninative to a version from master will probably help fix that. As Khem mentions, hardknott is know longer supported through.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#60116):
https://lists.yoctoproject.org/g/yocto/message/60116
Mute This Topic: https://lists.yoctoproject.org/mt/99106807/5407716
Mute #hardknott:
https://lists.yoctoproject.org/g/yocto/mutehashtag/hardknott
Group Owner: [email protected] Unsubscribe:
https://lists.yoctoproject.org/g/yocto/leave/9395733/5407716/611402581/xyzzy
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Hi.... @Bill

Thanks

Yes, it's working with the Ubuntu LTS

The issue has been resolved

Thanks