Skip to content

ubuntu 18.04 installation fail #15

@sungminhan

Description

@sungminhan

Hi,
I am trying to install package via "install.packages("collections")" at ubuntu 18.04.
However, I got following message during installation.

In file included from  xxh.c:1:0: 
xxh.c: In function ‘xxh_digest’:  
xxh.h:8:20: error: ‘false’ undeclared (first use in this function); did you mean ‘fabsl’?
 # define ALTREP(x) false
                    ^
xxh.c:79:77: note: in expansion of macro ‘ALTREP’
     if (Rf_length(x) >= 0 && Rf_isVectorAtomic(x) && (Rf_length(x) == 1 || !ALTREP(x))) {
                                                                             ^~~~~~
xxh.h:8:20: note: each undeclared identifier is reported only once for each function it appears in
 # define ALTREP(x) false
                    ^
xxh.c:79:77: note: in expansion of macro ‘ALTREP’
     if (Rf_length(x) >= 0 && Rf_isVectorAtomic(x) && (Rf_length(x) == 1 || !ALTREP(x))) {
                                                                             ^~~~~~
/usr/lib/R/etc/Makeconf:159: recipe for target 'xxh.o' failed

I think "stdbool.h" has to be included or "false" has to be declared.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions