[R] gstat installation problem

Poizot Emmanuel emm@nue|@po|zot @end|ng |rom |ecn@m@net
Wed Feb 16 15:20:48 CET 2022


Dear all,
I tried to install gstat package via install.packages('gstat') command 
on R (version 3.5.2) and my OS is Debian buster.

the install failed with message:

......
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG      -fpic  -g -O2 
-fdebug-prefix-map=/build/r-base-3.5.2=. -fstack-protector-strong 
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c 
mtrx.c -o mtrx.o
In file included from /usr/share/R/include/R.h:85,
                  from mtrx.c:18:
/usr/share/R/include/R_ext/Constants.h:36: warning: "PI" redefined
  #define PI             M_PI

In file included from mtrx.c:12:
utils.h:20: note: this is the location of the previous definition
  # define PI 3.14159265359

mtrx.c: In function ‘CHfactor’:
mtrx.c:391:74: error: ‘FC_LEN_T’ undeclared (first use in this 
function); did you mean ‘FD_SET’?
    F77_CALL(dpotrf)("Upper", (int *)&(m->n), m->v, (int *)&(m->n), 
info, (FC_LEN_T) 5);
 
    ^~~~~~~~
 
    FD_SET
mtrx.c:391:74: note: each undeclared identifier is reported only once 
for each function it appears in
mtrx.c:391:83: error: expected ‘)’ before numeric constant
    F77_CALL(dpotrf)("Upper", (int *)&(m->n), m->v, (int *)&(m->n), 
info, (FC_LEN_T) 5);
 
             ^~
 
             )
In file included from /usr/share/R/include/R_ext/Lapack.h:39,
                  from mtrx.c:6:
mtrx.c:391:12: error: too many arguments to function ‘dpotrf_’
    F77_CALL(dpotrf)("Upper", (int *)&(m->n), m->v, (int *)&(m->n), 
info, (FC_LEN_T) 5);
             ^~~~~~
/usr/share/R/include/R_ext/RS.h:92:22: note: in definition of macro 
‘F77_CALL’
  # define F77_CALL(x) x ## _
                       ^
/usr/share/R/include/R_ext/Lapack.h:815:10: note: declared here
  F77_NAME(dpotrf)(const char* uplo, const int* n,
           ^~~~~~
/usr/share/R/include/R_ext/RS.h:92:22: note: in definition of macro 
‘F77_CALL’
  # define F77_CALL(x) x ## _
                       ^
/usr/share/R/include/R_ext/Lapack.h:815:1: note: in expansion of macro 
‘F77_NAME’
  F77_NAME(dpotrf)(const char* uplo, const int* n,
  ^~~~~~~~
mtrx.c:404:112: error: expected ‘)’ before numeric constant
    F77_CALL(dsytrf)("Upper", (int *)&(m->n), m->v, (int *)&(m->n), (int 
*) piv->pe, &w, &lwork, info, (FC_LEN_T) 5);
 
                                          ^~
 
                                          )
In file included from /usr/share/R/include/R_ext/Lapack.h:39,
                  from mtrx.c:6:
mtrx.c:404:12: error: too many arguments to function ‘dsytrf_’
    F77_CALL(dsytrf)("Upper", (int *)&(m->n), m->v, (int *)&(m->n), (int 
*) piv->pe, &w, &lwork, info, (FC_LEN_T) 5);
             ^~~~~~
/usr/share/R/include/R_ext/RS.h:92:22: note: in definition of macro 
‘F77_CALL’
  # define F77_CALL(x) x ## _
                       ^
/usr/share/R/include/R_ext/Lapack.h:1350:10: note: declared here
  F77_NAME(dsytrf)(const char* uplo, const int* n,
           ^~~~~~
/usr/share/R/include/R_ext/RS.h:92:22: note: in definition of macro 
‘F77_CALL’
  # define F77_CALL(x) x ## _
                       ^
/usr/share/R/include/R_ext/Lapack.h:1350:1: note: in expansion of macro 
‘F77_NAME’
  F77_NAME(dsytrf)(const char* uplo, const int* n,
  ^~~~~~~~
mtrx.c:407:114: error: expected ‘)’ before numeric constant
    F77_CALL(dsytrf)("Upper", (int *)&(m->n), m->v, (int *)&(m->n), (int 
*) piv->pe, work, &lwork, info, (FC_LEN_T) 5);
 
                                            ^~
 
                                            )
In file included from /usr/share/R/include/R_ext/Lapack.h:39,
                  from mtrx.c:6:
mtrx.c:407:12: error: too many arguments to function ‘dsytrf_’
    F77_CALL(dsytrf)("Upper", (int *)&(m->n), m->v, (int *)&(m->n), (int 
*) piv->pe, work, &lwork, info, (FC_LEN_T) 5);
             ^~~~~~
/usr/share/R/include/R_ext/RS.h:92:22: note: in definition of macro 
‘F77_CALL’
  # define F77_CALL(x) x ## _
                       ^
/usr/share/R/include/R_ext/Lapack.h:1350:10: note: declared here
  F77_NAME(dsytrf)(const char* uplo, const int* n,
           ^~~~~~
/usr/share/R/include/R_ext/RS.h:92:22: note: in definition of macro 
‘F77_CALL’
  # define F77_CALL(x) x ## _
                       ^
/usr/share/R/include/R_ext/Lapack.h:1350:1: note: in expansion of macro 
‘F77_NAME’
  F77_NAME(dsytrf)(const char* uplo, const int* n,
  ^~~~~~~~
mtrx.c: In function ‘CHsolve’:
mtrx.c:427:128: error: ‘FC_LEN_T’ undeclared (first use in this 
function); did you mean ‘FD_SET’?
  L(dpotrs)("Upper", (int *) &(m->m), (int *) &(b->n), m->v, (int *) 
&(m->m),          out->v, (int *) &(m->m), &info, (FC_LEN_T) 5);
 
                                                 ^~~~~~~~
 
                                                 FD_SET
mtrx.c:427:137: error: expected ‘)’ before numeric constant
  dpotrs)("Upper", (int *) &(m->m), (int *) &(b->n), m->v, (int *) 
&(m->m),          out->v, (int *) &(m->m), &info, (FC_LEN_T) 5);
 
                                                        ^~
 
                                                        )
In file included from /usr/share/R/include/R_ext/Lapack.h:39,
                  from mtrx.c:6:
mtrx.c:427:12: error: too many arguments to function ‘dpotrs_’
    F77_CALL(dpotrs)("Upper", (int *) &(m->m), (int *) &(b->n), m->v, 
(int *) &(m->m),          out->v, (int *) &(m->m), &info, (FC_LEN_T) 5);
             ^~~~~~
/usr/share/R/include/R_ext/RS.h:92:22: note: in definition of macro 
‘F77_CALL’
  # define F77_CALL(x) x ## _
                       ^
/usr/share/R/include/R_ext/Lapack.h:827:10: note: declared here
  F77_NAME(dpotrs)(const char* uplo, const int* n,
           ^~~~~~
/usr/share/R/include/R_ext/RS.h:92:22: note: in definition of macro 
‘F77_CALL’
  # define F77_CALL(x) x ## _
                       ^
/usr/share/R/include/R_ext/Lapack.h:827:1: note: in expansion of macro 
‘F77_NAME’
  F77_NAME(dpotrs)(const char* uplo, const int* n,
  ^~~~~~~~
mtrx.c:429:137: error: expected ‘)’ before numeric constant
  dsytrs)("Upper", (int *) &(m->m), (int *) &(b->n), m->v, (int *) 
&(m->m), piv->pe, out->v, (int *) &(m->m), &info, (FC_LEN_T) 5);
 
                                                        ^~
 
                                                        )
In file included from /usr/share/R/include/R_ext/Lapack.h:39,
                  from mtrx.c:6:
mtrx.c:429:12: error: too many arguments to function ‘dsytrs_’
    F77_CALL(dsytrs)("Upper", (int *) &(m->m), (int *) &(b->n), m->v, 
(int *) &(m->m), piv->pe, out->v, (int *) &(m->m), &info, (FC_LEN_T) 5);
             ^~~~~~
/usr/share/R/include/R_ext/RS.h:92:22: note: in definition of macro 
‘F77_CALL’
  # define F77_CALL(x) x ## _
                       ^
/usr/share/R/include/R_ext/Lapack.h:1366:10: note: declared here
  F77_NAME(dsytrs)(const char* uplo, const int* n,
           ^~~~~~
/usr/share/R/include/R_ext/RS.h:92:22: note: in definition of macro 
‘F77_CALL’
  # define F77_CALL(x) x ## _
                       ^
/usr/share/R/include/R_ext/Lapack.h:1366:1: note: in expansion of macro 
‘F77_NAME’
  F77_NAME(dsytrs)(const char* uplo, const int* n,
  ^~~~~~~~
make: *** [/usr/lib/R/etc/Makeconf:162: mtrx.o] Error 1
ERROR: compilation failed for package ‘gstat’
* removing ‘/home/epoizot/R/x86_64-pc-linux-gnu-library/3.5/gstat’

Les packages source téléchargés sont dans
	‘/tmp/RtmpX08lSy/downloaded_packages’
Warning message:
In install.packages("gstat") :
   l'installation du package ‘gstat’ a eu un statut de sortie non nul

Is there a workaround to deal with gstat install ?

-- 
Cordialement

/------------------------------------------------
*Emmanuel Poizot*
------------------------------------------------
*** "Quand le dernier arbre sera abattu, la dernière rivière
empoisonnée, le dernier poisson capturé, alors le visage pale
s'apercevra que l'argent ne se mange pas" (Sitting Bull) ***
/


More information about the R-help mailing list