https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-libs/cglm-0.8.2 fails to compile. Discovered on: amd64 (internal ref: guru_ci) NOTE: This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
Created attachment 705288 [details] build.log build log and emerge --info
Possible context of error(s): ../cglm-0.8.2/src/vec4.c:127:25: error: argument 1 of type ‘float[4]’ with mismatched bound [-Werror=array-parameter=]
Thanks for the report! That's indeed a two-fold bug: - A real bug only found by gcc 11 (I tested with gcc 10). Will report or fix the bug upstream. - A packaging bug (I missed to remove -Werror). Will fix that.
The upstream bug is already fixed at: https://github.com/recp/cglm/commit/13269f4af8d3c95220f97746c968eac3ba122a32#diff-f3e960d159809f4eac06da27686b9a6810a666ced007315ba59ed5101c3345ca Fixes now in dev: - Disable -Werror: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?h=dev&id=fee29b1d9c01368f1c175e43a42f54e6fef881fd - Backport of the fix for the actual issue found by gcc-11: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?h=dev&id=65ce8e0ffcc8bccc88df3cfd4f38aabdcf16f371
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=65ce8e0ffcc8bccc88df3cfd4f38aabdcf16f371 commit 65ce8e0ffcc8bccc88df3cfd4f38aabdcf16f371 Author: Oliver Freyermuth <o.freyermuth@googlemail.com> AuthorDate: 2021-05-02 13:06:33 +0000 Commit: Oliver Freyermuth <o.freyermuth@googlemail.com> CommitDate: 2021-05-02 13:06:33 +0000 dev-libs/cglm: Backport upstream fix to 0.8.2. This fixes a typo in 0.8.2, causing a warning and actual misbehaviour. Closes: https://bugs.gentoo.org/787677 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com> .../{cglm-0.8.2.ebuild => cglm-0.8.2-r1.ebuild} | 5 +++++ dev-libs/cglm/files/cglm-0.8.2-fix-vec3-vec4.patch | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fee29b1d9c01368f1c175e43a42f54e6fef881fd commit fee29b1d9c01368f1c175e43a42f54e6fef881fd Author: Oliver Freyermuth <o.freyermuth@googlemail.com> AuthorDate: 2021-05-02 13:04:39 +0000 Commit: Oliver Freyermuth <o.freyermuth@googlemail.com> CommitDate: 2021-05-02 13:04:39 +0000 dev-libs/cglm: Disable -Werror. Closes: https://bugs.gentoo.org/787677 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com> dev-libs/cglm/cglm-0.8.2.ebuild | 7 +++++++ dev-libs/cglm/cglm-9999.ebuild | 7 +++++++ 2 files changed, 14 insertions(+)