Trouble when compiling OpenWrt with Qbittorrent (fatal error: gnu/stubs.h)

Hi.If I try compile OpenWRT with Qbittorrent from this repository https://github.com/KryptonLee/qBittorrent-openwrt-package all compile good. But if I want use libtorrent-rasterbar from OpenWRT repository https://github.com/openwrt/packages/tree/master/libs/libtorrent-rasterbar It give error:

aarch64-openwrt-linux-musl-g++ -c -pipe -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/osboxes/openwrt/build_dir/target-aarch64_cortex-a53_musl/qBittorrent-4.3.1=qBittorrent-4.3.1 -Wformat -Werror=format-security -fstack-protector -Wl,-z,now -Wl,-z,relro -fexceptions -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/osboxes/openwrt/build_dir/target-aarch64_cortex-a53_musl/qBittorrent-4.3.1=qBittorrent-4.3.1 -Wformat -Werror=format-security -fstack-protector -Wl,-z,now -Wl,-z,relro -Wall -Wextra -Wpedantic -Wformat-security -O2 -D_REENTRANT -Wall -Wextra -fPIC -D_FORTIFY_SOURCE=1 -DTORRENT_LINKING_SHARED -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_NO_DEPRECATED -DTORRENT_USE_OPENSSL -DTORRENT_USE_LIBCRYPTO -DTORRENT_SSL_PEERS -DOPENSSL_NO_SSL2 -D_FORTIFY_SOURCE=1 -DDISABLE_GUI -DQT_NO_DEBUG_OUTPUT -DQBT_VERSION_MAJOR=4 -DQBT_VERSION_MINOR=3 -DQBT_VERSION_BUGFIX=1 -DQBT_VERSION_BUILD=0 -DQBT_VERSION=\"v4.3.1\" -DQBT_VERSION_2=\"4.3.1\" -DQT_DEPRECATED_WARNINGS -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_USE_QSTRINGBUILDER -DQT_STRICT_ITERATORS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I/usr/include -I. -Iapp -I../../qt-everywhere-src-5.14.2/ipkg-install/usr/include -I../../qt-everywhere-src-5.14.2/ipkg-install/usr/include/QtNetwork -I../../qt-everywhere-src-5.14.2/ipkg-install/usr/include/QtXml -I../../qt-everywhere-src-5.14.2/ipkg-install/usr/include/QtCore -I. -I../../../../staging_dir/hostpkg/mkspecs/linux-openwrt-g++ -o application.o app/application.cpp
In file included from /usr/include/assert.h:35,
                 from ../../qt-everywhere-src-5.14.2/ipkg-install/usr/include/QtCore/qglobal.h:50,
                 from ../../qt-everywhere-src-5.14.2/ipkg-install/usr/include/QtCore/qsharedpointer.h:43,
                 from ../../qt-everywhere-src-5.14.2/ipkg-install/usr/include/QtCore/qpointer.h:43,
                 from ../../qt-everywhere-src-5.14.2/ipkg-install/usr/include/QtCore/QPointer:1,
                 from app/application.h:32,
                 from app/application.cpp:30:
/usr/include/features.h:388:10: fatal error: gnu/stubs.h: No such file or directory
 #include <gnu/stubs.h>
          ^~~~~~~~~~~~~
compilation terminated.
Makefile:6131: recipe for target 'application.o' failed
make[5]: *** [application.o] Error 1
make[5]: Leaving directory '/home/osboxes/openwrt/build_dir/target-aarch64_cortex-a53_musl/qBittorrent-4.3.1/src'
Makefile:46: recipe for target 'sub-src-make_first' failed
make[4]: *** [sub-src-make_first] Error 2
make[4]: Leaving directory '/home/osboxes/openwrt/build_dir/target-aarch64_cortex-a53_musl/qBittorrent-4.3.1'
Makefile:66: recipe for target '/home/osboxes/openwrt/build_dir/target-aarch64_cortex-a53_musl/qBittorrent-4.3.1/.built' failed
make[3]: *** [/home/osboxes/openwrt/build_dir/target-aarch64_cortex-a53_musl/qBittorrent-4.3.1/.built] Error 2
make[3]: Leaving directory '/home/osboxes/openwrt/package/qbittorrent/qBittorrent'
time: package/qbittorrent/qBittorrent/compile#30.91#19.86#396.69
    ERROR: package/qbittorrent/qBittorrent failed to build.
package/Makefile:112: recipe for target 'package/qbittorrent/qBittorrent/compile' failed
make[2]: *** [package/qbittorrent/qBittorrent/compile] Error 1
make[2]: Leaving directory '/home/osboxes/openwrt'
package/Makefile:108: recipe for target '/home/osboxes/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile' failed
make[1]: *** [/home/osboxes/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/osboxes/openwrt'
/home/osboxes/openwrt/include/toplevel.mk:240: recipe for target 'world' failed
make: *** [world] Error 2

I have overcome this error by command:
sudo apt-get install g++-multilib libc6-dev-i386

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.