From edd @end|ng |rom deb|@n@org  Thu Jan 12 15:44:44 2023
From: edd @end|ng |rom deb|@n@org (Dirk Eddelbuettel)
Date: Thu, 12 Jan 2023 08:44:44 -0600
Subject: [Rd] rhub vs. CRAN fedora-*-devel, using armadillo & slapack
In-Reply-To: <4b197a2fd732443aab53d7f69e49e88a@irsn.fr>
References: <334d6d8de5094164a99c8d4b26d77246@irsn.fr>
 <72de7b54-ff87-166f-4f8a-2b91381488cb@insa-toulouse.fr>
 <ffef02ea-52ae-a27a-1a8e-3d2046fd092c@insa-toulouse.fr>
 <ba0f6126425d4a43a3e1e3b0009e4105@irsn.fr>
 <20230110220545.5d213d2d@Tarkus>
 <44168649-5146-9cb0-a416-fbdb8b020029@gmail.com>
 <8cb80424-2264-4faa-b16f-e137b9f85bd4@fau.de>
 <84e94d6c-3408-014a-3845-76e66e88a779@gmail.com>
 <30578c9825ff429baecb0be28fc8b778@irsn.fr>
 <25535.311.322068.314067@rob.eddelbuettel.com>
 <4b197a2fd732443aab53d7f69e49e88a@irsn.fr>
Message-ID: <25536.7388.204821.704048@rob.eddelbuettel.com>


On 12 January 2023 at 08:54, RICHET Yann wrote:
| Thank you, Dirk.
| But I also tried with ccache, without fails... can you give some details about you reverse-depend configuration ? docker image ? Mine was a standard ubuntu 20.04 packages...

Nothing special -- I just the standard functions in base R package tools to
determine the reverse depends, and then loop over them and calling them one
by one.  (Package `prrd` at https://cloud.r-project.org/package=prrd helps
with this loops running in parallel and stateful, but you don't need that.)

My setup (on Debian, Ubuntu would work the same) contains (the perfectly
legal, helpful (!!) as `ccache` is a godsend, and not infrequently used)
snippet in ~/.R/Makevars

#VER=-12
CCACHE=ccache
CC=$(CCACHE) gcc$(VER)
CXX=$(CCACHE) g++$(VER)
CXX11=$(CCACHE) g++$(VER) 
CXX14=$(CCACHE) g++$(VER) 
CXX17=$(CCACHE) g++$(VER) 
SHLIB_CXXLD=$(CCACHE) g++$(VER)
FC=$(CCACHE) gfortran
F77=$(CCACHE) gfortran
F95=$(CCACHE) gfortran

Your package died incorrectly claiming the Fortran compiler was unsuitable.
Once I commented `CCACHE=ccache` out (which reduces the declaration to
null-ops, essentially) it worked.  Not 'fatal' but tedious as 2600+ other
packages build as they should.

Thanks for looking into it!

Dirk

-- 
dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



[Rd] rhub vs. CRAN fedora-*-devel, using armadillo & slapack
Dirk Eddelbuettel