Missing libgcc_s.so.1 and libstdc++.so.6 in sdk

Hi there,

I am using external toolchain, and generate sdk successfully by running 'make target/sdk/compile ' .

The SDK works well when I compile c code.
But when I compile c++ code, I got the following error.(I have added DEPENDS:=+libstdcpp in my Makefile)

Package xxx is missing dependencies for the following libraries:
libgcc_s.so.1
libstdc++.so.6

Can you help me to fix the error, thanks a lot.

What external tool chain ?

A toochain provided by SoC provider. And I can see libgcc_s.so.1 and libstdc++.so.6 in the original toolchain dir.

Then you need to ask the SoC provider...


It appears you are using firmware that is not from the official OpenWrt project.

When using forks/offshoots/vendor-specific builds that are "based on OpenWrt", there may be many differences compared to the official versions (hosted by OpenWrt.org). Some of these customizations may fundamentally change the way that OpenWrt works. You might need help from people with specific/specialized knowledge about the firmware you are using, so it is possible that advice you get here may not be useful.

You may find that the best options are:

  1. Install an official version of OpenWrt, if your device is supported (see https://firmware-selector.openwrt.org).
  2. Ask for help from the maintainer(s) or user community of the specific firmware that you are using.
  3. Provide the source code for the firmware so that users on this forum can understand how your firmware works (OpenWrt forum users are volunteers, so somebody might look at the code if they have time and are interested in your issue).

If you believe that this specific issue is common to generic/official OpenWrt and/or the maintainers of your build have indicated as such, please feel free to clarify.

Shall I modify "package\libs\toolchain\Makefile" to fix it?

You need to convince sdk provider to do so.

Or ask them if it's the proper way of fixing it.

Thanks a lot, I found that libgcc_s.so.1 and libstdc++.so.6 are missing when compile toolchain.

And I have asked SoC provider for help.