Hi Dirk, Rebecca and everybody,

I am struggling to find a method to pass -fsigned-char to r-cran-bigmemory, which I hope can fix the test failures on arm64.

So far I have tried three approaches:

 - A src/Makevars file containing +CXXFLAGS = -fsigned-char
 - export DEB_CXXFLAGS_MAINT_APPEND = -fsigned-char in debian/rules
- Pass it directly through --configure-vars, with the following debian/rules file:

-----------------------------------------------------------
#!/usr/bin/make -f

CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) -fsigned-char

%:
        dh $@ --buildsystem R

override_dh_auto_install:
        mkdir -p ./debian/r-cran-bigmemory/usr/lib/R/site-library
        R CMD INSTALL \
                --configure-vars='CXXFLAGS="$(CXXFLAGS)"' \
                -l ./debian/r-cran-bigmemory/usr/lib/R/site-library \
                --clean . \
                --built-timestamp='Wed, 17 Jan 2024 14:04:25 +0100'
-----------------------------------------------------------

In none of these attempts I could see -fsigned-char in the build logs.

I am hitting a wall there as I have little knowledge about the use of C/C++ in R packages.

Do you know how to pass compiler flags to R CMD INSTALL in the context of dh $@ --buildsystem R ?

Have a nice day,

Charles

--
Charles Plessy - - ~ ~ ~ ~ ~ ~~~~ ~ ~ ~ ~ ~ - - charles.ple...@oist.jp
Okinawa  Institute  of  Science  and  Technology  Graduate  University
Senior staff scientist ~~ Luscombe Unit ~~ https://groups.oist.jp/grsu
Toots from work - ~~ ~~~~ ~~ - https://fediscience.org/@charles_plessy

Reply via email to