Displaying 20 results from an estimated 83 matches for "lapack_libs".
2007 May 13
1
Help understanding LAPACK symbol resolution
...he symbol in R routines, rather
than for other nefarious reasons (?? some fundamental incompatibility
with R?)
I guess that most of my package users will have an R built without
special attention to their lapack library, so will start with
something like
mtmorgan at gopher4:~> R CMD config LAPACK_LIBS
-L/home/mtmorgan/arch/x86_64/R-devel/lib -lRlapack
My R is built with --enable-R-shlib, so predictably enough
R CMD INSTALL --clean <pkg>
is 'successful' (zsysv_ is marked as unresolved in the <pkg>.so, but
this doesn't stop compiling and linking). Also predictably enough...
2005 Jan 21
1
How to use a C code in R
hello,
I have a c code which uses clapack. I want to integrate R with this code. It
said that I create a R package including my c code. Then build it with putting
PKG_LIBS = $(LAPACK_LIBS). I want to know the interface LAPACK_LIBS is Fortran
or C? If it is written in Fortran, how can I build them together? If I can
build them together, I still use the function in cLapack or the function in
LAPACK_LIBS? Could you tell me how I can do in detail?
Maggie
2009 Mar 21
2
How to change Rlapack by lapack (for rpy2 installation)?
...hile the installation
of rpy2 went fine on machine1, failed on machine2 with:
python setup.py install
/usr/bin/ld: cannot find -lRlapack
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
I think that the reason is that while on machine1 I get:
R CMD config LAPACK_LIBS
-llapack
on machine2 I get
R CMD config LAPACK_LIBS
-L/usr/lib/R/lib -lRlapack
Could someone tell me (or point me to a relevant link) what should I do
in order to reconfigure R on machine2
so that it has the same liblapack settings than machine1 ?
(I really don't remember having done anythin...
2015 Jun 03
2
Problem with shared library and lapack under windows
..., ptr_ALPHA, X, n, X, n, ptr_BETA,
res, q);
}
In Ubuntu I have no problem in compiling: R CMD SHLIB -llapack myfile.c.
However, under Windows the -llapack flag is not recognised and I am able to
get the code compiled only if I build an R package with the suitable
Makevars file options: PKG_LIBS=$(LAPACK_LIBS) $(FLIBS). Is there a way to
get the .dll without resorting to build a package?
Thanks in advance,
N. Lunardon
--
View this message in context: http://r.789695.n4.nabble.com/Problem-with-shared-library-and-lapack-under-windows-tp4708092.html
Sent from the R devel mailing list archive at Nabb...
2020 Oct 08
1
Installing package fails at "testing if installed package can be loaded from temporary location"
Dirk, thank you a thousand times.
Indeed, src/Makevars was wrong. I modified Makevars so that now looks like
the below and the package now compiled and linked properly.
CXX_STD = CXX11
PKG_LIBS += $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
$(shell ${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()")
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -I../inst/include
Best,
Sam
On Thu, Oct 8, 2020 at 3:39 PM Dirk Eddelbuettel <edd at debian.org> wrote:
>
> Sam,
>
> PS It could of cour...
2005 Oct 04
2
Problem with Matrix package
Hello All,
While trying to install Matrix package following error message came out:
/usr/bin/ld: cannot find -lblas-3
collect2: ld returned 1 exit status
make: *** [Matrix.so] Error 1
ERROR: compilation failed for package 'Matrix'
** Removing '/usr/lib/R/library/Matrix'
** Restoring previous '/usr/lib/R/library/Matrix'
It seems that someting is missing. Have anybody
2009 May 12
2
ubuntu problem with 'r-cran-robustbase' [FWD Agustin Lobo]
...s a "LTS" = long time support version).
apt-get install r-cran-robustbase
works fine, but when trying to load the package,
there's a DLL - dependency on libRlapack.so
which is not fulfilled (and not fulfillable: There's *no*
libRlapack.so).
For me,
$ /usr/bin/R CMD config LAPACK_LIBS
-llapack
and lapack.so is found inside /usr/lib/R/modules/
and liblapack.so from the 'lapack3' Debian/Ubuntu package
is simply in /usr/lib/libpack.so
Could it be that this is caused by an Ubuntu / Debian
mismatch?
Thank you in advance,
Martin Maechler, ETH Zurich
------- start o...
2004 May 31
1
Question about building library and BLAS
...-llapack -lblas
By doing this, the procedure does not use subroutines isamax.f, sgefa.f sgesl.f in BLAS,
as expected. In fact, there are problems to use these subroutines in BLAS, for some reason.
Now what I want is to build an R library. The Makefile is the following:
LIBNAME=car
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
OBJS=isamax.o saxpy.o sscal.o foo1.o ... foo20.o -llapack -lblas
$(LIBNAME)$(SHLIB_EXT): $(OBJS)
$(SHLIB_LD) $(SHLIB_LDFLAGS) -o $@ $(OBJS) $(FLIBS)
clean:
@rm -f *.o *.$(SHLIB_EXT)
realclean: clean
Some compiling outputs are the following:
g77 -mieee...
2004 Sep 08
1
Problems loading Lapack library
...GS="-xO3 -dalign"
F77="f90 -xarch=v8plusa"
FFLAGS="-xO3 -dalign"
MAIN_LDFLAGS="-xarch=v8plusa"
LDFLAGS="-L/opt/SUNWspro/lib -L/usr/local/lib"
CXX="CC -xarch=v8plusa"
CXXFLAGS="-xO3 -dalign"
BLAS_LIBS="-xlic_lib=sunperf"
LAPACK_LIBS="-xlic_lib=sunperf"
The configure and make steps finished apparently normally,
but "make check" failed. I found that R would start, and
do elementary things, but anything involving linear algebra
failed: for example, I tried the "lm-tests.R" file in the
tests direct...
2010 Feb 28
1
ubuntu hardy heron and lme4
...command, R responds that lme4.so was not found.
I then uninstalled lme4 and tried again from cran. When the program tried to
compile, there was a message that -llapack could not be found, so the package
failed to install.
If I execute the following:
york at sasquatch:~$ /usr/bin/R CMD config LAPACK_LIBS
the system responds:
-llapack
I'm not sure where to go from here.
Is -llapack installed but R can't find it, eg, is there a faulty link
somewhere? Has anyone else had this problem and solved it?
Anne
2007 May 29
1
LAPACK and BLAS libraries
...wcastle.edu.au/ and finally
found that email address where I can maybe find some help.
Well my main goal is to get to use the lapack library within my R package
(which can be done using calls from C). But in order to do this I have to
create a file src/Makevars with the following line : PKG_LIBS=$(LAPACK_LIBS)
$(BLAS_LIBS) $(FLIBS)
However when I create this file, my package won't build anymore. Actually
the checking results in the following :
mingw32\bin\ld.exe: cannot find -lg2c
collect2: ld returned 1 exit status
make[3]: *** [PACKAGE.dll] Error 1
make[2]: *** [srcDynlib] Error 2
make[1]: *** [...
2006 Sep 20
1
alpha, portable use
When I build one of my packages with alpha from yesterday I am getting
* checking for portable use of $BLAS_LIBS ... WARNING
apparently missing $(FLIBS) in 'PKG_LIBS=$(LAPACK_LIBS) $(BLAS_LIBS)'
Is this something I should worry about? (Possibly I got this before and
didn't notice.)
Paul Gilbert
====================================================================================
La version fran?aise suit le texte anglais.
----------------------------------------...
2007 May 29
1
LAPACK and BLAS libraries
...wcastle.edu.au/ and finally
found that email address where I can maybe find some help.
Well my main goal is to get to use the lapack library within my R package
(which can be done using calls from C). But in order to do this I have to
create a file src/Makevars with the following line : PKG_LIBS=$(LAPACK_LIBS)
$(BLAS_LIBS) $(FLIBS)
However when I create this file, my package won't build anymore. Actually
the checking results in the following :
mingw32\bin\ld.exe: cannot find -lg2c
collect2: ld returned 1 exit status
make[3]: *** [PACKAGE.dll] Error 1
make[2]: *** [srcDynlib] Error 2
make[1]: *** [...
2007 Jun 14
1
LAPACK Headers
...k.h: No such file or directory
Can someone explain to me how I should include the headers to this
AWESOME wrapper code to the LAPACK libraries? Am I not following the
proper protocol by using these La_* commands in my package source
code?
Note, I also have the following in Makevars
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
TIA!
I initially posted this question on the general list, but I didn't get
any responses.
2014 Sep 26
1
Why is my R package still compiling with the O2 flag?
...igen):
PKG_CXXFLAGS = -I../inst/include -DEIGEN_DONT_PARALLELIZE
$(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"`
$(SHLIB_OPENMP_CXXFLAGS)
CXX_STD = CXX11
and that of rrcov (which I m using for illustration's sake):
PKG_LIBS=$(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
2011 Oct 28
3
R CMD check and error in an \Sexpr in an Rd file
Hi,
another Rd related issue I encountered is that if an error occurs in an
\Sexpr in an Rd file, then on get the following error:
* checking for portable compilation flags in Makevars ... OK
* checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
* checking examples ... ERROR
Error in paste(before, x, after, sep = "") : object 'exfile' not found
Execution halted
To reproduce, put a call like this in an Rd section:
\Sexpr[results=verbatim, stage=render]{x <- 1; stop("sexpr error")}
The strange thing...
2006 Apr 03
1
Integration of C and Fortran
...yright 2005,
Version 2.2.1 (2005-12-20 r36812)
ISBN 3-900051-07-0
On a mac 10.4.5
I am having trouble with my package.
The trouble is the following:
In my package I have integrated three files in my src folder.
1- simplematch.C a .C file
2- ordering.f a fortran file
3- Makevars : PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
I am not sure if that last file is really useful!?
When I use the R CMD SHLIB command on both these
source code files, the resulting compiled .so
files when loads fine with the dyn.load function.
At last when I use either the
.C("simplematch",...) and
.Fortran...
2012 Feb 01
1
Makefile to compile .so in src (was: Re: automated libR location)
...e
document "R Extensions". (English is my second language.)
A small example compiling a single .so would help greatly I think. My
current Makefile
that I put in src of a package skeleton looks like this to create the
.so on Linux:
all : QUIC.so
OBJECTS = QUIC.o QUIC.so
PKG_LIBS = @LAPACK_LIBS@ @BLAS_LIBS@
QUIC.o : QUIC.cpp
g++ -O3 -DNDEBUG -Wall -fpic -pthread -shared
-fno-omit-frame-pointer -ansi -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -c
QUIC.cpp -o QUIC.o
QUIC.so : QUIC.o
g++ -std=gnu99 -shared -lm -llapack -lblas -L/usr/lib/R/lib -lR -O3
QUIC.o -o QUIC.so
This actually buil...
2004 Jun 09
2
Building package on Windows: No rule to make target '-llapack'
Dear all,
I have a problem to build a package on Windows XP while there is no problem on Linux. The Makefile is something like:
###########
LIBNAME=cts
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
OBJS=file1.o ... file20.o -llapack -lblas
$(LIBNAME)$(SHLIB_EXT): $(OBJS)
$(SHLIB_LD) $(SHLIB_LDFLAGS) -o $@ $(OBJS) $(FLIBS)
clean:
@rm -f *.o *.$(SHLIB_EXT)
realclean: clean
#############
To build the package on Windows XP, I have followed the instructi...
2009 May 12
0
[Fwd: Re: Problem at instaling robustbase (Rlapack)]
...-L/usr/lib/R/lib -lRlapack -lblas -L/usr/lib/gcc/i486-linux-gnu/4.2 -lgfortran -lm -L/usr/lib/gcc/i486-linux-gnu/4.2 -lgfortran -lm -L/usr/lib/R/lib -lR
> /usr/bin/ld: cannot find -lRlapack
> collect2: ld returned 1 exit status
>
> Nevertheless, I do have Rlapack:
> ~$ R CMD config LAPACK_LIBS
> -L/usr/lib/R/lib -lRlapack
>
----Message 2------
-------- Original Message --------
Subject: Re: Problem at instaling robustbase (Rlapack)
Date: Mon, 11 May 2009 19:06:34 +0200
From: Agustin Lobo <Agustin.Lobo at ija.csic.es>
Reply-To: Agustin.Lobo at ija.csic.es
To: Martin Maechler...