I haven't been able to build yesterday's R-devel (or, as a test, R-devel_2005-03-11) on Windows XP. The error message I'm getting is to do with 'arithmetic.c', as shown below. Current R-patched seems to build fine, and I've built previous R-devels from source fairly often in the past-- though I have no understanding whatsoever of what's going on. FWIW the only changes I made to MkRules are (i) WINHELP=NO and (ii) TCL_HOME=C:/R/Tcl, which are the same ones I always make. Any help appreciated! Mark C:\R\R-devel\src\gnuwin32> make << some OK bits of output, to help show where the problem is>> ... making vfonts.d from vfonts.c gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H -DR_DLL_BUILD -c CConverters.c -o CConverters.o gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H -DR_DLL_BUILD -c CommandLineArgs.c -o CommandLineArg s.o gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H -DR_DLL_BUILD -c Rdynload.c -o Rdynload.o gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H -DR_DLL_BUILD -c Renviron.c -o Renviron.o gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H -DR_DLL_BUILD -c RNG.c -o RNG.o gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H -DR_DLL_BUILD -c apply.c -o apply.o gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H -DR_DLL_BUILD -c arithmetic.c -o arithmetic.o arithmetic.c: In function `do_math1': arithmetic.c:887: `acosh' undeclared (first use in this function) arithmetic.c:887: (Each undeclared identifier is reported only once arithmetic.c:887: for each function it appears in.) arithmetic.c:888: `asinh' undeclared (first use in this function) arithmetic.c:889: `atanh' undeclared (first use in this function) make[4]: *** [arithmetic.o] Error 1 make[3]: *** [rlibs] Error 2 make[2]: *** [../../bin/R.dll] Error 2 make[1]: *** [rbuild] Error 2 make: *** [all] Error 2 Mark Bravington CSIRO Mathematical & Information Sciences Marine Laboratory Castray Esplanade Hobart 7001 TAS ph (+61) 3 6232 5118 fax (+61) 3 6232 5012 mob (+61) 438 315 623
On Tue, 22 Mar 2005 10:09:30 +1100, <Mark.Bravington@csiro.au> wrote :>I haven't been able to build yesterday's R-devel (or, as a test, >R-devel_2005-03-11) on Windows XP. The error message I'm getting is to >do with 'arithmetic.c', as shown below. > >Current R-patched seems to build fine, and I've built previous R-devels >from source fairly often in the past-- though I have no understanding >whatsoever of what's going on. FWIW the only changes I made to MkRules >are (i) WINHELP=NO and (ii) TCL_HOME=C:/R/Tcl, which are the same ones I >always make. > >Any help appreciated! > >Mark > >C:\R\R-devel\src\gnuwin32> make ><< some OK bits of output, to help show where the problem is>> >... >making vfonts.d from vfonts.c >gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H >-DR_DLL_BUILD -c CConverters.c -o CConverters.o >gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H >-DR_DLL_BUILD -c CommandLineArgs.c -o CommandLineArg >s.o >gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H >-DR_DLL_BUILD -c Rdynload.c -o Rdynload.o >gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H >-DR_DLL_BUILD -c Renviron.c -o Renviron.o >gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H >-DR_DLL_BUILD -c RNG.c -o RNG.o >gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H >-DR_DLL_BUILD -c apply.c -o apply.o >gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H >-DR_DLL_BUILD -c arithmetic.c -o arithmetic.o >arithmetic.c: In function `do_math1': >arithmetic.c:887: `acosh' undeclared (first use in this function) >arithmetic.c:887: (Each undeclared identifier is reported only once >arithmetic.c:887: for each function it appears in.) >arithmetic.c:888: `asinh' undeclared (first use in this function) >arithmetic.c:889: `atanh' undeclared (first use in this function) >make[4]: *** [arithmetic.o] Error 1 >make[3]: *** [rlibs] Error 2 >make[2]: *** [../../bin/R.dll] Error 2 >make[1]: *** [rbuild] Error 2 >make: *** [all] Error 2My guess would be that you are using bad headers, or perhaps an out of date compiler. I just recompiled today's arithmetic.c with no error, using $ gcc --version gcc.exe (GCC) 3.4.2 (mingw-special) Copyright (C) 2004 Free Software Foundation, Inc. Duncan Murdoch
[Mark Bravington]> >I haven't been able to build yesterday's R-devel (or, as a test,> >R-devel_2005-03-11) on Windows XP. The error message I'm > getting is to > >do with 'arithmetic.c', as shown below.[Duncan Murdoch]> My guess would be that you are using bad headers, or perhaps> an out of date compiler. I just recompiled today's > arithmetic.c with no error, using > > $ gcc --version > gcc.exe (GCC) 3.4.2 (mingw-special) > Copyright (C) 2004 Free Software Foundation, Inc.Thanks (but please read on ..!) (i) My original problem occurred with gcc version 3.2. I downloaded MinGW-3.1.0-1.exe (as named in the Windows INSTALL file) and this gave me gcc version 3.2.3 *BUT* this gave me exactly the same problem. (ii) I then downloaded MinGW-3.2.0-rc-3.exe (giving me gcc 3.4.2) and this did get me past arithmetic.c. [So presumably my headers are OK.] But this isn't yet a full release of gcc, is it?-- so if this particular gcc version is required, perhaps some mention is needed in the Windows INSTALL and in the release notes. (iii) In any case, there was still a crash later on with 3.4.2. This looks unrelated but I am equally at a loss: windres -i dllversion.rc -o dllversion.o gcc --shared -s -o vfonts.dll vfonts.def g_alab_her.o g_cntrlify.o g_fontdb.o g_her_glyph.o dllversion.o -L../../gnuw in32 -lR mkdir -p ../../../modules cp vfonts.dll ../../../modules/vfonts.dll cp unicode/iconv.dll ../../modules/ cp: cannot stat `unicode/iconv.dll': No such file or directory make[2]: *** [rmodules] Error 1 make[1]: *** [rbuild] Error 2 make: *** [all] Error 2 Mark> -----Original Message----- > From: Duncan Murdoch [mailto:murdoch@stats.uwo.ca] > Sent: Tuesday, 22 March 2005 11:27 AM > To: Bravington, Mark (CMIS, Hobart) > Cc: r-devel@stat.math.ethz.ch > Subject: Re: [Rd] trouble building r-devel > > On Tue, 22 Mar 2005 10:09:30 +1100, <Mark.Bravington@csiro.au> wrote : > > >I haven't been able to build yesterday's R-devel (or, as a test, > >R-devel_2005-03-11) on Windows XP. The error message I'm > getting is to > >do with 'arithmetic.c', as shown below. > > > >Current R-patched seems to build fine, and I've built > previous R-devels > >from source fairly often in the past-- though I have no > understanding > >whatsoever of what's going on. FWIW the only changes I made > to MkRules > >are (i) WINHELP=NO and (ii) TCL_HOME=C:/R/Tcl, which are the > same ones > >I always make. > > > >Any help appreciated! > > > >Mark > > > >C:\R\R-devel\src\gnuwin32> make > ><< some OK bits of output, to help show where the problem is>> ... > >making vfonts.d from vfonts.c > >gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H > >-DR_DLL_BUILD -c CConverters.c -o CConverters.o gcc -O2 -Wall > >-pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H > -DR_DLL_BUILD -c > >CommandLineArgs.c -o CommandLineArg s.o gcc -O2 -Wall -pedantic > >-DLEA_MALLOC -I../include -DHAVE_CONFIG_H -DR_DLL_BUILD -c > Rdynload.c > >-o Rdynload.o gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include > >-DHAVE_CONFIG_H -DR_DLL_BUILD -c Renviron.c -o Renviron.o gcc -O2 > >-Wall -pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H > -DR_DLL_BUILD > >-c RNG.c -o RNG.o gcc -O2 -Wall -pedantic -DLEA_MALLOC -I../include > >-DHAVE_CONFIG_H -DR_DLL_BUILD -c apply.c -o apply.o gcc -O2 -Wall > >-pedantic -DLEA_MALLOC -I../include -DHAVE_CONFIG_H > -DR_DLL_BUILD -c > >arithmetic.c -o arithmetic.o > >arithmetic.c: In function `do_math1': > >arithmetic.c:887: `acosh' undeclared (first use in this function) > >arithmetic.c:887: (Each undeclared identifier is reported only once > >arithmetic.c:887: for each function it appears in.) > >arithmetic.c:888: `asinh' undeclared (first use in this function) > >arithmetic.c:889: `atanh' undeclared (first use in this function) > >make[4]: *** [arithmetic.o] Error 1 > >make[3]: *** [rlibs] Error 2 > >make[2]: *** [../../bin/R.dll] Error 2 > >make[1]: *** [rbuild] Error 2 > >make: *** [all] Error 2 > > My guess would be that you are using bad headers, or perhaps > an out of date compiler. I just recompiled today's > arithmetic.c with no error, using > > $ gcc --version > gcc.exe (GCC) 3.4.2 (mingw-special) > Copyright (C) 2004 Free Software Foundation, Inc. > > Duncan Murdoch > >
Thanks Seth (and Duncan)-- the murdoch-sutherland page seems to fix everything. The slimmed-down INSTALL file in R-devel src gnuwin32 doesn't refer to the page-- it might be good to add a reference. Mark Mark Bravington CSIRO Mathematical & Information Sciences Marine Laboratory Castray Esplanade Hobart 7001 TAS ph (+61) 3 6232 5118 fax (+61) 3 6232 5012 mob (+61) 438 315 623> -----Original Message----- > From: r-devel-bounces@stat.math.ethz.ch > [mailto:r-devel-bounces@stat.math.ethz.ch] On Behalf Of Seth Falcon > Sent: Tuesday, 22 March 2005 3:32 PM > To: r-devel@stat.math.ethz.ch > Subject: Re: [Rd] trouble building r-devel > > <Mark.Bravington@csiro.au> writes: > > cp unicode/iconv.dll ../../modules/ > > cp: cannot stat `unicode/iconv.dll': No such file or directory > > make[2]: *** [rmodules] Error 1 > > make[1]: *** [rbuild] Error 2 > > make: *** [all] Error 2 > > See the section Unicode support here: > http://www.murdoch-sutherland.com/Rtools/ > > Basically, you just need to download and then copy the > iconv.dll to the right spot and you should be on your way. > > + seth > > ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >
<Mark.Bravington@csiro.au> writes:> I haven't been able to build yesterday's R-devel (or, as a test, > R-devel_2005-03-11) on Windows XP. The error message I'm getting is to > do with 'arithmetic.c', as shown below.Apropos: The release process for 2.1.0 has now started and we are putting up alpha tarballs in (e.g.) http://cran.r-project.org/src/base-prerelease/R-alpha_2005-03-22.tar.gz These tarballs are made using the same procedure as we intend to use for the final release. It would be good if you'd try building from these sources (rather than the daily snapshots) so that we may catch any packaging errors in time. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907