lazy-load database '/var/tmp/portage/dev-lang/R-4.4.2/work/R-4.4.2/library/compiler/R/compiler.rdb' is corrupt Reproducible: Always Steps to Reproduce: emerge -1 sys-devel/gcc-15.0.0_pre20241222 emerge -1 =R-4.4.2 Actual Results: with gcc-15.0.0_pre20241222: Error in runHook(".onLoad", env, package.lib, package) : lazy-load database '/var/tmp/portage/dev-lang/R-4.4.2/work/R-4.4.2/library/compiler/R/compiler.rdb' is corrupt Calls: getNamespace -> %||% -> loadNamespace -> runHook In addition: Warning message: In runHook(".onLoad", env, package.lib, package) : internal error 1 in R_decompress1 with libdeflate Execution halted make[3]: *** [Makefile:39: ../../../library/base/R/base.rdb] Error 1 make[3]: Leaving directory '/var/tmp/portage/dev-lang/R-4.4.2/work/R-4.4.2/src/library/base' make[2]: *** [Makefile:38: R] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-lang/R-4.4.2/work/R-4.4.2/src/library' make[1]: *** [Makefile:28: R] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-lang/R-4.4.2/work/R-4.4.2/src' make: *** [Makefile:62: R] Error 1 * ERROR: dev-lang/R-4.4.2::gentoo failed (compile phase) =dev-lang/R-4.4.2 previously built with -std=gnu17 using 15.0.0_pre20241215
Created attachment 914807 [details] build failure log
Created attachment 914808 [details] emerge --info
Attempted to remedy using -fno-ipa-cp: env for =app-arch/libdeflate-1.21: CFLAGS="${CFLAGS} -fno-ipa-cp" env for =dev-lang/R-4.4.2: CFLAGS="${CFLAGS} -std=gnu17 -fno-ipa-cp" R failed with the same error
app-arch/libdeflate fails its testsuite, looking.
I tried the usual suspects (-fzero-init-padding-bits=unions, -fno-malloc-dce, asan+ubsan, valgrind), nothing. But -fdisable-tree-ifcombine works.
*** Bug 946982 has been marked as a duplicate of this bug. ***
adding CFLAGS="${CFLAGS} -fdisable-tree-ifcombine" to env for app-arch/libdeflate corrects the problem with R using it to build. no env over-ride needed for dev-lang/R
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0c549f2d2c9dd3d781c69d91b74b76103d74f15 commit a0c549f2d2c9dd3d781c69d91b74b76103d74f15 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-01-06 21:56:10 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-01-06 21:56:10 +0000 app-arch/libdeflate: add workaround for ifcombine bug No revbump given it only affects 2-3 snapshots of GCC 15 and will be fixed soon. Bug: https://gcc.gnu.org/PR118206 Closes: https://bugs.gentoo.org/946876 Signed-off-by: Sam James <sam@gentoo.org> app-arch/libdeflate/libdeflate-1.23.ebuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1432e92aa0f6c92166acdbea673861d564fb972e commit 1432e92aa0f6c92166acdbea673861d564fb972e Author: Sam James <sam@gentoo.org> AuthorDate: 2025-01-13 00:23:11 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-01-13 00:23:19 +0000 sys-devel/gcc: add 15.0.0_pre20250112 Closes: https://bugs.gentoo.org/947005 Closes: https://bugs.gentoo.org/947016 Closes: https://bugs.gentoo.org/946958 Closes: https://bugs.gentoo.org/946900 Closes: https://bugs.gentoo.org/946876 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 2 ++ sys-devel/gcc/gcc-15.0.0_pre20250112.ebuild | 53 +++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=893f9a6fec6a9c4b7f924fda7da8503ca8a3074d commit 893f9a6fec6a9c4b7f924fda7da8503ca8a3074d Author: Sam James <sam@gentoo.org> AuthorDate: 2025-01-13 10:30:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-01-13 10:32:07 +0000 app-arch/libdeflate: drop ifcombine workaround Works in latest snapshot. Bug: https://bugs.gentoo.org/946876 Signed-off-by: Sam James <sam@gentoo.org> app-arch/libdeflate/libdeflate-1.23.ebuild | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)