Summary: | dev-lang/php-8.2.9 fails to build with LTO | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | stefan11111 <stefan11111> |
Component: | Current packages | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mjo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=866683 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 | ||
Attachments: | build.log |
Description
stefan11111
2023-09-02 19:21:00 UTC
You should always attach the full build log when reporting a build failure. Created attachment 869279 [details]
build.log
USE flags: USE="cli curl gd ipv6 jit pcntl posix readline sockets ssl threads truetype xml zip zlib -acl -apache2 -apparmor -argon2 -avif -bcmath -berkdb -bzip2 -calendar -cdb -cgi -cjk -ctype -debug -embed -enchant -exif -ffi -fileinfo -filter -firebird -flatfile -fpm -ftp -gdbm -gmp -iconv -imap -inifile -intl -iodbc -kerberos -ldap -ldap-sasl -libedit -lmdb -mhash -mssql -mysql -mysqli -nls -oci8-instant-client -odbc -opcache -pdo -phar -phpdbg -postgres -qdbm (-selinux) -session -session-mm -sharedmem -simplexml -snmp -soap -sodium -spell -sqlite -systemd -sysvipc -test -tidy -tokenizer -tokyocabinet -unicode -valgrind -webp -xmlreader -xmlwriter -xpm -xslt" Please ansifilter logs in future. This was supposed to be fixed by the changes in bug 866683. My fix for this was, if is-flagq -flto; then # https://bugs.gentoo.org/866683 our_conf+=( --disable-gcc-global-regs ) fi but it's not being applied here. I see in emerge --info, CFLAGS="-O2 -pipe -march=native -flto=4" So I guess I need to also check for -flto=* My own preference would just be to `filter-lto` given upstream clearly don't test it in CI. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a0a1c5bbced336389c9dd8569215daa4d9347f5 commit 3a0a1c5bbced336389c9dd8569215daa4d9347f5 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2023-09-07 18:52:27 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2023-09-07 18:52:27 +0000 dev-lang/php: filter LTO flags This is a better fix for bug 866683 (and now 913527). Closes: https://bugs.gentoo.org/913527 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> dev-lang/php/php-8.0.30.ebuild | 8 +++----- dev-lang/php/php-8.1.21.ebuild | 8 +++----- dev-lang/php/php-8.2.9.ebuild | 8 +++----- 3 files changed, 9 insertions(+), 15 deletions(-) |