Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 936276

Summary: dev-lang/R-4.3.1-r1 fails to compile with clang-17 if USE="lto" is enabled
Product: Gentoo Linux Reporter: ppw0
Component: Current packagesAssignee: Gentoo Science Mathematics related packages <sci-mathematics>
Status: UNCONFIRMED ---    
Severity: normal CC: ppw0
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550, 731004, 912821    
Attachments: build log
emerge --info

Description ppw0 2024-07-19 05:46:28 UTC
Created attachment 897956 [details]
build log

In an environment that uses clang-17 as the default compiler toolchain, dev-lang/R-4.3.1-r1 will fail to build with the "lto" USE flag enabled, with the following error:

```
/var/tmp/portage/dev-lang/R-4.3.1-r1/work/R-4.3.1/bin/exec/R: symbol lookup error: /var/tmp/portage/dev-lang/R-4.3.1-r1/work/R-4.3.1/lib/libR.so: undefined symbol: dqrcf_
make[4]: *** [../../../share/make/basepkg.mk:151: sysdata] Error 127
make[4]: Leaving directory '/var/tmp/portage/dev-lang/R-4.3.1-r1/work/R-4.3.1/src/library/tools'
make[3]: *** [Makefile:36: all] Error 2
make[3]: Leaving directory '/var/tmp/portage/dev-lang/R-4.3.1-r1/work/R-4.3.1/src/library/tools'
make[2]: *** [Makefile:37: R] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-lang/R-4.3.1-r1/work/R-4.3.1/src/library'
make[1]: *** [Makefile:28: R] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-lang/R-4.3.1-r1/work/R-4.3.1/src'
make: *** [Makefile:62: R] Error 1
```

Also tested with dev-lang/R-4.3.2-r1 and 4.4.1, with the same errors.

Attaching logs.
Comment 1 ppw0 2024-07-19 05:48:25 UTC
Created attachment 897957 [details]
emerge --info