Hi everyone, I'm looking for some help with this error. Tried the usual make clean/dirclean and manually cleaning out all the old leftovers, no change.
Building git master (3446702c) on Manjaro (Arch) stable. I only have this issue building x86, ath79 builds work fine.
time: package/feeds/packages/xz/compile#0.16#0.09#0.24
make[3]: Entering directory '/home/*/x86/feeds/packages/lang/python/python3'
rm -f /home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/.built
touch /home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/.built_check
CFLAGS="-O2 -pipe -march=btver2 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1=Python-3.8.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -I/home/*/x86/staging_dir/target-x86_64_musl/usr/include -I/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/usr/include -I/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/include/fortify -I/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/include " CXXFLAGS="-O2 -pipe -march=btver2 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1=Python-3.8.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -I/home/*/x86/staging_dir/target-x86_64_musl/usr/include -I/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/usr/include -I/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/include/fortify -I/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/include " LDFLAGS="-L/home/*/x86/staging_dir/target-x86_64_musl/usr/lib -L/home/*/x86/staging_dir/target-x86_64_musl/lib -L/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/usr/lib -L/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/lib -znow -zrelro -L/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1" make -C /home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/. AR="x86_64-openwrt-linux-musl-gcc-ar" AS="x86_64-openwrt-linux-musl-gcc -c -O2 -pipe -march=btver2 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1=Python-3.8.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=x86_64-openwrt-linux-musl-ld NM="x86_64-openwrt-linux-musl-gcc-nm" CC="x86_64-openwrt-linux-musl-gcc" GCC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" RANLIB="x86_64-openwrt-linux-musl-gcc-ranlib" STRIP=x86_64-openwrt-linux-musl-strip OBJCOPY=x86_64-openwrt-linux-musl-objcopy OBJDUMP=x86_64-openwrt-linux-musl-objdump SIZE=x86_64-openwrt-linux-musl-size CROSS="x86_64-openwrt-linux-musl-" ARCH="x86_64" CROSS_COMPILE=yes LD="x86_64-openwrt-linux-musl-gcc" ;
make[4]: Entering directory '/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1'
CC='x86_64-openwrt-linux-musl-gcc' LDSHARED='x86_64-openwrt-linux-musl-gcc -shared -L/home/*/x86/staging_dir/target-x86_64_musl/usr/lib -L/home/*/x86/staging_dir/target-x86_64_musl/lib -L/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/usr/lib -L/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/lib -znow -zrelro -L/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1 -L/home/*/x86/staging_dir/target-x86_64_musl/usr/lib -L/home/*/x86/staging_dir/target-x86_64_musl/lib -L/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/usr/lib -L/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/lib -znow -zrelro -L/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1 ' OPT='-DNDEBUG -O2 -pipe -march=btver2 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1=Python-3.8.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro' _TCLTK_INCLUDES='' _TCLTK_LIBS='' _PYTHON_PROJECT_BASE=/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1 _PYTHON_HOST_PLATFORM=linux2 PYTHONPATH=/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Lib:/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/build/lib.linux2-3.8 _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata /home/*/x86/staging_dir/hostpkg/bin/python3.8 ./setup.py build
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers
building '_ssl' extension
x86_64-openwrt-linux-musl-gcc -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -march=btver2 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1=Python-3.8.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -O2 -pipe -march=btver2 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1=Python-3.8.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -O2 -pipe -march=btver2 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -ffile-prefix-map=/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1=Python-3.8.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -I/home/*/x86/staging_dir/target-x86_64_musl/usr/include -I/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/usr/include -I/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/include/fortify -I/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/include -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I./Include/internal -I/home/*/x86/staging_dir/target-x86_64_musl/usr/include -I./Include -I. -I/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/usr/include -I/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/include/fortify -I/home/*/x86/staging_dir/toolchain-x86_64_gcc-8.3.0_musl/include -I/home/*/x86/staging_dir/target-x86_64_musl/usr/include -I/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Include -I/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1 -c /home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c -o build/temp.linux2-3.8/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.o
cc1: note: someone does not honour COPTS correctly, passed 3 times
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c: In function '_ssl_configure_hostname':
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:899:51: error: implicit declaration of function 'ASN1_STRING_data'; did you mean 'ASN1_STRING_set0'? [-Werror=implicit-function-declaration]
if (!X509_VERIFY_PARAM_set1_ip(param, ASN1_STRING_data(ip),
^~~~~~~~~~~~~~~~
ASN1_STRING_set0
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:899:51: warning: passing argument 2 of 'X509_VERIFY_PARAM_set1_ip' makes pointer from integer without a cast [-Wint-conversion]
if (!X509_VERIFY_PARAM_set1_ip(param, ASN1_STRING_data(ip),
^~~~~~~~~~~~~~~~~~~~
In file included from /home/*/x86/staging_dir/target-x86_64_musl/usr/include/openssl/x509.h:320,
from /home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:59:
/home/*/x86/staging_dir/target-x86_64_musl/usr/include/openssl/x509_vfy.h:567:52: note: expected 'const unsigned char *' but argument is of type 'int'
const unsigned char *ip, size_t iplen);
~~~~~~~~~~~~~~~~~~~~~^~
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c: In function '_get_peer_alt_names':
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:1375:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
v = PyUnicode_FromStringAndSize((char *)ASN1_STRING_data(as),
^
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c: In function '_decode_certificate':
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:1733:17: error: implicit declaration of function 'X509_get_notBefore'; did you mean 'X509_getm_notBefore'? [-Werror=implicit-function-declaration]
notBefore = X509_get_notBefore(certificate);
^~~~~~~~~~~~~~~~~~
X509_getm_notBefore
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:1733:15: warning: assignment to 'ASN1_TIME *' {aka 'struct asn1_string_st *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
notBefore = X509_get_notBefore(certificate);
^
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:1750:16: error: implicit declaration of function 'X509_get_notAfter'; did you mean 'X509_getm_notAfter'? [-Werror=implicit-function-declaration]
notAfter = X509_get_notAfter(certificate);
^~~~~~~~~~~~~~~~~
X509_getm_notAfter
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:1750:14: warning: assignment to 'ASN1_TIME *' {aka 'struct asn1_string_st *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
notAfter = X509_get_notAfter(certificate);
^
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c: In function '_ssl__SSLContext_impl':
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:3088:27: error: implicit declaration of function 'TLSv1_method'; did you mean 'TLS_method'? [-Werror=implicit-function-declaration]
ctx = SSL_CTX_new(TLSv1_method());
^~~~~~~~~~~~
TLS_method
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:3088:27: warning: passing argument 1 of 'SSL_CTX_new' makes pointer from integer without a cast [-Wint-conversion]
ctx = SSL_CTX_new(TLSv1_method());
^~~~~~~~~~~~~~
In file included from /home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:62:
/home/*/x86/staging_dir/target-x86_64_musl/usr/include/openssl/ssl.h:1509:17: note: expected 'const SSL_METHOD *' {aka 'const struct ssl_method_st *'} but argument is of type 'int'
__owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
^~~~~~~~~~~
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:3091:27: error: implicit declaration of function 'TLSv1_1_method'; did you mean 'TLS_method'? [-Werror=implicit-function-declaration]
ctx = SSL_CTX_new(TLSv1_1_method());
^~~~~~~~~~~~~~
TLS_method
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:3091:27: warning: passing argument 1 of 'SSL_CTX_new' makes pointer from integer without a cast [-Wint-conversion]
ctx = SSL_CTX_new(TLSv1_1_method());
^~~~~~~~~~~~~~~~
In file included from /home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:62:
/home/*/x86/staging_dir/target-x86_64_musl/usr/include/openssl/ssl.h:1509:17: note: expected 'const SSL_METHOD *' {aka 'const struct ssl_method_st *'} but argument is of type 'int'
__owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
^~~~~~~~~~~
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:3093:27: error: implicit declaration of function 'TLSv1_2_method'; did you mean 'TLS_method'? [-Werror=implicit-function-declaration]
ctx = SSL_CTX_new(TLSv1_2_method());
^~~~~~~~~~~~~~
TLS_method
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:3093:27: warning: passing argument 1 of 'SSL_CTX_new' makes pointer from integer without a cast [-Wint-conversion]
ctx = SSL_CTX_new(TLSv1_2_method());
^~~~~~~~~~~~~~~~
In file included from /home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:62:
/home/*/x86/staging_dir/target-x86_64_musl/usr/include/openssl/ssl.h:1509:17: note: expected 'const SSL_METHOD *' {aka 'const struct ssl_method_st *'} but argument is of type 'int'
__owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
^~~~~~~~~~~
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:3211:14: error: implicit declaration of function 'SSLeay'; did you mean 'SSLerr'? [-Werror=implicit-function-declaration]
libver = SSLeay();
^~~~~~
SSLerr
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c: In function 'PySSL_RAND':
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:5291:14: error: implicit declaration of function 'RAND_pseudo_bytes'; did you mean '_ssl_RAND_pseudo_bytes'? [-Werror=implicit-function-declaration]
ok = RAND_pseudo_bytes((unsigned char*)PyBytes_AS_STRING(bytes), len);
^~~~~~~~~~~~~~~~~
_ssl_RAND_pseudo_bytes
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c: In function 'PyInit__ssl':
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:6392:30: error: implicit declaration of function 'SSLeay_version'; did you mean 'SSL_version'? [-Werror=implicit-function-declaration]
r = PyUnicode_FromString(SSLeay_version(SSLEAY_VERSION));
^~~~~~~~~~~~~~
SSL_version
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:6392:45: error: 'SSLEAY_VERSION' undeclared (first use in this function); did you mean 'SSL2_VERSION'?
r = PyUnicode_FromString(SSLeay_version(SSLEAY_VERSION));
^~~~~~~~~~~~~~
SSL2_VERSION
/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/Modules/_ssl.c:6392:45: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_tkinter nis readline
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc atexit pwd
time zlib
Failed to build these modules:
_ssl
make[4]: *** [Makefile:614: sharedmods] Error 1
make[4]: Leaving directory '/home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1'
make[3]: *** [Makefile:361: /home/*/x86/build_dir/target-x86_64_musl/Python-3.8.1/.built] Error 2
make[3]: Leaving directory '/home/*/x86/feeds/packages/lang/python/python3'
time: package/feeds/packages/python3/compile#0.85#0.24#1.26
make[2]: *** [package/Makefile:113: package/feeds/packages/python3/compile] Error 2
make[2]: Leaving directory '/home/*/x86'
make[1]: *** [package/Makefile:107: /home/*/x86/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/*/x86'
make: *** [/home/*/x86/include/toplevel.mk:227: world] Error 2
Any help/pointers would be much appreciated!