Hi folks: I'm trying to compile R-2.0.0 on my Alpha (164SX; alphapca56-unknown-linux-gnu) running RedHat Linux 7.2 with gcc3.4.1. Here is where the compile terminates: .... .... building package 'tcltk' mkdir -p -- ../../../library/tcltk/R mkdir -p -- ../../../library/tcltk/demo mkdir -p -- ../../../library/tcltk/exec mkdir -p -- ../../../library/tcltk/man make[4]: Entering directory `/home1/rajiv/software/src-7.2/R-2.0.0/src/library/t cltk/src' making init.d from init.c making tcltk.d from tcltk.c make[5]: Entering directory `/home1/rajiv/software/src-7.2/R-2.0.0/src/library/t cltk/src' make[5]: `Makedeps' is up to date. make[5]: Leaving directory `/home1/rajiv/software/src-7.2/R-2.0.0/src/library/tc ltk/src' make[5]: Entering directory `/home1/rajiv/software/src-7.2/R-2.0.0/src/library/t cltk/src' gcc -I../../../../include -I/usr/local/tcl8.4.7/include -I/usr/local/tk8.4.7/inc lude -I/usr/X11R6/include -I/usr/local/include -mieee-with-inexact -fPIC -g -O 2 -c init.c -o init.o gcc -I../../../../include -I/usr/local/tcl8.4.7/include -I/usr/local/tk8.4.7/inc lude -I/usr/X11R6/include -I/usr/local/include -mieee-with-inexact -fPIC -g -O 2 -c tcltk.c -o tcltk.o gcc -shared -L/usr/local/lib -o tcltk.so init.o tcltk.o -L/usr/local/tcl8.4.7/l ib -ltcl8.4 -L/usr/local/tk8.4.7/lib -ltk8.4 -L/usr/X11R6/lib -lX11 -ldl -lieee -lm -lm -L../../../../lib -lR mkdir -p -- ../../../../library/tcltk/libs make[5]: Leaving directory `/home1/rajiv/software/src-7.2/R-2.0.0/src/library/tc ltk/src' make[4]: Leaving directory `/home1/rajiv/software/src-7.2/R-2.0.0/src/library/tc ltk/src' make[3]: Leaving directory `/home1/rajiv/software/src-7.2/R-2.0.0/src/library/tc ltk' Error in "names<-.default"(`*tmp*`, value = c("R", "Platform", "Date", : names attribute [4] must be the same length as the vector [3] Execution halted make[2]: *** [R] Error 1 make[2]: Leaving directory `/home1/rajiv/software/src-7.2/R-2.0.0/src/library' make[1]: *** [R] Error 1 make[1]: Leaving directory `/home1/rajiv/software/src-7.2/R-2.0.0/src' make: *** [R] Error 1 Does this indicate a problem with R, or something in my system installation? A search on R help list archives did not turn up this particular error. Any help is much appreciate. Rajiv -------- Rajiv Prasad Scientist, Hydrology Group Pacific Northwest National Laboratory, P.O. Box 999, MSIN K9-33 Richland, WA 99352 Voice: (509) 375-2096 Fax: (509) 372-6089 Email: rajiv.prasad@pnl.gov [[alternative HTML version deleted]]
"Prasad, Rajiv" <Rajiv.Prasad at pnl.gov> writes:> Error in "names<-.default"(`*tmp*`, value = c("R", "Platform", "Date", > : > names attribute [4] must be the same length as the vector [3] > Execution halted > make[2]: *** [R] Error 1 > make[2]: Leaving directory > `/home1/rajiv/software/src-7.2/R-2.0.0/src/library' > make[1]: *** [R] Error 1 > make[1]: Leaving directory `/home1/rajiv/software/src-7.2/R-2.0.0/src' > make: *** [R] Error 1 > > Does this indicate a problem with R, or something in my system > installation? A search on R help list archives did not turn up this > particular error.Specific to your architecture at least (not too many Alphas around, but this works elsewhere). It's a pretty odd bug: It would seem to come from inside .split_description (tools/R/admin.R) where it would indicate that the Built field has less than three "; " separators, but the paste construct in .install_package_description that creates the field does seem to put them in. One conjecture is that a newline sneaked in somehow... I'd first look for malformed DESCRIPTION files in your build directory, then maybe insert some debugging code into .split_description (e.g. print(sys.status());print(Built) immediately before the names<- bit). Are you doing this in a clean directory, btw, or might you possibly be picking up bits of a previous build? -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Thanks for the reply, Peter. The build is done in a clean directory, and --without-tcltk does not help. I thought it is much better to track this down and fix it anyway. Agreed there aren't too many Alphas out there anymore, but I plan to keep mine going for a while -- sweet machine. :-) So, I looked into the DESCRIPTION file for package tcltk, and here it is: [rajiv at localhost tcltk]$ more DESCRIPTION Package: tcltk Version: 2.0.0 Priority: base Title: Tcl/Tk Interface Author: R Development Core Team Maintainer: R Core Team <R-core at r-project.org> Description: Interface and language bindings to Tcl/Tk GUI elements License: GPL Version 2 or later. Built: R 2.0.0; alphapca56-unknown-linux-gnu; 2004-10-15 17:25:37; unix And for comparison, here is DESCRIPTION from base: [rajiv at localhost base]$ more DESCRIPTION Package: base Version: 2.0.0 Priority: base Title: The R Base Package Author: R Development Core Team and contributors worldwide Maintainer: R Core Team <R-core at r-project.org> Description: Base R functions License: GPL Version 2 or later. Built: R 2.0.0; ; Fri Oct 15 17:20:28 PDT 2004; unix So your suspicion regarding that newline seems correct. Trouble is, the newline appears in DESCRIPTION files for grid, splines, tools, methods, and stats, too. I noticed that grid, splines, methods, and stats built fine, even though their DESCRIPTION files had the newlines in the Built field. I'm going to manually edit the DESCRIPTION files and remove the newlines and continue with make from the point where it stopped previously. We'll see if that fixes it. Will edit .split_description to include the print statements you mentioned. Thanks again. Rajiv> -----Original Message----- > From: Peter Dalgaard [mailto:p.dalgaard at biostat.ku.dk] > Sent: Saturday, October 16, 2004 1:33 AM > To: Prasad, Rajiv > Cc: r-help at stat.math.ethz.ch > Subject: Re: [R] Problem Compiling R-2.0.0 on Linux Alpha > > > "Prasad, Rajiv" <Rajiv.Prasad at pnl.gov> writes: > > > Error in "names<-.default"(`*tmp*`, value = c("R", > "Platform", "Date", > > : > > names attribute [4] must be the same length as the > vector [3] > > Execution halted > > make[2]: *** [R] Error 1 > > make[2]: Leaving directory > > `/home1/rajiv/software/src-7.2/R-2.0.0/src/library' > > make[1]: *** [R] Error 1 > > make[1]: Leaving directory > `/home1/rajiv/software/src-7.2/R-2.0.0/src' > > make: *** [R] Error 1 > > > > Does this indicate a problem with R, or something in my system > > installation? A search on R help list archives did not > turn up this > > particular error. > > Specific to your architecture at least (not too many Alphas > around, but this works elsewhere). It's a pretty odd bug: It > would seem to come from inside .split_description > (tools/R/admin.R) where it would indicate that the Built > field has less than three "; " separators, but the paste > construct in .install_package_description that creates the > field does seem to put them in. One conjecture is that a > newline sneaked in somehow... > > I'd first look for malformed DESCRIPTION files in your build > directory, then maybe insert some debugging code into > .split_description (e.g. print(sys.status());print(Built) > immediately before the names<- bit). > > Are you doing this in a clean directory, btw, or might you > possibly be picking up bits of a previous build? > > -- > O__ ---- Peter Dalgaard Blegdamsvej 3 > c/ /'_ --- Dept. of Biostatistics 2200 Cph. N > (*) \(*) -- University of Copenhagen Denmark Ph: > (+45) 35327918 > ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: > (+45) 35327907 >
Peter Dalgaard
2004-Oct-17 13:56 UTC
[Rd] Re: [R] Problem Compiling R-2.0.0 on Linux Alpha
"Prasad, Rajiv" <Rajiv.Prasad@pnl.gov> writes:> Thanks for the reply, Peter. > > The build is done in a clean directory, and --without-tcltk does not > help. I thought it is much better to track this down and fix it anyway. > > Agreed there aren't too many Alphas out there anymore, but I plan to > keep mine going for a while -- sweet machine. :-) > > So, I looked into the DESCRIPTION file for package tcltk, and here it > is: > > [rajiv@localhost tcltk]$ more DESCRIPTION > Package: tcltk > Version: 2.0.0 > Priority: base > Title: Tcl/Tk Interface > Author: R Development Core Team > Maintainer: R Core Team <R-core@r-project.org> > Description: Interface and language bindings to Tcl/Tk GUI elements > License: GPL Version 2 or later. > Built: R 2.0.0; alphapca56-unknown-linux-gnu; 2004-10-15 17:25:37; > unix...> I'm going to manually edit the DESCRIPTION files and remove the newlines > and continue with make from the point where it stopped previously. > We'll see if that fixes it. Will edit .split_description to include the > print statements you mentioned.This would seem to be a bug, somewhere...> db[,"Built"] <- "R 2.0.0; alphapca56-unknown-linux-gnu; 2004-10-15 17:25:37; unix" > dbPackage Version Priority Title Author [1,] "tcltk" "2.0.0" "base" "Tcl/Tk Interface" "R Development Core Team" Maintainer [1,] "R Core Team <R-core@r-project.org>" Description [1,] "Interface and language bindings to Tcl/Tk GUI elements" License [1,] "GPL Version 2 or later." Built [1,] "R 2.0.0; alphapca56-unknown-linux-gnu; 2004-10-15 17:25:37; unix"> write.dcf(db,file="YYYY") > read.dcf("YYYY")Package Version Priority Title Author [1,] "tcltk" "2.0.0" "base" "Tcl/Tk Interface" "R Development Core Team" Maintainer [1,] "R Core Team <R-core@r-project.org>" Description [1,] "Interface and language bindings to Tcl/Tk GUI elements" License [1,] "GPL Version 2 or later." Built [1,] "R 2.0.0; alphapca56-unknown-linux-gnu; 2004-10-15 17:25:37;\nunix" which jives really badly with the if (!is.na(Built <- db["Built"])) { Built <- as.list(strsplit(Built, "; ")[[1]]) names(Built) <- c("R", "Platform", "Date", "OStype") Built[["R"]] <- package_version(sub("^R ([0-9.]+)", "\\1", Built[["R"]])) } inside tools:::.split_description . This is not an architecture-specific bug at all, it just happens to be tickled by the specific length of "alphapca56-unknown-linux-gnu"! I'm unsure whether the problem is in read.dcf or whether split_description could just use strsplit(Built, ";[ \n]") and begone with it. The latter should be a workaround for you in either case. [Moved from r-help to r-devel] -p -- 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