H5Eff.F90:167:43: error: type of 'h5eget_minor_c' does not match original declaration [-Werror=lto-type-mismatch] 167 | hdferr = h5eget_minor_c(error_no, name) | ^ H5Ef.c:182:1: note: type mismatch in parameter 3 182 | h5eget_minor_c(int_f *error_no, _fcd name, size_t_f *namelen) | ^ H5Ef.c:182:1: note: 'h5eget_minor_c' was previously declared here lto1: some warnings being treated as errors lto-wrapper: fatal error: x86_64-pc-linux-gnu-gfortran returned 1 exit status compilation terminated. /usr/libexec/gcc/x86_64-pc-linux-gnu/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status make[3]: *** [Makefile:1062: libhdf5_fortran.la] Error 1 I checked similar bug with lto for this package, and it seems to be another place of problem. Reproducible: Always
Created attachment 883017 [details] build.log.xz /// use xzless to see it in. or `xz -d -c | your_favourite_editor`
Created attachment 883019 [details] environment /// amd64 gcc stable openrc profile: desktop/plasma multilib
I can confirm this. Upstream report: https://github.com/HDFGroup/hdf5/issues/3987
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0398c99dcd85c12076c5a10cdec611e95fab7c7e commit 0398c99dcd85c12076c5a10cdec611e95fab7c7e Author: Eli Schwartz <eschwartz93@gmail.com> AuthorDate: 2024-02-04 01:02:21 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-02-04 20:10:37 +0000 sci-libs/hdf5: suppress LTO due to compile errors It uses fortran code that fails with lto-type-mismatch Bug: https://bugs.gentoo.org/922800 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> sci-libs/hdf5/hdf5-1.14.3-r1.ebuild | 2 ++ 1 file changed, 2 insertions(+)
Can revisit if/when the upstream bug is fixed.
(In reply to Sam James from comment #5) > Can revisit if/when the upstream bug is fixed. Upstream states they have fixed the bug <https://github.com/HDFGroup/hdf5/issues/3987#issuecomment-1965222292>. Available patch likely to be included in their next bugfix release 1.14.4.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e74ef4bd39c13a64422aec66c646b857884727d4 commit e74ef4bd39c13a64422aec66c646b857884727d4 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-04-16 03:33:29 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-04-16 03:34:25 +0000 sci-libs/hdf5: add 1.14.4_p2 Drop LTO filtering as it's fixed upstream. Bug: https://bugs.gentoo.org/922800 Bug: https://bugs.gentoo.org/930089 Signed-off-by: Sam James <sam@gentoo.org> sci-libs/hdf5/Manifest | 1 + ...hat-during-runtime-we-ll-use-the-same-lib.patch | 28 +++++ ...hdf5-1.14.4-0002-Disable-forced-stripping.patch | 31 ++++++ ...-1.14.4-0003-Drop-broken-Werror-stripping.patch | 65 ++++++++++++ sci-libs/hdf5/hdf5-1.14.4_p2.ebuild | 118 +++++++++++++++++++++ 5 files changed, 243 insertions(+)