ntakebay@bio.indiana.edu
1999-Jun-09 00:17 UTC
R correct g77 flags for Linux/Alpha (PR#208)
Hello, I was trying to compile R-base-0.64.1 on Linux/Alpha (RedHat 6.0). It compiled but it couldn't pass the make check (choked with tests/Examples/modreg-Ex.R). I used gdb, and it turned out that the src/library/modreg/src/sinerp.f was the problem. else if(j.eq.nk)then c1 = 0d0 c2 = 0d0 c3 = 0d0 endif> p1ip(1,j) = 0d0- (c1*wjm3(1)+c2*wjm3(2)+c3*wjm3(3))p1ip(2,j) = 0d0- (c1*wjm3(2)+c2*wjm2(1)+c3*wjm2(2)) I think wjm3(3) should be 0, but it was set to a really tiny value. So I gave -mieee for g77, and it solved the problem. The configure correctly identify the CFLAGS for alpha, but -mieee should be given to g77, too. So in configure.in and configure, you should add the following (I included a patch below) By the way, I compiled R on PC164SX + 21164PC/533 using egcs-1.1.2. All other libraries are Redhat-6.0 default. --- R-0.64.1/configure.in.orig Tue Jun 8 19:05:31 1999 +++ R-0.64.1/configure.in Tue Jun 8 19:06:28 1999 @@ -575,6 +575,7 @@ ;; alpha*linux) CFLAGS="-mieee ${CFLAGS}" + FFLAGS="-mieee ${FFLAGS}" DLLFLAGS=-export-dynamic ;; *linuxaout) To the rpm maintainer: You can simply apply the following patch to the spec file of R-base-0.64.1-5.src.rpm without patching the configure.in patch. I also do not know why CFLAGS need to be -O1 instead of -O2?? --- R-base.spec.orig Tue Jun 8 18:39:31 1999 +++ R-base.spec Tue Jun 8 18:44:00 1999 @@ -70,6 +70,7 @@ %ifarch alpha #Thanks to Nassib Nassar <nassar@etymon.com> export CFLAGS="-g -O1" + export FFLAGS="-mieee -g -O2" %endif %ifarch sparc export LIBS="-lieee" Thanks, Naoki Naoki Takebayashi <ntakebay@bio.indiana.edu> --- Dept. of Biology, Indiana Univeristy, Jordan Hall 142 --- 1001 E. Third St. Bloomington,IN 47405-3700 USA -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> ntakebay writes:> Hello, > I was trying to compile R-base-0.64.1 on Linux/Alpha (RedHat 6.0).> It compiled but it couldn't pass the make check (choked with > tests/Examples/modreg-Ex.R).> I used gdb, and it turned out that the src/library/modreg/src/sinerp.f was > the problem. > else if(j.eq.nk)then > c1 = 0d0 > c2 = 0d0 > c3 = 0d0 > endif >> p1ip(1,j) = 0d0- (c1*wjm3(1)+c2*wjm3(2)+c3*wjm3(3)) > p1ip(2,j) = 0d0- (c1*wjm3(2)+c2*wjm2(1)+c3*wjm2(2))> I think wjm3(3) should be 0, but it was set to a really tiny value.> So I gave -mieee for g77, and it solved the problem.> The configure correctly identify the CFLAGS for alpha, but -mieee should > be given to g77, too. So in configure.in and configure, you should add > the following (I included a patch below)> By the way, I compiled R on PC164SX + 21164PC/533 using egcs-1.1.2. All > other libraries are Redhat-6.0 default.> --- R-0.64.1/configure.in.orig Tue Jun 8 19:05:31 1999 > +++ R-0.64.1/configure.in Tue Jun 8 19:06:28 1999 > @@ -575,6 +575,7 @@ > ;; > alpha*linux) > CFLAGS="-mieee ${CFLAGS}" > + FFLAGS="-mieee ${FFLAGS}" > DLLFLAGS=-export-dynamic > ;; > *linuxaout)Done for 0.65. -k -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._