hallowkm / RxODE

RxODE is an R package that facilitates easy simulations in R
20 stars 13 forks source link

Cannot run demo after package install #5

Closed varungoelPMX closed 8 years ago

varungoelPMX commented 8 years ago

I was able to successfully run the test for C compiler and install RxODE with no error but several warnings. The demo did not run properly and I get the following error.

> library("RxODE", lib = "C:/rlibs")
> demo("demo1","RxODE")

    demo(demo1)
    ---- ~~~~~

Type  <Return>   to start : 

> ode <- "
+    C2 = centr/V2;
+    C3 = peri/V3;
+    d/dt(depot) =-KA*depot;
+    d/dt(centr) = KA*depot - CL*C2 - Q*C2 + Q*C3;
+    d/dt(peri)  =                    Q*C2 - Q*C3;
+    d/dt(eff)  = Kin - Kout*(1-C2/(EC50+C2))*eff;
+ "

> m1 <- RxODE(model = ode, modName = "m1")
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.0/include" -DNDEBUG -IC:/PROGRA~1/R/R-33~1.0/library/RxODE/include    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 -mtune=core2 -c c:/modeling/AS1/m1.d/m1.c -o c:/modeling/AS1/m1.d/m1.o
c:/modeling/AS1/m1.d/m1.c: In function 'RxODE_mod_m1_calc_lhs':
c:/modeling/AS1/m1.d/m1.c:68:2: warning: variable 'EC50' set but not used [-Wunused-but-set-variable]
  EC50;
  ^
c:/modeling/AS1/m1.d/m1.c:67:2: warning: variable 'Kout' set but not used [-Wunused-but-set-variable]
  Kout,
  ^
c:/modeling/AS1/m1.d/m1.c:66:2: warning: variable 'Kin' set but not used [-Wunused-but-set-variable]
  Kin,
  ^
c:/modeling/AS1/m1.d/m1.c:65:2: warning: variable 'eff' set but not used [-Wunused-but-set-variable]
  eff,
  ^
c:/modeling/AS1/m1.d/m1.c:64:2: warning: variable 'Q' set but not used [-Wunused-but-set-variable]
  Q,
  ^
c:/modeling/AS1/m1.d/m1.c:63:2: warning: variable 'CL' set but not used [-Wunused-but-set-variable]
  CL,
  ^
c:/modeling/AS1/m1.d/m1.c:62:2: warning: variable 'KA' set but not used [-Wunused-but-set-variable]
  KA,
  ^
c:/modeling/AS1/m1.d/m1.c:61:2: warning: variable 'depot' set but not used [-Wunused-but-set-variable]
  depot,
  ^
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-33~1.0/include" -DNDEBUG -IC:/PROGRA~1/R/R-33~1.0/library/RxODE/include    -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -std=gnu99 -mtune=core2 -c c:/modeling/AS1/m1.d/call_dvode.c -o c:/modeling/AS1/m1.d/call_dvode.o
c:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o c:/modeling/AS1/m1.d/m1.dll tmp.def c:/modeling/AS1/m1.d/m1.o c:/modeling/AS1/m1.d/call_dvode.o -LC:/PROGRA~1/R/R-33~1.0/library/RxODE/libs/x64 -lodeaux -lRblas -lgfortran -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/PROGRA~1/R/R-33~1.0/bin/x64 -lR
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/libgfortran.a(write.o):(.text$write_float+0xd9): undefined reference to `signbitq'
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/libgfortran.a(write.o):(.text$write_float+0xe8): undefined reference to `finiteq'
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/libgfortran.a(write.o):(.text$write_float+0x2d0): undefined reference to `finiteq'
C:/Rtools/mingw_64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/libgfortran.a(write.o):(.text$write_float+0x77c): undefined reference to `isnanq'
collect2.exe: error: ld returned 1 exit status
Error in cmpMgr$compile() : 
  error loading dll file c:/modeling/AS1/m1.d/m1.dll
wwang-at-github commented 8 years ago

i guess you're using R-3.3.x. this new version of R includes quadmath library in its default linking that RxODE does not support. we're in the process of submitting a new RxODE pkg to cran to address this issue.

I can mail you this new version if you like.

Wenping

varungoelPMX commented 8 years ago

Hi Wenping, That will be great. Please email me the new version. Regards Varun

On Fri, Aug 5, 2016 at 2:21 PM, wwang-at-github notifications@github.com wrote:

i guess you're using R-3.3.x. this new version of R includes quadmath library in its default linking that RxODE does not support. we're in the process of submitting a new RxODE pkg to cran to address this issue.

I can mail you this new version if you like.

Wenping

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hallowkm/RxODE/issues/5#issuecomment-237925058, or mute the thread https://github.com/notifications/unsubscribe-auth/ATsRlFWasg7XwrgLdmF6w-3zTt0__EVaks5qc38XgaJpZM4JdCHa .