grimbough / rhdf5

Package providing an interface between HDF5 and R
http://bioconductor.org/packages/rhdf5
61 stars 22 forks source link

installation error on linux: external_filters.h error #81

Closed aljabadi closed 3 years ago

aljabadi commented 3 years ago

It looks like the outputs of the .Rprofile are creating issues similar to https://github.com/grimbough/rhdf5filters/issues/11.

 Rscript -e "BiocManager::install('rhdf5',update = FALSE, ask = FALSE, dependencies = FALSE, site_repository = BiocManager::repositories()[1])"
...

## ----------- R version 4.0.0 (2020-04-24) ----------- ##
adding to libPaths:  ~/R4_libs
loading magrittr
## ----------------------------- ##

* installing *source* package ‘rhdf5’ ...
** using staged installation

...

In file included from external_filters.c:1:
external_filters.h:1:9: error: macro names must be identifiers
 #define ## ----------- R version 4.0.0 (2020-04-24) ----------- ##
         ^~
external_filters.h:2:1: error: unknown type name ‘adding’
 adding to libPaths:  ~/R4_libs
 ^~~~~~
external_filters.h:2:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘libPaths’
 adding to libPaths:  ~/R4_libs
           ^~~~~~~~
external_filters.h:4:1: error: stray ‘##’ in program
 ## ----------------------------- ##
 ^~
external_filters.h:4:34: error: stray ‘##’ in program
 ## ----------------------------- ##
                                  ^~
make: *** [external_filters.o] Error 1
ERROR: compilation failed for package ‘rhdf5’
grimbough commented 3 years ago

Hopefully this has now been addressed in 2.35.3. Please re-open if it's still a problem.