Closed oskarirauta closed 1 month ago
mark.
Seemingly the same problem https://github.com/openwrt/openwrt/issues/12577
@neheb @byoda @blogic @miska @jmarcet @vk496 @svlobanov @thess @reinerh @dangowrt ping
@pprindeville @RetEECS ping (perl)
@PolynomialDivision ping (inotify-tools #21044)
please, kindly notify here if you make a PR against issue listed here, you find a new issue related to mentioned changes, or issue was fixed.
@1715173329 ping (mariadb)
numpy: missing dependencies wheel, setuptools
numpy was fixed in #20978.
python3-packages: missing whq file (probably exists, but something has changed and does not appear to be found anymore)
The fix for python3-packages is #20981.
in general, everything using python poetry, seem to be failing; (at least partial) list here.
dnspython: no module named 'poetry' astral: no module named 'poetry' python-dbus-fast: no module named 'poetry'
I don't know where this list came from, because:
Also, none of these (all of the above) are related to GCC13, werror or musl.
@jefferyto
possible not related, but they came up around same time; as did quite long list of failing packages, I made this issue to track a longer list of issues, and as I am not a huge fan of python- I made assumption that it was related to any of mentioned issues without any facts (sorry about that) basing it purely to timing. Sorry about that.
List with dnspython, astral, etc... Came from build process and errors reported by it. Previous built worked just fine, and when I pulled openwrt + package repositories, these failed. Several commits were made to openwrt between pulls, but biggest change at that time was gcc 13 introduction.
but they still fail, fail logs:
dnspython:
touch /usr/src/openwrt/build_dir/target-x86_64_musl/pypi/dnspython-2.3.0/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /usr/src/openwrt/build_dir/target-x86_64_musl/pypi/dnspython-2.3.0/.built
touch /usr/src/openwrt/build_dir/target-x86_64_musl/pypi/dnspython-2.3.0/.built_check
cd "/usr/src/openwrt/build_dir/target-x86_64_musl/pypi/dnspython-2.3.0" && CC="x86_64-openwrt-linux-musl-gcc" CCSHARED="x86_64-openwrt-linux-musl-gcc -DPIC -fpic" CXX="x86_64-openwrt-linux-musl-g++" LD="x86_64-openwrt-linux-musl-gcc" LDSHARED="x86_64-openwrt-linux-musl-gcc -shared" CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/usr/src/openwrt/build_dir/target-x86_64_musl/pypi/dnspython-2.3.0=dnspython-2.3.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CPPFLAGS="-I/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/usr/include -I/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/include/fortify -I/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/include -I/usr/src/openwrt/staging_dir/target-x86_64_musl/usr/include/python3.10" LDFLAGS="-L/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/usr/lib -L/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/lib -znow -zrelro -lpython3.10" _PYTHON_HOST_PLATFORM="linux-x86_64" __PYVENV_LAUNCHER__="/usr/bin/python3.10" PYTHONPATH="/usr/src/openwrt/staging_dir/target-x86_64_musl/usr/lib/python3.10:/usr/src/openwrt/staging_dir/target-x86_64_musl//usr/lib/python3.10/site-packages:/usr/src/openwrt/build_dir/target-x86_64_musl/pypi/dnspython-2.3.0/ipkg-install//usr/lib/python3.10/site-packages" PYTHONDONTWRITEBYTECODE=1 _python_sysroot="/usr/src/openwrt/staging_dir/target-x86_64_musl" _python_prefix="/usr" _python_exec_prefix="/usr" /usr/src/openwrt/staging_dir/hostpkg/bin/python3.10 -m build --no-isolation --outdir "/usr/src/openwrt/build_dir/target-x86_64_musl/pypi/dnspython-2.3.0/"/openwrt-build --wheel "/usr/src/openwrt/build_dir/target-x86_64_musl/pypi/dnspython-2.3.0/"
* Getting build dependencies for wheel...
Traceback (most recent call last):
File "/usr/src/openwrt/staging_dir/hostpkg/lib/python3.10/site-packages/pyproject_hooks/_impl.py", line 321, in _call_hook
raise BackendUnavailable(data.get('traceback', ''))
pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
File "/usr/src/openwrt/staging_dir/hostpkg/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
obj = import_module(mod_path)
File "/usr/src/openwrt/staging_dir/target-x86_64_musl/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'poetry'
ERROR Backend 'poetry.core.masonry.api' is not available.
make[2]: *** [Makefile:45: /usr/src/openwrt/build_dir/target-x86_64_musl/pypi/dnspython-2.3.0/.built] Error 1
make[2]: Leaving directory '/usr/src/openwrt/feeds/packages/lang/python/python-dns'
time: package/feeds/packages/python-dns/compile#0.29#0.04#0.00
ERROR: package/feeds/packages/python-dns failed to build.
make[1]: *** [package/Makefile:120: package/feeds/packages/python-dns/compile] Error 1
make[1]: Leaving directory '/usr/src/openwrt'
make: *** [/usr/src/openwrt/include/toplevel.mk:231: package/python-dns/compile] Error 2
astral:
* Getting build dependencies for wheel...
Traceback (most recent call last):
File "/usr/src/openwrt/staging_dir/hostpkg/lib/python3.10/site-packages/pyproject_hooks/_impl.py", line 321, in _call_hook
raise BackendUnavailable(data.get('traceback', ''))
pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
File "/usr/src/openwrt/staging_dir/hostpkg/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
obj = import_module(mod_path)
File "/usr/src/openwrt/staging_dir/target-x86_64_musl/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'poetry'
ERROR Backend 'poetry.core.masonry.api' is not available.
make[2]: *** [Makefile:46: /usr/src/openwrt/build_dir/target-x86_64_musl/pypi/astral-3.2/.built] Error 1
make[2]: Leaving directory '/usr/src/openwrt/feeds/packages/lang/python/python-astral'
time: package/feeds/packages/python-astral/compile#0.28#0.03#0.00
ERROR: package/feeds/packages/python-astral failed to build.
make[1]: *** [package/Makefile:120: package/feeds/packages/python-astral/compile] Error 1
make[1]: Leaving directory '/usr/src/openwrt'
make: *** [/usr/src/openwrt/include/toplevel.mk:231: package/python-astral/compile] Error 2
dev@media:/usr/src/openwrt#
zile: configure.ac:89: error: expected source file, required through AC_LIBSOURCES, not found, m4 failed with exit status: 1
Zile build failure due to gnulib being built in tools and include files/directories are located in a different tree. See: https://github.com/openwrt/openwrt/commit/fe33d5ba13370027165b9acf2bd895f5b4d9a4ea
There may be others.
@jefferyto
issue still remains.
issue still remains.
Do you get the same errors when building from a clean checkout of the main repo or sdk? I assume your packages repo is up-to-date?
Is coreutils failing to build maybe also related to one of the three changes?
@jefferyto with clean checkout. Never used sdk. Nearly full build with almost fullest options, always openssl if choosable, and always almost all the bells and whistles (for e.g. opted out AD from samba, but chose everything else..) My repo has been pulled less than 6 hours ago last time..
@dangowrt I doubt. Error about acl's seems to point to somewhere else, but I wouldn't know from just the log. Needs some investigating.
As far as I know, neither of these has touched to acl code but I could be wrong as well.
I suspect that https://github.com/openwrt/packages/issues/20976 is related to this, noting also that ocserv is currently also failing to build on same arch.
acl was fixed already. for ocserv: #21124
@greem check my answer at #20976 - seems unlikely to be related to this in any possible way. openconnect seems to link against libcrypto and openssl, but package's makefile doesn't list them as depends. Disable linking to them some way, or add them as depends and your package completes..
File "/usr/src/openwrt/staging_dir/target-x86_64_musl/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "
", line 1050, in _gcd_import File " ", line 1027, in _find_and_load File " ", line 992, in _find_and_load_unlocked File " ", line 241, in _call_with_frames_removed File " ", line 1050, in _gcd_import File " ", line 1027, in _find_and_load File " ", line 992, in _find_and_load_unlocked File " ", line 241, in _call_with_frames_removed File " ", line 1050, in _gcd_import File " ", line 1027, in _find_and_load File " ", line 992, in _find_and_load_unlocked File " ", line 241, in _call_with_frames_removed File " ", line 1050, in _gcd_import File " ", line 1027, in _find_and_load File " ", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'poetry' ERROR Backend 'poetry.core.masonry.api' is not available.
now i got the same error on my buildbot (ubuntu 18.04/20.04 amd64) for me it's python-pkgconfig
compiling with openwrt sdk worked fine, but when i built everything from source it just failed
@jefferyto
numpy is not fixed. Issue still remains.
INFO: x86_64-openwrt-linux-musl-gcc: numpy/core/src/common/ufunc_override.c
cc1: note: someone does not honour COPTS correctly, passed 4 times
In file included from numpy/core/src/umath/loops.c.src:53:
numpy/core/src/umath/simd.inc.src: In function 'AVX512F_conjugate_CFLOAT':
numpy/core/src/umath/simd.inc.src:1119:13: warning: AVX512F vector return without AVX512F enabled changes the ABI [-Wpsabi]
1119 | @vindextype@ vindex = @vindexload@((@vindextype@*)index_ip1);
| ^~~~~~
numpy/core/src/umath/simd.inc.src: In function 'AVX512F_conjugate_CDOUBLE':
numpy/core/src/umath/simd.inc.src:1119:13: warning: AVX vector return without AVX enabled changes the ABI [-Wpsabi]
1119 | @vindextype@ vindex = @vindexload@((@vindextype@*)index_ip1);
| ^~~~~~
INFO: x86_64-openwrt-linux-musl-gcc: numpy/core/src/common/numpyos.c
INFO: x86_64-openwrt-linux-musl-gcc: numpy/core/src/common/npy_cpu_features.c
cc1: note: someone does not honour COPTS correctly, passed 4 times
cc1: note: someone does not honour COPTS correctly, passed 4 times
In file included from /usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/lib/gcc/x86_64-openwrt-linux-musl/13.1.0/include/immintrin.h:53,
from numpy/core/src/umath/simd.inc.src:25:
/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/lib/gcc/x86_64-openwrt-linux-musl/13.1.0/include/avx512fintrin.h: In function 'AVX512F_square_CFLOAT':
/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/lib/gcc/x86_64-openwrt-linux-musl/13.1.0/include/avx512fintrin.h:314:1: error: inlining failed in call to 'always_inline' '_mm512_setzero_ps': target specific option mismatch
314 | _mm512_setzero_ps (void)
| ^~~~~~~~~~~~~~~~~
numpy/core/src/umath/simd.inc.src:1121:20: note: called from here
1121 | @vtype@ zeros = _mm512_setzero_@vsuffix@();
| ^~~~~~~~~~~~~~~~~~~
numpy/core/src/umath/simd.inc.src:740:1: error: inlining failed in call to 'always_inline' 'avx512_get_full_load_mask_ps': target specific option mismatch
740 | avx512_get_full_load_mask_ps(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
numpy/core/src/umath/simd.inc.src:1120:27: note: called from here
1120 | @mask@ load_mask = avx512_get_full_load_mask_@vsuffix@();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/lib/gcc/x86_64-openwrt-linux-musl/13.1.0/include/avx512fintrin.h:6499:1: error: inlining failed in call to 'always_inline' '_mm512_loadu_si512': target specific option mismatch
6499 | _mm512_loadu_si512 (void const *__P)
| ^~~~~~~~~~~~~~~~~~
numpy/core/src/umath/simd.inc.src:1119:22: note: called from here
1119 | @vindextype@ vindex = @vindexload@((@vindextype@*)index_ip1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
numpy/core/src/umath/simd.inc.src:752:1: error: inlining failed in call to 'always_inline' 'avx512_get_partial_load_mask_ps': target specific option mismatch
752 | avx512_get_partial_load_mask_ps(const npy_int num_elem, const npy_int total_elem)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
numpy/core/src/umath/simd.inc.src:1125:25: note: called from here
1125 | load_mask = avx512_get_partial_load_mask_@vsuffix@(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1126 | num_remaining_elements, @num_lanes@);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
numpy/core/src/umath/simd.inc.src:782:1: error: inlining failed in call to 'always_inline' 'avx512_masked_load_ps': target specific option mismatch
782 | avx512_masked_load_ps(__mmask16 mask, npy_float* addr)
| ^~~~~~~~~~~~~~~~~~~~~
numpy/core/src/umath/simd.inc.src:1130:18: note: called from here
1130 | x1 = avx512_masked_load_@vsuffix@(load_mask, ip);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
numpy/core/src/umath/simd.inc.src:764:1: error: inlining failed in call to 'always_inline' 'avx512_masked_gather_ps': target specific option mismatch
764 | avx512_masked_gather_ps(__m512 src,
| ^~~~~~~~~~~~~~~~~~~~~~~
numpy/core/src/umath/simd.inc.src:1133:19: note: called from here
1133 | x1 = avx512_masked_gather_@vsuffix@(zeros, ip, vindex, load_mask);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/lib/gcc/x86_64-openwrt-linux-musl/13.1.0/include/avx512fintrin.h:6373:1: error: inlining failed in call to 'always_inline' '_mm512_mask_storeu_ps': target specific option mismatch
6373 | _mm512_mask_storeu_ps (void *__P, __mmask16 __U, __m512 __A)
| ^~~~~~~~~~~~~~~~~~~~~
numpy/core/src/umath/simd.inc.src:1138:9: note: called from here
1138 | _mm512_mask_storeu_@vsuffix@(op, load_mask, out);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
numpy/core/src/umath/simd.inc.src:952:1: error: inlining failed in call to 'always_inline' 'avx512_csquare_ps': target specific option mismatch
952 | avx512_csquare_@vsub@(@vtype@ x)
| ^~~~~~~~~~~~~~~~~
numpy/core/src/umath/simd.inc.src:1136:22: note: called from here
1136 | @vtype@ out = @vectorf@_@vsuffix@(x1);
| ^~~~~~~~~~~~~~~~~~~~~
error: Command "x86_64-openwrt-linux-musl-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/usr/src/openwrt/build_dir/target-x86_64_musl/Python-3.10.7=Python-3.10.7 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/usr/src/openwrt/build_dir/target-x86_64_musl/Python-3.10.7=Python-3.10.7 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/usr/src/openwrt/build_dir/target-x86_64_musl/Python-3.10.7=Python-3.10.7 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/usr/include -I/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/include/fortify -I/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/include -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/usr/src/openwrt/build_dir/target-x86_64_musl/pypi/numpy-1.23.3=numpy-1.23.3 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/usr/include -I/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/include/fortify -I/usr/src/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/include -I/usr/src/openwrt/staging_dir/target-x86_64_musl/usr/include/python3.10 -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Ibuild/src.linux-x86_64-3.10/numpy/core/src/multiarray -Ibuild/src.linux-x86_64-3.10/numpy/core/src/common -Ibuild/src.linux-x86_64-3.10/numpy/core/src/umath -Inumpy/core/include -Ibuild/src.linux-x86_64-3.10/numpy/core/include/numpy -Ibuild/src.linux-x86_64-3.10/numpy/distutils/include -Ibuild/src.linux-x86_64-3.10/numpy/core/src/npysort -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -I/usr/src/openwrt/staging_dir/hostpkg/include/python3.10 -Ibuild/src.linux-x86_64-3.10/numpy/core/src/common -Ibuild/src.linux-x86_64-3.10/numpy/core/src/npymath -c build/src.linux-x86_64-3.10/numpy/core/src/umath/loops.c -o build/temp.linux-x86_64-cpython-310/build/src.linux-x86_64-3.10/numpy/core/src/umath/loops.o -MMD -MF build/temp.linux-x86_64-cpython-310/build/src.linux-x86_64-3.10/numpy/core/src/umath/loops.o.d -msse -msse2 -msse3" failed with exit status 1
INFO:
########### EXT COMPILER OPTIMIZATION ###########
INFO: Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'min'
Enabled : SSE SSE2 SSE3
Flags : -msse -msse2 -msse3
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated :
:
SSE41 : SSE SSE2 SSE3 SSSE3
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1
Extra checks: none
Detect : SSE SSE2 SSE3 SSSE3 SSE41
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_unary_fp.dispatch.c
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_arithmetic.dispatch.c
:
SSE42 : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2
Extra checks: none
Detect : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42
: build/src.linux-x86_64-3.10/numpy/core/src/multiarray/argfunc.dispatch.c
:
AVX2 : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2
Extra checks: none
Detect : AVX F16C AVX2
: build/src.linux-x86_64-3.10/numpy/core/src/multiarray/argfunc.dispatch.c
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_arithm_fp.dispatch.c
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_arithmetic.dispatch.c
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_minmax.dispatch.c
:
(FMA3 AVX2) : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2
Extra checks: none
Detect : AVX F16C FMA3 AVX2
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_trigonometric.dispatch.c
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_exponent_log.dispatch.c
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_hyperbolic.dispatch.c
:
AVX512F : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx
Extra checks: AVX512F_REDUCE
Detect : AVX512F
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_arithm_fp.dispatch.c
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_arithmetic.dispatch.c
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_trigonometric.dispatch.c
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_exponent_log.dispatch.c
:
AVX512_SKX : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mno-mmx -mavx512cd -mavx512vl -mavx512bw -mavx512dq
Extra checks: AVX512BW_MASK AVX512DQ_MASK
Detect : AVX512_SKX
: numpy/core/src/npysort/x86-qsort.dispatch.cpp
: build/src.linux-x86_64-3.10/numpy/core/src/multiarray/argfunc.dispatch.c
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_arithmetic.dispatch.c
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_minmax.dispatch.c
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_umath_fp.dispatch.c
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_exponent_log.dispatch.c
: build/src.linux-x86_64-3.10/numpy/core/src/umath/loops_hyperbolic.dispatch.c
INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /usr/src/openwrt/build_dir/target-x86_64_musl/pypi/numpy-1.23.3/build/temp.linux-x86_64-cpython-310/ccompiler_opt_cache_ext.py
INFO:
########### CLIB COMPILER OPTIMIZATION ###########
INFO: Platform :
Architecture: x64
Compiler : gcc
CPU baseline :
Requested : 'min'
Enabled : SSE SSE2 SSE3
Flags : -msse -msse2 -msse3
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated : none
INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /usr/src/openwrt/build_dir/target-x86_64_musl/pypi/numpy-1.23.3/build/temp.linux-x86_64-cpython-310/ccompiler_opt_cache_clib.py
ERROR Backend subprocess exited when trying to invoke build_wheel
make[2]: *** [Makefile:88: /usr/src/openwrt/build_dir/target-x86_64_musl/pypi/numpy-1.23.3/.built] Error 1
make[2]: Leaving directory '/usr/src/openwrt/feeds/packages/lang/python/numpy'
time: package/feeds/packages/numpy/compile#192.81#19.22#0.00
ERROR: package/feeds/packages/numpy failed to build.
make[1]: *** [package/Makefile:120: package/feeds/packages/numpy/compile] Error 1
make[1]: Leaving directory '/usr/src/openwrt'
make: *** [/usr/src/openwrt/include/toplevel.mk:231: package/numpy/compile] Error 2
numpy is not fixed. Issue still remains.
Perhaps it would help to ping the maintainer of numpy: @commodo
numpy is not fixed. Issue still remains.
Perhaps it would help to ping the maintainer of numpy: @commodo
will check it out; the issue with numpy and x86, is that it often tries/assumes some CPU extensions we don't have on the OpenWrt x86[_64] compilers;
@commodo Issue wasn't there before.....
The fix for the poetry-related issues is https://github.com/openwrt/openwrt/pull/12710.
The reason why the error message is ModuleNotFoundError: No module named 'poetry'
is because poetry-core uses itself to build, and buildroot's .gitignore causes it to exclude all of its own code, so it doesn't get installed properly.
@commodo Issue wasn't there before.....
depends on how you define wasn't there before
;
i would get it (locally) with a few versions of numpy, which is why i don't update it too often;
I puol nearly every day, depending on whether previous build has succeeded or not. That’s how issues are revealed. I’ve never used numpy, but I always have built-it, and after mentioned changes, numpy build started failing. Pretty straight-forward that if there are fundamental changes and something stops working, what might be then the cause most likely..Lähetetty iPhonestaAlexandru Ardelean @.***> kirjoitti 24.5.2023 kello 9.26:
@commodo Issue wasn't there before.....
depends on how you define wasn't there before; i would get it (locally) with a few versions of numpy, which is why i don't update it too often;
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
@oskarirauta the packages netavark and aardvark-dns do not build anymore. I think this is related to musl 1.2.4 update.
I already tried to fix this with TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
because of undefined refrence to <name>64
functions but it does not fix the build.
I got the following error log (shortened):
= note: /home/feckert/workspace/openwrt/LDM-owrt-23.05/build/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/12.3.0/../../../../x86_64-openwrt-linux-musl/bin/ld: /home/feckert/workspace/openwrt/LDM-owrt-23.05/build/openwrt/staging_dir/hostpkg/cargo/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-e3430e5601b9f1d2.rlib(std-e3430e5601b9f1d2.std.e4d40498-cgu.12.rcgu.o): in function `std::sys::common::small_c_string::run_with_cstr_allocating':
std.e4d40498-cgu.12:(.text.unlikely._ZN3std3sys6common14small_c_string24run_with_cstr_allocating17ha36da161e1c6bae9E+0x98): undefined reference to `stat64'
/home/feckert/workspace/openwrt/LDM-owrt-23.05/build/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/12.3.0/../../../../x86_64-openwrt-linux-musl/bin/ld: /home/feckert/workspace/openwrt/LDM-owrt-23.05/build/openwrt/staging_dir/hostpkg/cargo/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-e3430e5601b9f1d2.rlib(std-e3430e5601b9f1d2.std.e4d40498-cgu.6.rcgu.o): in function `std::backtrace_rs::symbolize::gimli::mmap':
std.e4d40498-cgu.6:(.text._ZN3std12backtrace_rs9symbolize5gimli4mmap17h7c64f37af86109f2E+0x171): undefined reference to `fstat64'
/home/feckert/workspace/openwrt/LDM-owrt-23.05/build/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/12.3.0/../../../../x86_64-openwrt-linux-musl/bin/ld: /home/feckert/workspace/openwrt/LDM-owrt-23.05/build/openwrt/staging_dir/hostpkg/cargo/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-e3430e5601b9f1d2.rlib(std-e3430e5601b9f1d2.std.e4d40498-cgu.8.rcgu.o): in function `<std::fs::File as std::io::Read>::read_to_string':
std.e4d40498-cgu.8:(.text._ZN47_$LT$std..fs..File$u20$as$u20$std..io..Read$GT$14read_to_string17h8b4d344335b86156E+0x53): undefined reference to `fstat64'
/home/feckert/workspace/openwrt/LDM-owrt-23.05/build/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/12.3.0/../../../../x86_64-openwrt-linux-musl/bin/ld: std.e4d40498-cgu.8:(.text._ZN47_$LT$std..fs..File$u20$as$u20$std..io..Read$GT$14read_to_string17h8b4d344335b86156E+0x76): undefined reference to `lseek64'
/home/feckert/workspace/openwrt/LDM-owrt-23.05/build/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/12.3.0/../../../../x86_64-openwrt-linux-musl/bin/ld: /home/feckert/workspace/openwrt/LDM-owrt-23.05/build/openwrt/staging_dir/hostpkg/cargo/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-e3430e5601b9f1d2.rlib(std-e3430e5601b9f1d2.std.e4d40498-cgu.8.rcgu.o): in function `std::fs::metadata':
std.e4d40498-cgu.8:(.text._ZN3std2fs8metadata17h0ac6f29dff1ff35eE+0xba): undefined reference to `stat64'
/home/feckert/workspace/openwrt/LDM-owrt-23.05/build/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/12.3.0/../../../../x86_64-openwrt-linux-musl/bin/ld: /home/feckert/workspace/openwrt/LDM-owrt-23.05/build/openwrt/staging_dir/hostpkg/cargo/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-e3430e5601b9f1d2.rlib(std-e3430e5601b9f1d2.std.e4d40498-cgu.13.rcgu.o): in function `std::sys::unix::fs::File::open_c':
std.e4d40498-cgu.13:(.text._ZN3std3sys4unix2fs4File6open_c17h8d9f66cb467887dcE+0xf5): undefined reference to `open64'
/home/feckert/workspace/openwrt/LDM-owrt-23.05/build/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib/gcc/x86_64-openwrt-linux-musl/12.3.0/../../../../x86_64-openwrt-linux-musl/bin/ld: std.e4d40498-cgu.13:(.text._ZN3std3sys4unix2fs4File6open_c17h8d9f66cb467887dcE+0x10c): undefined reference to `open64'
collect2: error: ld returned 1 exit status
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)
error: could not compile `netavark` due to previous error
If you need the whole log I could paste this but this is quit long!
@feckert unfortunately it needs to be fixed on rust side, see https://github.com/rust-lang/rust/issues/111285
1615173329 wrote: @feckert unfortunately it needs to be fixed on rust side, see rust-lang/rust#111285
There is a work-around- on the OpenWRT side there is a draft PR from me that provides a compatibility on musl 1.2.4 which overcomes all musl 1.2.4 related issues for those who need for e.g. Rust - and need it now..
Here's that mentioned PR https://github.com/openwrt/openwrt/pull/12667
this may fix numpy: https://github.com/openwrt/packages/pull/21184
works for me; i tried x86 & x86_64
this may fix numpy: #21184
works for me; i tried x86 & x86_64
What is the purpose of this ticket? It doesn't actually track issues related to GCC13 or 5.15 kernel werror or updated musl (btw that is three groups of problems unrelated to each other), this is a list of every build error encountered by one person.
Also "fixing all issues related to GCC13 or werror or musl" isn't a meaningful milestone that needs to be tracked and progress kept. These are just issues that should be resolved, just like every other issue in the issue tracker.
It would be more productive to open individual issues to track each build error.
@Habbie
ping (pdns)
Thanks!
I see your patched tree still has 4.7.3, while openwrt/packages master has 4.7.4, which contains the same patch. I think you can check pdns off your list!
@Habbie Great. Good work :)
seems libjson-c has some missing includes and some warnings when compiled on fedora 38
edit-same problem on gcc12 on debian 12-idk if this is the issue
edit 2-the make jobserver might have just been tripping over itself never mind
I got an error in arch linux
gcc --version
gcc (GCC) 13.2.1 20230801
checking for qsort_r... yes
checking for GNU-style qsort_r... no
checking for BSD-style qsort_r... no
configure: error: in `/home/lede/build_dir/target-aarch64_cortex-a53_musl/strongswan-5.9.5':
configure: error: qsort_r has unknown semantics
@pprindeville @RetEECS ping (perl)
Do you have a link to a failing build I can look at?
apcupsd fix: https://github.com/openwrt/packages/pull/23804
To follow this important ticket.
Closing this. The logs on downloads.openwrt.org have GCC13 failures.
Latest changes to openwrt have broken quite a bit of packages. GCC 13 brought its own problems, kernel's werror enabling brought more and even recent musl update broke things.
Since list of currently failing builds seems to be quite long, I think it's better to create unified thread with list of software that fails build:
TARGET_CFLAGS += -Wno-error=dangling-pointer=
#include <cstdint>
in util/pcre.h patch hereTARGET_CFLAGS += -Wno-error=stringop-overflow=
TARGET_CFLAGS += -Wno-error=enum-int-mismatch
WIP PR #21058#21296packages failing but unrelated to topic's title, just found while mapping these problems: zile: configure.ac:89: error: expected source file, required through AC_LIBSOURCES, not found, m4 failed with exit status: 1
And then some various python packages, such as dnspython, astral, python-dbus-fast, ... in general, everything using _cffi_backend seem to fail;
I will be updating this last while building and finding out more of these, but my current build does not attempt to build everything and some packages have been overrided by my own versions for some reasons, so some packages are excluded. Also when I started to re-build, I just removed few packages without writing up their names, so list will be incomplete. Participation to gathering list and providing fixes (or links to PR's made), would be strongly recommended if you notice something on the list :)
some patches are better than others, they are mostly there to provide a unofficial solution, but maintainers may use patches as is if they think it's sufficient.
Summary These were results and quick-fixes while building 6060 packages; though about ~150 packages are outside official package trees.
edit: second round. I restarted my build and found out that there are even more of these issues (inotify-tools failed), so I'll do it once again. While doing this, I noticed that after initial list; musl was updated and it provides it's own problems, so I'll list them here as well. Musl related issues are with 64 bit definitions, for example: lstat64, stat64, dirent64 do no longer exist on 64-bit environment, they are just stat, stat and direct, and source code using these need something like