Re: [R-pkg-devel] Reliably detecting FLIBS on source build of R (w.r.t Rust packages)

2025-01-26 Thread Balasubramanian Narasimhan
Also, to further clarify, yes I need Rust to determine the linker flags since the underlying Clarabel.rs links against BLAS. -N On 1/26/25 8:22 AM, Balasubramanian Narasimhan wrote: Thank you, Simon and Ivan.  And further thanks to Ivan for R sleuthing of the first order! That I'm picking up

Re: [R-pkg-devel] Reliably detecting FLIBS on source build of R (w.r.t Rust packages)

2025-01-26 Thread Balasubramanian Narasimhan
Thank you, Simon and Ivan.  And further thanks to Ivan for R sleuthing of the first order! That I'm picking up the wrong R makes sense.  I will incorporate your suggestions Best wishes, -Naras On 1/25/25 11:55 PM, Ivan Krylov wrote: В Sat, 25 Jan 2025 08:54:45 -0800 Balasubramanian Narasim

Re: [R-pkg-devel] Reliably detecting FLIBS on source build of R (w.r.t Rust packages)

2025-01-26 Thread Ivan Krylov via R-package-devel
В Sat, 25 Jan 2025 08:54:45 -0800 Balasubramanian Narasimhan пишет: > (https://github.com/blas-lapack-rs/r-src/blob/966266425b1a21a1e979f767c6023e6bf00616fc/build.rs#L160). > Thank you for providing the link to the code! > The only thing I can think of is that FLIBS is being set outside > c

Re: [R-pkg-devel] Reliably detecting FLIBS on source build of R (w.r.t Rust packages)

2025-01-25 Thread Simon Urbanek
Naras, sorry, but since this involves some Rust code, I fear that you'll have to discuss it with Brian directly. FWIW on the CRAN M1 build machine it seems to use the correct flags: $ grep fortran/lib /Volumes/Builds/packages/big-sur-arm64/results/4.5/clarabel.Rcheck/00install.out clang -arc

[R-pkg-devel] Reliably detecting FLIBS on source build of R (w.r.t Rust packages)

2025-01-25 Thread Balasubramanian Narasimhan
I got the note below from Prof. Ripley on my package 'clarabel' failing M1mac checks. This puzzles me because I am using FLIBS determined via`R CMD config FLIBS` using the crate I wrote for this very purpose (https://github.com/blas-lapack-rs/r-src/blob/966266425b1a21a1e979f767c6023e6bf00616fc/