SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.02k stars 1.23k forks source link

Bug when invoking build from cross #5994

Closed th0ma7 closed 7 months ago

th0ma7 commented 7 months ago

Is this a new Bug?

Package Name

any

Package Version

any

Device Model

any

Device Architecture

x86_64

Firmware Version

any

What happened?

I noticed this during my work on qoriq rust toolchain but just confirmed, a recent change generates the following error when invoking build from cross:

spksrc@spksrc:~/qoriq-debug-update/spksrc/cross/openssl3$ make all-supported
===>  Pre-build native dependencies for parallel build
make[1]: Entering directory '/home/spksrc/qoriq-debug-update/spksrc/cross/openssl3'
===>  Downloading files for openssl3
===>    File openssl-3.1.4.tar.gz already downloaded
===>  Verifying files for openssl3
===>    Checking sha1sum of file openssl-3.1.4.tar.gz
===>    Checking sha256sum of file openssl-3.1.4.tar.gz
===>    Checking md5sum of file openssl-3.1.4.tar.gz
/home/spksrc/qoriq-debug-update/spksrc/cross/openssl3/../../distrib/openssl-3.1.4.tar.gz
===>  Processing dependencies of openssl3
make[2]: Entering directory '/home/spksrc/qoriq-debug-update/spksrc/cross/zlib'
===>  Downloading files for zlib
===>    File zlib-1.2.13.tar.gz already downloaded
===>  Verifying files for zlib
===>    Checking sha1sum of file zlib-1.2.13.tar.gz
===>    Checking sha256sum of file zlib-1.2.13.tar.gz
===>    Checking md5sum of file zlib-1.2.13.tar.gz
/home/spksrc/qoriq-debug-update/spksrc/cross/zlib/../../distrib/zlib-1.2.13.tar.gz
===>  Processing dependencies of zlib
===>  Extracting for zlib
tar -xzpf /home/spksrc/qoriq-debug-update/spksrc/cross/zlib/../../distrib/zlib-1.2.13.tar.gz -C /home/spksrc/qoriq-debug-update/spksrc/cross/openssl3/work 
===>  Patching for zlib
===>  Generating /home/spksrc/qoriq-debug-update/spksrc/cross/openssl3/work/zlib-1.2.13/-toolchain.cmake
env make --no-print-directory cmake_pkg_toolchain > /home/spksrc/qoriq-debug-update/spksrc/cross/openssl3/work/zlib-1.2.13/-toolchain.cmake 2>/dev/null;
make[2]: *** [../../mk/spksrc.cross-cmake.mk:41: /home/spksrc/qoriq-debug-update/spksrc/cross/openssl3/work/zlib-1.2.13/-toolchain.cmake] Error 2
make[2]: Leaving directory '/home/spksrc/qoriq-debug-update/spksrc/cross/zlib'
make[1]: *** [../../mk/spksrc.depend.mk:54: depend_target] Error 2
make[1]: Leaving directory '/home/spksrc/qoriq-debug-update/spksrc/cross/openssl3'
make: *** [../../mk/spksrc.cross-cc.mk:84: all-supported] Error 2

Reproduction steps

see above

Install Log

see above

Service Log

No response

Other Logs

No response

th0ma7 commented 7 months ago

Found what the issue is, it's only a matter of invoking make setup from root directory... so all its missing is a warning similar to when invoked through spk/*.