Zhu Wang
2004-Jun-09 13:49 UTC
[R] 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 instructions to install tools/software required and it seems the 'make' worked fine, except for the error message: make[3]: No rule to make target 'llapack', needed by 'cts.a'. stop. Now I think maybe two problems: one is that maybe I do not have Lapack and Blas installed on Windows XP and second is that I do not set up a correct file, something like 'configure'. Maybe there are more problems. I have read some files in \src\gnuwin32, but I did not find what I needed. Thanks for any advice. Zhu Wang Statistical Science Department Southern Methodist University
A.J. Rossini
2004-Jun-09 18:55 UTC
[R] Building package on Windows: No rule to make target '-llapack'
Zhu Wang <zhuw at mail.smu.edu> writes:> Now I think maybe two problems: one is that maybe I do not have Lapack and Blas installedI think this definitely needs to be solved. -- rossini at u.washington.edu http://www.analytics.washington.edu/ Biomedical and Health Informatics University of Washington Biostatistics, SCHARP/HVTN Fred Hutchinson Cancer Research Center UW (Tu/Th/F): 206-616-7630 FAX=206-543-3461 | Voicemail is unreliable FHCRC (M/W): 206-667-7025 FAX=206-667-4812 | use Email CONFIDENTIALITY NOTICE: This e-mail message and any attachme...{{dropped}}
Prof Brian Ripley
2004-Jun-10 06:40 UTC
[R] Building package on Windows: No rule to make target '-llapack'
On Wed, 9 Jun 2004, Zhu Wang wrote:> I have a problem to build a package on Windows XP while there is no > problem on Linux. The Makefile is something like:There would be a problem on Linux, if that Makefile were used. I suspect it is not used.> ########### > LIBNAME=cts > > PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)(You should not need $(FLIBS) here.)> OBJS=file1.o ... file20.o -llapack -lblasThe last two are not objects, and -llapack refers to something like liblapack.a. I don't see how this can work anywhere. On the other hand, you have lapack and blas selected in PKG_LIBS, but you are not using that macro.> $(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 instructions to > install tools/software required and it seems the 'make' worked fine, > except for the error message: > > make[3]: No rule to make target 'llapack', needed by 'cts.a'. stop. > > Now I think maybe two problems: one is that maybe I do not have Lapack and Blas installed > on Windows XP and second is that I do not set up a correct file, something like 'configure'. > Maybe there are more problems. I have read some files in \src\gnuwin32, but I did not find > what I needed.What are you actually trying to do? It is not normal for a package to have a Makefile in its src directory, which is what I guess (but only guess) you have presented. All that is normally needed is a Makevars file. Take a look at e.g. that in mclust. Is this your package or someone else's (in which case why are you not asking the author)? Either you or that author needs to read `Writing R Extensions' and look at some of the many examples in CRAN packages. -- 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
Apparently Analagous Threads
- Question about building library and BLAS
- Problem with shared library and lapack under windows
- How to change Rlapack by lapack (for rpy2 installation)?
- problem building R 2.9.1 from source on RHEL 4 (x86_64)
- Doubts on incremental backup and command repetition