Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946876 - app-arch/libdeflate: fails tests with gcc-15 (=dev-lang/R-4.4.2 fails to compile with sys-devel/gcc-15.0.0_pre20241222 + -std=gnu17: lazy-load database '/var/tmp/portage/dev-lang/R-4.4.2/work/R-4.4.2/library/compiler/R/compiler.rdb' is corrupt)
Summary: app-arch/libdeflate: fails tests with gcc-15 (=dev-lang/R-4.4.2 fails to comp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: TESTFAILURE
: 946982 (view as bug list)
Depends on:
Blocks: gcc-15 947016
  Show dependency tree
 
Reported: 2024-12-24 07:20 UTC by tdr
Modified: 2025-01-13 10:33 UTC (History)
5 users (show)

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


Attachments
build failure log (R-4.4.2:20241224-064759.log,126.83 KB, text/plain)
2024-12-24 07:21 UTC, tdr
Details
emerge --info (emerge--info.txt,6.36 KB, text/plain)
2024-12-24 07:22 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-12-24 07:20:15 UTC
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
Comment 1 tdr 2024-12-24 07:21:07 UTC
Created attachment 914807 [details]
build failure log
Comment 2 tdr 2024-12-24 07:22:13 UTC
Created attachment 914808 [details]
emerge --info
Comment 3 tdr 2024-12-24 07:44:51 UTC
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
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-26 12:10:19 UTC
app-arch/libdeflate fails its testsuite, looking.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-26 12:19:15 UTC
I tried the usual suspects (-fzero-init-padding-bits=unions, -fno-malloc-dce, asan+ubsan, valgrind), nothing.

But -fdisable-tree-ifcombine works.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-27 02:49:33 UTC
*** Bug 946982 has been marked as a duplicate of this bug. ***
Comment 7 tdr 2024-12-27 04:36:43 UTC
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
Comment 8 Larry the Git Cow gentoo-dev 2025-01-06 21:57:11 UTC
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(-)
Comment 9 Larry the Git Cow gentoo-dev 2025-01-13 00:25:06 UTC
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(+)
Comment 10 Larry the Git Cow gentoo-dev 2025-01-13 10:33:29 UTC
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(-)