From ripley at stats.ox.ac.uk  Mon Aug 13 07:59:01 2012
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon, 13 Aug 2012 06:59:01 +0100
Subject: [Rd] trouble compiling R-patched from source on Windows 64 bit
In-Reply-To: <586A4828D7AAA04CA9B258C50A28DA200BF595BF@BALI.uhd.campus>
References: <586A4828D7AAA04CA9B258C50A28DA200BF595BF@BALI.uhd.campus>
Message-ID: <502897A5.5010206@stats.ox.ac.uk>

On 12/08/2012 19:45, Hodgess, Erin wrote:
> Hello!
>
> I'm trying to install R-patched from source on a Windows 64 bit laptop.

See the comments:
skipping incompatible ./libRblas.dll.a when searching for -lRblas

You are using the wrong compilers: 4.5.2 is not for recent R.

> I have installed R-tools 2.16 and set up the jpeg, tiff, and libpng files

Check your path and the settings in MkRules.local.

> Here is the output:
>
> c:\R64\R-patched\src\gnuwin32>make all recommended
> make all recommended
> make[1]: `MkRules' is up to date.
> make[4]: Nothing to be done for `svnonly'.
> installing C headers
> make[2]: Nothing to be done for `all'.
> make[2]: `libRblas.dll.a' is up to date.
> make[5]: Nothing to be done for `svnonly'.
> installing C headers
> make --no-print-directory -C ../extra/intl CFLAGS='-O3 -Wall -pedantic -mtune=core2' -f Makefile.win
> make --no-print-directory -C ../appl CFLAGS='-O3 -Wall -pedantic -mtune=core2' FFLAGS='-O3 -mtune=core2' -f Makefile.win
> make --no-print-directory -C ../nmath CFLAGS='-O3 -Wall -pedantic -mtune=core2' FFLAGS='-O3 -mtune=core2' -f Makefile.win
> make --no-print-directory -C ../main CFLAGS='-O3 -Wall -pedantic -mtune=core2' FFLAGS='-O3 -mtune=core2' malloc-DEFS='-DLEA_MALLOC' -f Makefile.win
> make --no-print-directory -C ./getline CFLAGS='-O3 -Wall -pedantic -mtune=core2'
> make[4]: `gl.a' is up to date.
> make -f Makefile.win makeMakedeps
> make -f Makefile.win libpcre.a
> make[5]: `libpcre.a' is up to date.
> make[4]: Nothing to be done for `all'.
> make -f Makefile.win makeMakedeps
> make -f Makefile.win libtre.a
> make[5]: `libtre.a' is up to date.
> make[4]: Nothing to be done for `all'.
> make[5]: `stamp' is up to date.
> make[5]: `liblzma.a' is up to date.
> x86_64-w64-mingw32-gcc -std=gnu99  -shared -s -mwindows -o R.dll R.def console.o dataentry.o dynload.o edit.o editor.o embeddedR.o extra.o opt.o pager.o preferences.o psignal.o rhome.o rt_complete.o rui.o run.o shext.o sys-win32.o system.o dos_wglob.o malloc.o ../main/libmain.a ../appl/libappl.a ../nmath/libnmath.a getline/gl.a ../extra/xdr/libxdr.a ../extra/pcre/libpcre.a ../extra/bzip2/libbz2.a ../extra/intl/libintl.a ../extra/trio/libtrio.a ../extra/tzone/libtz.a ../extra/tre/libtre.a ../extra/xz/liblzma.a dllversion.o  -L. -lgfortran -lRblas -L../../bin/x64 -lRzlib -lRgraphapp -lRiconv -lcomctl32 -lversion
> c:/rtools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ./libRblas.dll.a when searching for -lRblas
> c:/rtools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible ./libRblas.dll.a when searching for -lRblas
> c:/rtools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lRblas
> collect2: ld returned 1 exit status
> make[3]: *** [R.dll] Error 1
> make[2]: *** [../../bin/x64/R.dll] Error 2
> make[1]: *** [rbuild] Error 2
> make: *** [all] Error 2
>
> c:\R64\R-patched\src\gnuwin32>
>
> Does this make sense, please?
>
> Thanks in advance for any help.
>
> Sincerely,
> Erin
>
>
>
> Erin M. Hodgess, PhD
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: hodgesse at uhd.edu
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> 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



[Rd] trouble compiling R-patched from source on Windows 64 bit
Prof Brian Ripley