Summary: | =dev-python/scipy-1.13.0 fails to build with lto: error: type of ‘chyp2f1_wrap’ does not match original declaration [-Werror=lto-type-mismatch] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michael Mair-Keimberger (mm1ke) <mmk> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | audvare, chutzpah, eschwartz, gentoo, he.ousia, mmk, nowa, python |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/scipy/scipy/issues/21065 https://bugs.gentoo.org/show_bug.cgi?id=935052 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 | ||
Attachments: | build.log |
Description
Michael Mair-Keimberger (mm1ke)
2024-05-25 09:29:07 UTC
btw, also just tried it with gcc-14. fails there too. I have been unable to reproduce this failure at all. gcc 13, ld.bfd. Hmm, i've just tried it again, but it still fails with the same error. I'm on gcc-14.1.1_p20240615 now Please note that scipy-1.13.1 builds fine with lto enabled. Only 1.13.0 fails. scipy-1.14.0 also refuses to build with lto. $ emerge --info | grep FLAGS CFLAGS="-pipe -march=native -fstack-protector-all -O2 -fdiagnostics-color=always -frecord-gcc-switches -flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wformat -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Werror=int-conversion -Werror=incompatible-pointer-types" CXXFLAGS="-pipe -march=native -fstack-protector-all -O2 -fdiagnostics-color=always -frecord-gcc-switches -flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wformat -Werror=format-security" FCFLAGS="-pipe -march=native -fstack-protector-all -O2 -fdiagnostics-color=always -frecord-gcc-switches -flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" FFLAGS="-pipe -march=native -fstack-protector-all -O2 -fdiagnostics-color=always -frecord-gcc-switches -flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wl,--defsym=__gentoo_check_ldflags__=0" $ emerge -pv scipy [ebuild U ~] dev-python/scipy-1.14.0::gentoo [1.13.0::gentoo] USE="fortran (test-rust) -debug -doc -test" PYTHON_TARGETS="python3_12 -pypy3 -python3_10 -python3_11*" 0 KiB $ CC=gcc-14 CXX=g++-14 FC=gfortran-14 ebuild scipy-1.14.0.ebuild clean install >>> Install dev-python/scipy-1.14.0 into /var/tmp/portage/dev-python/scipy-1.14.0/image * python3_12: running distutils-r1_run_phase distutils-r1_python_install * Using python3.12 in global scope * python3_12: running distutils-r1_run_phase python_install_all >>> Completed installing dev-python/scipy-1.14.0 into /var/tmp/portage/dev-python/scipy-1.14.0/image ... I cannot reproduce with GCC 14 either. I reproduced it. It works when numpy is 1.26.4 and fails when numpy is 2.0.0 The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=852a312f7cea343a2ada68e427171954ca56b420 commit 852a312f7cea343a2ada68e427171954ca56b420 Author: Patrick McLean <chutzpah@gentoo.org> AuthorDate: 2024-06-27 18:53:43 +0000 Commit: Patrick McLean <chutzpah@gentoo.org> CommitDate: 2024-06-27 18:53:43 +0000 dev-python/scipy: Filter LTO with numpy-2.0.0 (bug #932721) Bug: https://bugs.gentoo.org/932721 Signed-off-by: Patrick McLean <chutzpah@gentoo.org> dev-python/scipy/scipy-1.14.0.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (In reply to Larry the Git Cow from comment #7) > dev-python/scipy: Filter LTO with numpy-2.0.0 (bug #932721) > > […] > > dev-python/scipy/scipy-1.14.0.ebuild | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) Please also filter LTO for 1.3.1 with numpy-2.0.0 (which just got stabilized). Closing as it was successfully filtered... |