statnet / tergm

Fit, Simulate and Diagnose Models for Network Evolution Based on Exponential-Family Random Graph Models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem installing tergm in R 4.1 in Ubuntu

martinezsebastian opened this issue · comments

Hi,

I ran into an issue installing tergm on Ubuntu 20.04.2 LTS.
It looks like it has something to do with the "DynSA.C" file. Unclear whether this is an package issue, or my issue, but any help is highly appreciated!

Here's the whole install message:

Installing package into ‘/home/smartinez/R/x86_64-pc-linux-gnu-library/4.1’
(as ‘lib’ is unspecified)
also installing the dependency ‘tergm’

trying URL 'https://cloud.r-project.org/src/contrib/tergm_3.7.0.tar.gz'
Content type 'application/x-gzip' length 1680914 bytes (1.6 MB)
==================================================
downloaded 1.6 MB

trying URL 'https://cloud.r-project.org/src/contrib/statnet_2019.6.tar.gz'
Content type 'application/x-gzip' length 7589 bytes
==================================================
downloaded 7589 bytes

* installing *source* package ‘tergm’ ...
** package ‘tergm’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG  -I'/home/smartinez/R/x86_64-pc-linux-gnu-library/4.1/ergm/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-tbZjLv/r-base-4.1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c DynSA.c -o DynSA.o
In file included from MCMCDyn.h:13,
                 from DynSA.h:13,
                 from DynSA.c:10:
/home/smartinez/R/x86_64-pc-linux-gnu-library/4.1/ergm/include/edgetree.h:10:9: note: #pragma message: warning: The header file "edgetree.h" has been deprecated in favor of "ergm_edgetree.h" and may be removed in the future.
   10 | #pragma message ("warning: The header file \"edgetree.h\" has been deprecated in favor of \"ergm_edgetree.h\" and may be removed in the future.")
      |         ^~~~~~~
In file included from MCMCDyn.h:14,
                 from DynSA.h:13,
                 from DynSA.c:10:
/home/smartinez/R/x86_64-pc-linux-gnu-library/4.1/ergm/include/MHproposal.h:10:9: note: #pragma message: warning: The header file "MHProposal.h" has been deprecated in favor of "ergm_MHproposal.h" and may be removed in the future.
   10 | #pragma message ("warning: The header file \"MHProposal.h\" has been deprecated in favor of \"ergm_MHproposal.h\" and may be removed in the future.")
      |         ^~~~~~~
In file included from MCMCDyn.h:15,
                 from DynSA.h:13,
                 from DynSA.c:10:
/home/smartinez/R/x86_64-pc-linux-gnu-library/4.1/ergm/include/changestat.h:10:9: note: #pragma message: warning: The header file "changestat.h" has been deprecated in favor of "ergm_changestat.h" and may be removed in the future.
   10 | #pragma message ("warning: The header file \"changestat.h\" has been deprecated in favor of \"ergm_changestat.h\" and may be removed in the future.")
      |         ^~~~~~~
In file included from MCMCDyn.h:16,
                 from DynSA.h:13,
                 from DynSA.c:10:
/home/smartinez/R/x86_64-pc-linux-gnu-library/4.1/ergm/include/model.h:10:9: note: #pragma message: warning: The header file "model.h" has been deprecated in favor of "ergm_model.h" and may be removed in the future.
   10 | #pragma message ("warning: The header file \"model.h\" has been deprecated in favor of \"ergm_model.h\" and may be removed in the future.")
      |         ^~~~~~~
In file included from DynSA.h:14,
                 from DynSA.c:10:
/home/smartinez/R/x86_64-pc-linux-gnu-library/4.1/ergm/include/MHproposal.h:10:9: note: #pragma message: warning: The header file "MHProposal.h" has been deprecated in favor of "ergm_MHproposal.h" and may be removed in the future.
   10 | #pragma message ("warning: The header file \"MHProposal.h\" has been deprecated in favor of \"ergm_MHproposal.h\" and may be removed in the future.")
      |         ^~~~~~~
DynSA.c: In function ‘MCMCDynSArun_wrapper’:
DynSA.c:91:16: error: ‘Network’ {aka ‘struct Networkstruct’} has no member named ‘duration_info’
   91 |     *time = nwp->duration_info.time;
      |                ^~
DynSA.c:92:11: error: ‘Network’ {aka ‘struct Networkstruct’} has no member named ‘duration_info’
   92 |     if(nwp->duration_info.lasttoggle)
      |           ^~
DynSA.c:93:27: error: ‘Network’ {aka ‘struct Networkstruct’} has no member named ‘duration_info’
   93 |     memcpy(lasttoggle, nwp->duration_info.lasttoggle, sizeof(int)*DYADCOUNT(*n_nodes, *bipartite, *dflag));
      |                           ^~
make: *** [/usr/lib/R/etc/Makeconf:168: DynSA.o] Error 1
ERROR: compilation failed for package ‘tergm’
* removing ‘/home/smartinez/R/x86_64-pc-linux-gnu-library/4.1/tergm’
ERROR: dependency ‘tergm’ is not available for package ‘statnet’
* removing ‘/home/smartinez/R/x86_64-pc-linux-gnu-library/4.1/statnet’

The downloaded source packages are in
	‘/tmp/RtmpOOCXhV/downloaded_packages’
Warning messages:
1: In install.packages("statnet") :
  installation of package ‘tergm’ had non-zero exit status
2: In install.packages("statnet") :
  installation of package ‘statnet’ had non-zero exit status

We've just published an update to ergm that breaks tergm. We will be publishing an update to tergm shortly.

Lovely, thanks for the quick reply. I look forward to the update.