[R-pkg-devel] CRAN check linux gcc12 Boost error
jérémy Gelb
ge|bjeremy22 @end|ng |rom gm@||@com
Fri Apr 15 15:05:21 CEST 2022
Dear all,
I send this message after a good call from Iñaki Ucar. The compilation
error with gcc12 I had for spNetwork was very likely caused by some
namespace pollution :
using namespace std;
After removing it and adding std:: were needed, I was able to compile the
package on a Docker with gcc12 (https://hub.docker.com/r/rocker/r-edge/tags)
thanks to the maintainer from the package BH.
Long story short, if you use BH in your package and have some weird
compilation error with gcc12, it could be caused by namespace pollution.
All the best
Le dim. 10 avr. 2022 à 14:32, jérémy Gelb <gelbjeremy22 using gmail.com> a écrit :
> Dear all,
>
> A package I am developing is encountering an error on the platform
> (r-devel-linux-x86_64-debian-gcc) since CRAN decided to force the use of
> gcc12.
>
> The error is caused by the use of the bh package and the c++ Boost
> geometry library. Boost is not supposed to be compiled with gcc12 (
> https://www.boost.org/users/history/version_1_78_0.html), but I really
> would like to continue to use it in my package.
>
> Is there a way to ensure that an "older" version (11 should be fine) is
> available and used when the package is installed and display an error
> message otherwise?
>
> Thank you !
> --
>
> *Jérémy GELB*
> Assistant de recherche à l'*INRS*
> Docteur en Études Urbaines
>
> 514 658 6054
> gelbjeremy22 using gmail.com
> F-4221 Avenue Coloniale H2W2C3 Montréal Quebec
>
--
*Jérémy GELB*
Assistant de recherche à l'*INRS*
Docteur en Études Urbaines
514 658 6054
gelbjeremy22 using gmail.com
F-4221 Avenue Coloniale H2W2C3 Montréal Quebec
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list