kraj / meta-openwrt

OE/Yocto metadata layer for OpenWRT
MIT License
103 stars 78 forks source link

Building error (no __cxa_demangle in lstdc++), its a dependencies problem? #145

Closed retsel89 closed 6 months ago

retsel89 commented 6 months ago

I get this message building for a raspberry pi zero wifi in ubuntu 22.04LTS:

checking for __cxa_demangle in -lstdc++... no | configure: error: __cxa_demangle not found in libstdc++, use --disable-demangler to disable demangler support. | NOTE: The following config.log files may provide further information. | NOTE: /home/lester/openwrt/openembedded-core/build/tmp-musl/work/x86_64-linux/elfutils-native/0.191/build/config.log | ERROR: configure failed | WARNING: exit code 1 from a shell command. ERROR: Task (virtual:native:/home/lester/openwrt/openembedded-core/meta/recipes-devtools/elfutils/elfutils_0.191.bb:do_configure) failed with exit code '1' NOTE: Tasks Summary: Attempted 1362 tasks of which 1230 didn't need to be rerun and 1 failed.

Summary: 1 task failed: virtual:native:/home/lester/openwrt/openembedded-core/meta/recipes-devtools/elfutils/elfutils_0.191.bb:do_configure Summary: There were 2 ERROR messages, returning a non-zero exit code.

kraj commented 6 months ago

@retsel89 it seems to be an issue with build host provided libstdc++ I think. Since its a native recipe. I think adding --disable-demangler to elfutils native configure options is a solution. However it will be good to understand why you are seeing it. So please describe your setup a bit. Secondly, also post the config.log from elfuitls-native build tree, which will have more informaiton about the failure

retsel89 commented 6 months ago

I will close since i try on a fresh instalation and work perfect