Summary: | dev-lang/php-8.2.20 fails with use flag mysqli - sapis-build/cli/ext/mysqli/mysqli_api.c:1806:27: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | hangint3n <hangint3n> |
Component: | Current packages | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hangint3n, mjo |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 | ||
Attachments: |
build.log for php-8
Emerge --info |
Please provide emerge --info.
> /var/tmp/portage/dev-lang/php-8.2.20/work/sapis-build/cli/ext/mysqli/mysqli_api.c: In function ‘zif_mysqli_stmt_attr_get’:
> /var/tmp/portage/dev-lang/php-8.2.20/work/sapis-build/cli/ext/mysqli/mysqli_api.c:1806:27: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
> 1806 | value = *((my_bool *)&value);
> | ~^~~~~~~~~~~~~~~~~~
https://github.com/php/php-src/commit/47f80ffc77f2b728b0973ae671251859b2a8ab53 should fix it. I'll block the LTO tracker as we tell people to set these specific -Werror=foos for safety with it, even though PHP has it filtered. Created attachment 902714 [details]
Emerge --info
Forgot to add this... not sure it is useful or not
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7b3389a7bef440155754522f6592f6abdf8af9c commit a7b3389a7bef440155754522f6592f6abdf8af9c Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2024-09-22 03:18:17 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2024-09-22 12:16:32 +0000 dev-lang/php: add 8.2.23, drop 8.2.22 Closes: https://bugs.gentoo.org/939443 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> dev-lang/php/Manifest | 2 +- dev-lang/php/files/php-8.2.23-fix-ub.patch | 32 ++++++++++++++++++++++ .../php/{php-8.2.22.ebuild => php-8.2.23.ebuild} | 1 + 3 files changed, 34 insertions(+), 1 deletion(-) |
Created attachment 902595 [details] build.log for php-8 Was trying to install php with mysqli use flag and the emerge would fail.