[Rd] La_svd compiler error

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Apr 12 18:23:14 CEST 2013


On 12/04/2013 12:13, Duncan Murdoch wrote:
> On 13-04-11 7:41 AM, Antczak, Philipp wrote:
>> Dear All,
>>
>> I have been trying to compile a package for windows that we have
>> written. Since R version 3.0.0 the package doesn't compile any more.
>> (On Linux the package compiles without errors).
>> The error specifically says:
>>
>> gcc -m32 -I"C:/PROGRA~1/R/R-30~1.0/include" -DNDEBUG
>> -I"d:/RCompile/CRANpkg/extralibs64/local/include"     -O3 -Wall
>> -std=gnu99 -mtune=core2 -c galgoDistance.c -o galgoDistance.o
>> gcc -m32 -I"C:/PROGRA~1/R/R-30~1.0/include" -DNDEBUG
>> -I"d:/RCompile/CRANpkg/extralibs64/local/include"     -O3 -Wall
>> -std=gnu99 -mtune=core2 -c galgo_fitnesses.c -o galgo_fitnesses.o
>> gcc -m32 -shared -s -static-libgcc -o galgo.dll tmp.def
>> galgoDistance.o galgo_fitnesses.o -LC:/PROGRA~1/R/R-30~1.0/bin/i386
>> -lRlapack -LC:/PROGRA~1/R/R-30~1.0/bin/i386 -lRblas -lgfortran
>> -Ld:/RCompile/CRANpkg/extralibs64/local/lib/i386
>> -Ld:/RCompile/CRANpkg/extralibs64/local/lib
>> -LC:/PROGRA~1/R/R-30~1.0/bin/i386 -lR
>> galgo_fitnesses.o:galgo_fitnesses.c:(.text+0xda1): undefined reference
>> to `La_svd'
>> collect2: ld returned 1 exit status
>>
>> specifically from the error I understand that error occurs in the link
>> to La_svd which is defined in the first couple of lines in the code:
>>
>> #include <math.h>
>> #include <R.h>
>> #include <Rinternals.h>
>> #include <Rmath.h>
>>
>> SEXP La_svd(SEXP jobu, SEXP jobv, SEXP x, SEXP s, SEXP u, SEXP v, SEXP
>> method);
>>
>
> You reported this as a bug, and were told what to do to try to fix it.
> Did that work?

Unlikely.  La_svd is not an entry point anywhere in R 3.0.0.
The package may compile on Linux, but that allows unsatisfied entry 
points.  See 'Writing R Extensions'.

There was a non-API entry point of that name in 2.15.x, but that's not 
current.

>
> Duncan Murdoch
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list