[Bug lto/119816] Lto regression in 15-20250413 (worked in 15-20250407)

2025-04-15 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119816

Sam James  changed:

   What|Removed |Added

 Resolution|FIXED   |WORKSFORME

--- Comment #8 from Sam James  ---
Fantastic! Thank you for testing trunk and being so quick to submit bugs &
patches upstream. You often beat me to it :)

[Bug lto/119816] Lto regression in 15-20250413 (worked in 15-20250407)

2025-04-15 Thread rudi at heitbaum dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119816

rudi at heitbaum dot com changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|WAITING |RESOLVED

--- Comment #7 from rudi at heitbaum dot com ---
Hi Sam - you are correct. It was ccache. Did a full build with 15-20250413 with
the ccache cache removed and now a successful build.

[Bug lto/119816] Lto regression in 15-20250413 (worked in 15-20250407)

2025-04-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119816

--- Comment #6 from Andrew Pinski  ---
The other thing is `-fuse-ld=gold`, the gold linker itself has been deprecated
in binutils upstream. You could also try removing that too.

[Bug lto/119816] Lto regression in 15-20250413 (worked in 15-20250407)

2025-04-15 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119816

--- Comment #5 from Sam James  ---
The check at
https://github.com/Kitware/CMake/blob/master/Modules/CheckIPOSupported.cmake
which uses
https://github.com/Kitware/CMake/tree/master/Modules/CheckIPOSupported doesn't
seem to use any system libraries.

Hopefully you had ccache on which would explain it but I'm not sure how your
setup works (is
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc
a wrapper or is it definitely GCC, and no chance for ccache to be involved)?

[Bug lto/119816] Lto regression in 15-20250413 (worked in 15-20250407)

2025-04-15 Thread rudi at heitbaum dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119816

--- Comment #4 from rudi at heitbaum dot com ---
Complete log failure after a clean. I’ll try deleting the ccache next.

<<< curl:target seq 56 <<<
UNPACK  curl
FIXCONFIG 
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/build/curl-8.13.0/
BUILD  curl (target)
TOOLCHAIN  cmake (auto-detect)
Executing (target): cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_TOOLCHAIN_FILE=/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/toolchain/etc/cmake-x86_64-libreelec-linux-gnu.conf
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_DEBUG=OFF
-DCURL_LTO=ON -DCURL_WERROR=ON -DENABLE_CURLDEBUG=OFF -DENABLE_ARES=OFF
-DCURL_DISABLE_HTTP=OFF -DCURL_DISABLE_FTP=OFF -DCURL_DISABLE_FILE=OFF
-DCURL_DISABLE_LDAP=ON -DCURL_DISABLE_LDAPS=ON -DCURL_DISABLE_RTSP=OFF
-DCURL_DISABLE_PROXY=OFF -DCURL_DISABLE_DICT=ON -DCURL_DISABLE_TELNET=ON
-DCURL_DISABLE_TFTP=ON -DCURL_DISABLE_POP3=ON -DCURL_DISABLE_IMAP=ON
-DCURL_DISABLE_SMB=ON -DCURL_DISABLE_SMTP=ON -DCURL_DISABLE_GOPHER=ON
-DCURL_DISABLE_MQTT=ON -DENABLE_CURL_MANUAL=OFF -DENABLE_IPV6=ON
-DENABLE_THREADED_RESOLVER=ON -DCURL_DISABLE_VERBOSE_STRINGS=OFF
-DCURL_WINDOWS_SSPI=OFF -DCURL_DISABLE_COOKIES=OFF -DCURL_HIDDEN_SYMBOLS=ON
-DCURL_USE_GSSAPI=OFF -DUSE_ZLIB=ON -DCURL_BROTLI=OFF -DCURL_ZSTD=OFF
-DRANDOM_FILE=/dev/urandom -DCURL_USE_GNUTLS=OFF -DCURL_ENABLE_SSL=ON
-DCURL_USE_MBEDTLS=OFF -DCURL_CA_BUNDLE=/run/libreelec/cacert.pem
-DCURL_CA_PATH=none -DCURL_USE_LIBPSL=OFF -DCURL_USE_LIBSSH2=OFF
-DUSE_LIBRTMP=ON -DUSE_LIBIDN2=ON -DUSE_NGHTTP2=ON
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/build/curl-8.13.0
-- Using CMake version 4.0.1
-- curl version=[8.13.0]
-- The C compiler identification is GNU 15.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler:
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/toolchain/bin/x86_64-libreelec-linux-gnu-gcc
- skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- CMake platform flags: UNIX GCC CROSS
-- Cross-compiling: Linux/x86_64 -> Linux/x86_64
-- Picky compiler options: -pedantic-errors
-Werror-implicit-function-declaration -W -Wall -pedantic -Wbad-function-cast
-Wconversion -Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wno-long-long -Wno-multichar -Wpointer-arith -Wshadow -Wsign-compare -Wundef
-Wunused -Wwrite-strings -Waddress -Wattributes -Wcast-align -Wcast-qual
-Wdeclaration-after-statement -Wdiv-by-zero -Wempty-body -Wendif-labels
-Wfloat-equal -Wformat-security -Wignored-qualifiers
-Wmissing-field-initializers -Wmissing-noreturn -Wno-format-nonliteral
-Wno-sign-conversion -Wno-system-headers -Wold-style-definition
-Wredundant-decls -Wstrict-prototypes -Wtype-limits -Wunreachable-code
-Wunused-parameter -Wvla -Wclobbered -Wmissing-parameter-type
-Wold-style-declaration -Wpragmas -Wstrict-aliasing=3 -ftree-vrp
-Wjump-misses-init -Wdouble-promotion -Wformat=2 -Wtrampolines -Warray-bounds=2
-Wduplicated-cond -Wnull-dereference -fdelete-null-pointer-checks
-Wshift-negative-value -Wshift-overflow=2 -Wunused-const-variable -Walloc-zero
-Wduplicated-branches -Wformat-truncation=2 -Wimplicit-fallthrough -Wrestrict
-Warith-conversion -Wenum-conversion
-- Found Perl: /usr/bin/perl (found version "5.38.2")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Looking for connect in socket
-- Looking for connect in socket - not found
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID - Success
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_ADDR
-- Performing Test HAVE_SOCKADDR_IN6_SIN6_ADDR - Success
-- Found OpenSSL:
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libcrypto.so
(found version "3.5.0")
-- Looking for OPENSSL_IS_BORINGSSL
-- Looking for OPENSSL_IS_BORINGSSL - not found
-- Looking for OPENSSL_IS_AWSLC
-- Looking for OPENSSL_IS_AWSLC - not found
-- Looking for LIBRESSL_VERSION_NUMBER
-- Looking for LIBRESSL_VERSION_NUMBER - not found
-- Found ZLIB:
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib/libz.so
(found version "1.3.1")
-- Looking for SSL_set0_wbio
-- Looking for SSL_set0_wbio - found
-- Looking for SSL_CTX_set_srp_username
-- Looking for SSL_CTX_set_srp_username - found
-- Checking for module 'libnghttp2'
--   Found libnghttp2, version 1.65.0
-- Found NGHTTP2 (via pkg-config):
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/include
(found version "1.65.0")
-- Checking for module 'libidn2'
--   Found libidn2, version 2.3.8
-- Found Libidn2 (v

[Bug lto/119816] Lto regression in 15-20250413 (worked in 15-20250407)

2025-04-15 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119816

Sam James  changed:

   What|Removed |Added

 Resolution|INVALID |---
 Ever confirmed|0   |1
   Last reconfirmed||2025-04-15
 Status|RESOLVED|WAITING

--- Comment #3 from Sam James  ---
FWIW, this can often happen with e.g. ccache too.

But what you're seeing is gcc trying to unpack the IR stored in one of the
objects on disk and failing. It's very unexpected for that to fail for a
*just-written* object.

In your output, what is libfoo.a built from? Does it include some other .a?

[Bug lto/119816] Lto regression in 15-20250413 (worked in 15-20250407)

2025-04-15 Thread rudi at heitbaum dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119816

--- Comment #2 from rudi at heitbaum dot com ---
Hi Sam, I did a clean build of the whole environment - so do believe it is a
regression. I’ll retry as requested to do a curl build directly - will update
shortly.

[Bug lto/119816] Lto regression in 15-20250413 (worked in 15-20250407)

2025-04-15 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119816

Sam James  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #1 from Sam James  ---
If static libraries are involved, you need to rebuild them. The LTO format
isn't stable between commits.

If you can reproduce with all freshly-built LTO objects, please reopen.