Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922800 - sci-libs/hdf5-1.14.2 error: type of 'h5eget_minor_c' does not match original declaration [-Werror=lto-type-mismatch]
Summary: sci-libs/hdf5-1.14.2 error: type of 'h5eget_minor_c' does not match original ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-01-24 07:07 UTC by Arniii
Modified: 2024-04-16 03:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz /// use xzless to see it in. or `xz -d -c | your_favourite_editor` (build.log.xz,19.45 KB, application/x-xz)
2024-01-24 07:11 UTC, Arniii
Details
environment /// amd64 gcc stable openrc profile: desktop/plasma multilib (file_922800.txt,101.65 KB, text/plain)
2024-01-24 07:15 UTC, Arniii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arniii 2024-01-24 07:07:11 UTC
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
Comment 1 Arniii 2024-01-24 07:11:51 UTC
Created attachment 883017 [details]
build.log.xz    /// use xzless to see it in. or `xz -d -c | your_favourite_editor`
Comment 2 Arniii 2024-01-24 07:15:37 UTC
Created attachment 883019 [details]
environment /// amd64 gcc stable openrc profile: desktop/plasma multilib
Comment 3 Erik Quaeghebeur 2024-02-03 10:58:38 UTC
I can confirm this. Upstream report: https://github.com/HDFGroup/hdf5/issues/3987
Comment 4 Larry the Git Cow gentoo-dev 2024-02-04 20:11:13 UTC
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(+)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-04 20:14:11 UTC
Can revisit if/when the upstream bug is fixed.
Comment 6 Erik Quaeghebeur 2024-02-26 20:47:15 UTC
(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.
Comment 7 Larry the Git Cow gentoo-dev 2024-04-16 03:34:57 UTC
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(+)