[R-sig-hpc] Problems installing/building rsprng on CentOS/Rocks 5.2
Ryan Kyle
kyle at u.washington.edu
Tue Sep 22 01:28:07 CEST 2009
Greetings,
I've run into some trouble getting version 0.4 of rsprng installed
(using version 4.0 of the SPRNG library). SPRNG 4.0 installed properly
(and all tests passed), yet I still see some odd error messages at
compile time for rsprng. I see the same errors regardless of whether I
try to install the package within R or build an RPM for it (after
creating a .spec file with R2spec).
Here's the output:
Try to find sprng.h ...
Found in /usr/local/include
Try to find libsprng.a ...
checking for main in -lsprng... yes
Try to find libgmp.a if we need it ...
checking for main in -lgmp... yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DPACKAGE_NAME=\"\"
-DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
-DPACKAGE_BUGREPORT=\"\" -DCHECK_POINTERS=1 -I/usr/local/include
-I/usr/local/include -fpic -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -c sprng_core.c -o
sprng_core.o
In file included from sprng_core.c:11:
/usr/local/include/sprng.h:78: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'Sprng'
/usr/local/include/sprng.h:97: error: expected ';', ',' or ')' before
'=' token
/usr/local/include/sprng.h:98: error: expected ';', ',' or ')' before
'=' token
sprng_core.c: In function 'r_init_sprng':
sprng_core.c:43: warning: implicit declaration of function 'init_rng'
sprng_core.c:43: warning: assignment makes pointer from integer without
a cast
sprng_core.c: In function 'r_pack_sprng':
sprng_core.c:54: warning: implicit declaration of function 'pack_rng'
sprng_core.c: In function 'r_free_sprng':
sprng_core.c:73: warning: implicit declaration of function 'free_rng'
sprng_core.c: In function 'r_unpack_sprng':
sprng_core.c:97: warning: implicit declaration of function 'unpack_rng'
sprng_core.c:97: warning: assignment makes pointer from integer without
a cast
sprng_core.c: In function 'r_spawn_new_sprng':
sprng_core.c:120: warning: assignment makes pointer from integer without
a cast
sprng_core.c: In function 'r_spawn_sprng':
sprng_core.c:138: warning: implicit declaration of function 'spawn_rng'
sprng_core.c: In function 'user_unif_rand':
sprng_core.c:186: warning: implicit declaration of function 'get_rn_dbl'
make: *** [sprng_core.o] Error 1
I am likely missing something trivial which is causing the compile to
fail; so far the errors seem to imply syntactical problems with the
sprng.h file, but that seems improbable in the unmodified base install.
I imagine there may be lines I need to modify somewhere else in order to
get this to succeed. If it helps, I'm using CentOS (more specifically,
the Rocks distribution based upon it) 5.2. The output from uname -a:
2.6.18-128.1.14.el5 #1 SMP Wed Jun 17 06:38:05 EDT 2009 x86_64 x86_64
x86_64 GNU/Linux
Any suggestions greatly appreciated. Thanks!
--Ryan
More information about the R-sig-hpc
mailing list