Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787677 - [guru] dev-libs/cglm-0.8.2 fails to compile
Summary: [guru] dev-libs/cglm-0.8.2 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Oliver Freyermuth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-02 11:25 UTC by Agostino Sarubbo
Modified: 2021-05-03 10:11 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,17.05 KB, text/plain)
2021-05-02 11:25 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 2021-05-02 11:25:51 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2021-05-02 11:25:54 UTC
Created attachment 705288 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-05-02 11:25:55 UTC
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=]
Comment 3 Oliver Freyermuth 2021-05-02 12:44:59 UTC
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.
Comment 5 Larry the Git Cow gentoo-dev 2021-05-03 10:11:10 UTC
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(+)