[Rd] about R CMD check

xt_wang at cse.concordia.ca xt_wang at cse.concordia.ca
Tue Jan 25 00:15:41 CET 2005


hello,

I create a package which includes C code and Lapack. But when I run " R CMD
check ". an error message, "/usr/bin/ld: cannot find -lfrtbegin " occurs. could
you tell me what is the problem?

the detailed message is as follows:
[credsim at confsys ~/src]$ R CMD check var
* checking for working latex ... OK
* using log directory '/home/credsim/src/var.Rcheck'
* checking for file 'var/DESCRIPTION' ... OK
* checking if this is a source package ... OK

* Installing *source* package 'WXT' ...
** libs
gcc -I/usr/lib/R/include  -I/usr/local/include -D__NO_MATH_INLINES -mieee-fp 
-fPIC  -O2 -g -march=i386 -mcpu=i686 -c 1221.c -o 1221.o
1221.c: In function `Matrix_A_12':
1221.c:773: warning: passing arg 3 of `dpotrf_' from incompatible pointer type
1221.c:774: warning: passing arg 4 of `dpotrs_' from incompatible pointer type
1221.c: In function `Matrix_A_1':
1221.c:1037: warning: passing arg 3 of `dpotrf_' from incompatible pointer type
1221.c:1038: warning: passing arg 4 of `dpotrs_' from incompatible pointer type
1221.c: In function `Matrix_A_2':
1221.c:1289: warning: passing arg 3 of `dpotrf_' from incompatible pointer type
1221.c:1290: warning: passing arg 4 of `dpotrs_' from incompatible pointer type
gcc -shared -L/usr/local/lib -o WXT.so 1221.o -L/usr/lib/R/bin -lRlapack 
-L/usr/local/lib -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.2
-L/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../.. -lfrtbegin -lg2c -lm
-lgcc_s
/usr/bin/ld: cannot find -lfrtbegin
collect2: ld returned 1 exit status
make: *** [WXT.so] Error 1
ERROR: compilation failed for package 'WXT'
** Removing '/home/credsim/src/var.Rcheck/WXT'
 ERROR
Installation failed.



More information about the R-devel mailing list