Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883813 - dev-python/h5py-3.7.0 fails to compile (CLANG-STRICTER-SYSTEM): _errors.c:2180:64: error: incompatible function pointer types passing herr_t (int, H5E_error2_t , void ) (aka int (int, struct H5E_error2_t , void )) to parameter of type H5E_walk2_t (aka in
Summary: dev-python/h5py-3.7.0 fails to compile (CLANG-STRICTER-SYSTEM): _errors.c:218...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-12-01 07:43 UTC by Agostino Sarubbo
Modified: 2022-12-01 14:35 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,156.98 KB, text/plain)
2022-12-01 07:43 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-01 07:43:51 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/h5py-3.7.0 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

NOTE:
(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-01 07:43:54 UTC
Created attachment 838647 [details]
build.log

build log and emerge --info
Comment 3 Larry the Git Cow gentoo-dev 2022-12-01 14:35:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a1c3e816e104ea1e0833fd1c8cc2f529c879469

commit 0a1c3e816e104ea1e0833fd1c8cc2f529c879469
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-12-01 14:32:20 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-12-01 14:32:39 +0000

    dev-python/h5py: Backport -Wincompatible-function-pointer-types fix
    
    Closes: https://bugs.gentoo.org/883813
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/h5py/files/h5py-3.7.0-types.patch | 36 ++++++++++++++++++++++++++++
 dev-python/h5py/h5py-3.7.0.ebuild            |  4 ++++
 2 files changed, 40 insertions(+)