Fedora 42 R source build issues
On Wed, 16 Apr 2025, peter dalgaard wrote:
Hm? That should be unnecessary if you have the corresponding lines in config.site in your build directory when running configure.
Yes, but I prefer to use configure arguments, so having a record in config.log in the build directory.
Anyways, I don't think there is a reason to remove version 9. Those configure *Config.sh scripts should ensure that you pick up version 8 for the build.
No, tk8-devel and tk-devel do not cohabit in Fedora 42: # dnf install tk8-devel Updating and loading repositories: Repositories loaded. Failed to resolve the transaction: Problem: problem with installed package - installed package tk-devel-1:9.0.0-4.fc42.x86_64 conflicts with tk8-devel provided by tk8-devel-1:8.6.15-5.fc42.i686 from fedora - package tk-devel-1:9.0.0-4.fc42.x86_64 from fedora conflicts with tk8-devel provided by tk8-devel-1:8.6.15-5.fc42.i686 from fedora - conflicting requests - installed package tk-devel-1:9.0.0-4.fc42.x86_64 conflicts with tk8-devel provided by tk8-devel-1:8.6.15-5.fc42.x86_64 from fedora - package tk-devel-1:9.0.0-4.fc42.x86_64 from fedora conflicts with tk8-devel provided by tk8-devel-1:8.6.15-5.fc42.x86_64 from fedora You can try to add to command line: --allowerasing to allow removing of installed packages to resolve problems --skip-broken to skip uninstallable packages # dnf install --allowerasing tk8-devel Updating and loading repositories: Repositories loaded. Package Arch Version Repository Size Removing dependent packages: tcl-devel x86_64 1:9.0.0-7.fc42 fedora 830.6 KiB tk-devel x86_64 1:9.0.0-4.fc42 fedora 1.1 MiB Installing: tk8-devel x86_64 1:8.6.15-5.fc42 fedora 985.5 KiB Installing dependencies: tcl8-devel x86_64 1:8.6.15-10.fc42 fedora 793.4 KiB Transaction Summary: Installing: 2 packages Removing: 2 packages Total size of inbound packages is 710 KiB. Need to download 710 KiB. After this operation, 158 KiB will be freed (install 2 MiB, remove 2 MiB). Is this ok [y/N]: y [1/2] tcl8-devel-1:8.6.15-10.fc42.x86_6 100% | 404.8 KiB/s | 169.6 KiB | 00m00s [2/2] tk8-devel-1:8.6.15-5.fc42.x86_64 100% | 872.1 KiB/s | 540.7 KiB | 00m01s -------------------------------------------------------------------------------- [2/2] Total 100% | 872.6 KiB/s | 710.3 KiB | 00m01s Running transaction [1/6] Verify package files 100% | 153.0 B/s | 2.0 B | 00m00s [2/6] Prepare transaction 100% | 8.0 B/s | 4.0 B | 00m00s [3/6] Installing tcl8-devel-1:8.6.15-10 100% | 26.1 MiB/s | 800.5 KiB | 00m00s [4/6] Installing tk8-devel-1:8.6.15-5.f 100% | 24.1 MiB/s | 1.0 MiB | 00m00s [5/6] Removing tk-devel-1:9.0.0-4.fc42. 100% | 47.6 KiB/s | 341.0 B | 00m00s [6/6] Removing tcl-devel-1:9.0.0-7.fc42 100% | 47.0 B/s | 47.0 B | 00m01s Complete! ... $ dnf list --installed tk* Installed packages tk.x86_64 1:9.0.0-4.fc42 fedora tk8.x86_64 1:8.6.15-5.fc42 fedora tk8-devel.x86_64 1:8.6.15-5.fc42 fedora $ dnf list --installed tcl* Installed packages tcl.x86_64 1:9.0.0-7.fc42 fedora tcl8.x86_64 1:8.6.15-10.fc42 fedora tcl8-devel.x86_64 1:8.6.15-10.fc42 fedora Cohabitation with the 9.0 runtimes seems OK, but not the devel packages. Roger
-pd
On 16 Apr 2025, at 15.16, Roger Bivand via R-core <R-core at r-project.org> wrote: On Wed, 16 Apr 2025, peter dalgaard wrote:
The Mac builds want stuff like below. I suspect you may need similar tcl and tk lines pointing to *Config.sh for Tcl/Tk 8.
With only tcl8-devel and tk8-devel installed, I also needed: --with-tcl-config=/usr/lib64/tcl8.6/tclConfig.sh --with-tk-config=/usr/lib64/tkConfig.sh to build and check. Roger
(Tcl/Tk 9 popped up a bit too late in the development cycle for us to go investigating. Do you have any specifics about what has changed and causes problems?) -pd pd$ more config.site CPPFLAGS=-I/opt/R/x86_64/include LDFLAGS=-L/opt/R/x86_64/lib with_tcl_config=/opt/R/x86_64/lib/tclConfig.sh with_tk_config=/opt/R/x86_64/lib/tkConfig.sh
On 16 Apr 2025, at 11.11, I?aki Ucar <iucar at fedoraproject.org> wrote: On Wed, 16 Apr 2025 at 09:48, Roger Bivand via R-SIG-Fedora < r-sig-fedora at r-project.org> wrote:
Building R 4.5.0 from source on Fedora 42 hits problems because 42 ships with Tcl/Tk 9. tcl8-devel and tk8-devel are available and can be used, but I haven't yet found a viable incantation yet. Neither R released nor devel support Tcl/Tk 9 https://www.tcl-lang.com/software/tcltk/9.0.html.
Yes, you just need to install tcl8-devel and tk8-devel (and tell dnf to remove version 9 if it's already there) and compile as usual.
Building against external BLAS is also not self-evident, so may need guidance.
Building against FlexiBLAS is recommended. So you need to install flexiblas-devel, then tell R via --with-blas=flexiblas --with-lapack. See the configure part of our spec for a complete reference of what we do: https://src.fedoraproject.org/rpms/R/blob/rawhide/f/R.spec#_326 I?aki
Any suggestions welcome!
Roger
---
Roger Bivand
Emeritus Professor
Department of Economics
Norwegian School of Economics, Bergen, Norway
[[alternative HTML version deleted]]
_______________________________________________ R-SIG-Fedora mailing list R-SIG-Fedora at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-fedora
-- I?aki ?car [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Fedora mailing list R-SIG-Fedora at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-fedora
-- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business SchoolSolbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
-- Roger Bivand Emeritus Professor Department of Economics, Norwegian School of Economics, Postboks 3490 Ytre Sandviken, 5045 Bergen, Norway. e-mail: Roger.Bivand at nhh.no
_______________________________________________ R-core list: https://stat.ethz.ch/mailman/listinfo/r-core
-- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business SchoolSolbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
Roger Bivand Emeritus Professor Department of Economics, Norwegian School of Economics, Postboks 3490 Ytre Sandviken, 5045 Bergen, Norway. e-mail: Roger.Bivand at nhh.no