Re: [R-pkg-devel] R package build- C compilation issue related to math.h

2022-10-20 Thread Vincent Plagnol
Thank you Andrew for offering to help. The R-hub package sorted me out for testing for various OSs. And Ivan: thank you very much- you were spot on. Swapping the order of config.h and system headers in all my C files made the compilation work in my R-hub tests. Hopefully ExomeDepth is now about to

Re: [R-pkg-devel] R package build- C compilation issue related to math.h

2022-10-20 Thread Ivan Krylov
On Wed, 19 Oct 2022 23:39:57 +0100 Vincent Plagnol wrote: > gcc-12 -I"/home/hornik/tmp/R/include" -DNDEBUG -I/usr/local/include > -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2 -fpic -g -O2 -Wall > -Wstrict-prototypes -pedantic -mtune=native -c VP_gamma.c -o > VP_gamma.o > /usr/include/x86

Re: [R-pkg-devel] R package build- C compilation issue related to math.h

2022-10-19 Thread Andrew Simmons
You could install VirtualBox if you wanted to test it yourself, or if you have the tarball available online somewhere, I can try building it. On Wed., Oct. 19, 2022, 19:57 Vincent Plagnol, wrote: > Dear all at R-package-devel, > > I am struggling with a R package build. > It builds fine on my ma

[R-pkg-devel] R package build- C compilation issue related to math.h

2022-10-19 Thread Vincent Plagnol
Dear all at R-package-devel, I am struggling with a R package build. It builds fine on my mac, which is my usual work environment. But when I submit to CRAN, while the windows version is fine, the debian version fails with a cryptic message: ** installing *source* package ‘ExomeDepth