[Rd] R from SVN fails to build on win32

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Feb 6 20:38:20 CET 2007


On Tue, 6 Feb 2007, Prof Brian Ripley wrote:

> You have not told us which version of R you are trying to build.
> But this looks like a problem with your bintools, as nothing has changed in 
> that line for a long time.
>
> I am using binutils-2.17.50-20060824.  There was an update at the weekend, 
> and I suspect that is broken because it says
>
>    In addition it patches windres to allow use of spaces in filenames,
>
> Does altering the Makefile to have -I../include work?

I am also having no problems with

[d:/R/svn/trunk/src/gnuwin32]% windres --version
GNU windres 2.17.50 20070129

>
>
> On Tue, 6 Feb 2007, James MacDonald wrote:
>
>> I get the following error when building R from the subversion server as
>> well as the latest tarball. I am on Windows XP, and I recently updated
>> my MinGW installation. It's quite possible I am doing something wrong,
>> but I am not sure what that might be.
>> 
>> making console.d from console.c
>> making dataentry.d from dataentry.c
>> making dynload.d from dynload.c
>> making edit.d from edit.c
>> making editor.d from editor.c
>> making embeddedR.d from embeddedR.c
>> making extra.d from extra.c
>> making opt.d from opt.c
>> making pager.d from pager.c
>> making preferences.d from preferences.c
>> making psignal.d from psignal.c
>> making rhome.d from rhome.c
>> making rui.d from rui.c
>> making run.d from run.c
>> making shext.d from shext.c
>> making sys-win32.d from sys-win32.c
>> making system.d from system.c
>> making dos_glob.d from dos_glob.c
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c console.c -o console.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c dataentry.c -o dataentry.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c dynload.c -o dynload.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c edit.c -o edit.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c editor.c -o editor.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c embeddedR.c -o embeddedR.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD -DLEA_MALLOC -c extra.c -o extra.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c opt.c -o opt.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c pager.c -o pager.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c preferences.c -o preferences.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c psignal.c -o psignal.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c rhome.c -o rhome.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c rui.c -o rui.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c run.c -o run.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c shext.c -o shext.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c sys-win32.c -o sys-win32.o
>> sys-win32.c: In function `do_system': sys-win32.c:183: warning: `hERR'
>> might be used uninitialized in this function gcc  -O3 -Wall -pedantic
>> -std=gnu99 -I../include -I. -DHAVE_CONFIG_H -DR_DLL_BUILD  -c system.c
>> -o system.o
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c dos_glob.c -o dos_glob.o
>> gcc     -c -o e_pow.o e_pow.S
>> gcc  -O3 -Wall -pedantic -std=gnu99 -I../include -I. -DHAVE_CONFIG_H
>> -DR_DLL_BUILD  -c malloc.c -o malloc.o
>> windres  -I ../include -i dllversion.rc -o dllversion.o
>> c:\MinGW\bin\windres.exe: unknown format type `../include'
>> c:\MinGW\bin\windres.exe: supported formats: rc res coff make[3]: ***
>> [dllversion.o] Error 1
>> make[2]: *** [../../bin/R.dll] Error 2
>> make[1]: *** [rbuild] Error 2
>> make: *** [all] Error 2
>> 
>> 
>> Best,
>> 
>> Jim
>> 
>> 
>> 
>> James W. MacDonald, M.S.
>> Biostatistician
>> Affymetrix and cDNA Microarray Core
>> University of Michigan Cancer Center
>> 1500 E. Medical Center Drive
>> 7410 CCGC
>> Ann Arbor MI 48109
>> 734-647-5623
>> 
>> 
>> **********************************************************
>> Electronic Mail is not secure, may not be read every day, and should not be 
>> used for urgent or sensitive issues.
>> 
>> ______________________________________________
>> 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