FWIW R built the official way doesn't have such problems, so I would not be surprised that it is an issue with your toolchain and/or the way you build R. Fink has been historically known for having issues with compilers (and library mismatches) so I would suggest looking at your end of the affair. For comparison the most recent builds and check results using the official tools are available at http://r.research.att.com/
Cheers, Simon On Jun 30, 2011, at 9:59 PM, Duncan Murdoch wrote: > On 11-06-30 9:48 PM, BABA Yoshihiko wrote: >> Dear all, >> >> I am a MacOSX/Fink (which is more or less like Debian's APT) maintainer and >> making R binary. One of the users tried test suite with make -k check and >> get the following results. Some differences are numerical, while others show >> sign differences in the result. >> >> Could someone possible explain/fix them? > > You need to examine the differences, and decide which ones are problems, and > which ones are inconsequential. If you think something is a problem, then > tell us that. > > Sometimes numerical differences (including signs) matter, and sometimes they > don't. > > Duncan Murdoch > >> >> Thanks >> >> -------- >> >> #!/bin/sh -ev >> make -k check || exit 2 >> make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make >> rule. >> WARNING: ignoring environment value of R_HOME >> Testing examples for package 'base' >> Testing examples for package 'tools' >> comparing 'tools-Ex.Rout' to 'tools-Ex.Rout.save' ... OK >> Testing examples for package 'utils' >> Testing examples for package 'grDevices' >> comparing 'grDevices-Ex.Rout' to 'grDevices-Ex.Rout.save' ... >> 1951c1951 >> < [1,] 0.00000 0.000000 0.000000e+00 >> --- >>> [1,] 0.00000 0.000000e+00 0.000000e+00 >> 1952c1952 >> < [2,] 53.48418 175.364685 3.780017e+01 >> --- >>> [2,] 53.48418 1.753647e+02 3.780017e+01 >> 1953c1953 >> < [3,] 71.91841 -68.706608 8.786408e+01 >> --- >>> [3,] 71.91841 -6.870661e+01 8.786408e+01 >> 1954c1954 >> < [4,] 32.24075 -9.660595 -1.301930e+02 >> --- >>> [4,] 32.24075 -9.660595e+00 -1.301930e+02 >> 1955c1955 >> < [5,] 91.01106 -71.173035 -1.534147e+01 >> --- >>> [5,] 91.01106 -7.117303e+01 -1.534147e+01 >> 1956c1956 >> < [6,] 60.50231 84.566776 -1.081465e+02 >> --- >>> [6,] 60.50231 8.456678e+01 -1.081465e+02 >> 1957c1957 >> < [7,] 97.14950 7.898148 1.064410e+02 >> --- >>> [7,] 97.14950 7.898148e+00 1.064410e+02 >> 1958c1958 >> < [8,] 76.97594 0.000000 -5.554930e-14 >> --- >>> [8,] 76.97594 -2.777465e-14 -5.554930e-14 >> Testing examples for package 'graphics' >> comparing 'graphics-Ex.Rout' to 'graphics-Ex.Rout.save' ... OK >> Testing examples for package 'stats' >> comparing 'stats-Ex.Rout' to 'stats-Ex.Rout.save' ... >> 6355c6355 >> < Grand Mean: 291.5937 >> --- >>> Grand Mean: 291.5938 >> 12721c12721 >> < Murder -0.536 0.418 -0.341 -0.649 >> --- >>> Murder -0.536 0.418 -0.341 0.649 >> 12722c12722 >> < Assault -0.583 0.188 -0.268 0.743 >> --- >>> Assault -0.583 0.188 -0.268 -0.743 >> 12723c12723 >> < UrbanPop -0.278 -0.873 -0.378 -0.134 >> --- >>> UrbanPop -0.278 -0.873 -0.378 0.134 >> 14355c14355 >> < Grand Mean: 291.5937 >> --- >>> Grand Mean: 291.5938 >> 15442c15442 >> < Murder -0.54 0.42 -0.34 -0.65 >> --- >>> Murder -0.54 0.42 -0.34 0.65 >> 15443c15443 >> < Assault -0.58 -0.27 0.74 >> --- >>> Assault -0.58 -0.27 -0.74 >> Testing examples for package 'datasets' >> comparing 'datasets-Ex.Rout' to 'datasets-Ex.Rout.save' ... OK >> Testing examples for package 'methods' >> comparing 'methods-Ex.Rout' to 'methods-Ex.Rout.save' ... OK >> Testing examples for package 'grid' >> comparing 'grid-Ex.Rout' to 'grid-Ex.Rout.save' ... OK >> Testing examples for package 'splines' >> comparing 'splines-Ex.Rout' to 'splines-Ex.Rout.save' ... OK >> Testing examples for package 'stats4' >> comparing 'stats4-Ex.Rout' to 'stats4-Ex.Rout.save' ... OK >> Testing examples for package 'tcltk' >> Testing examples for package 'compiler' >> make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make >> rule. >> running strict specific tests >> running code in 'eval-etc.R' ... OK >> comparing 'eval-etc.Rout' to './eval-etc.Rout.save' ...WARNING: ignoring >> environment value of R_HOME >> 1d0 >> < WARNING: ignoring environment value of R_HOME >> make[3]: *** [eval-etc.Rout] Error 1 >> running code in 'simple-true.R' ... OK >> comparing 'simple-true.Rout' to './simple-true.Rout.save' ...WARNING: >> ignoring environment value of R_HOME >> 1d0 >> < WARNING: ignoring environment value of R_HOME >> make[3]: *** [simple-true.Rout] Error 1 >> running code in 'arith-true.R' ... OK >> comparing 'arith-true.Rout' to './arith-true.Rout.save' ...WARNING: >> ignoring environment value of R_HOME >> 1d0 >> < WARNING: ignoring environment value of R_HOME >> make[3]: *** [arith-true.Rout] Error 1 >> running code in 'arith.R' ... OK >> comparing 'arith.Rout' to './arith.Rout.save' ...WARNING: ignoring >> environment value of R_HOME >> 1d0 >> < WARNING: ignoring environment value of R_HOME >> make[3]: *** [arith.Rout] Error 1 >> running code in 'lm-tests.R' ... OK >> comparing 'lm-tests.Rout' to './lm-tests.Rout.save' ...WARNING: ignoring >> environment value of R_HOME >> 1d0 >> < WARNING: ignoring environment value of R_HOME >> make[3]: *** [lm-tests.Rout] Error 1 >> running code in 'ok-errors.R' ... OK >> comparing 'ok-errors.Rout' to './ok-errors.Rout.save' ...WARNING: ignoring >> environment value of R_HOME >> 1d0 >> < WARNING: ignoring environment value of R_HOME >> make[3]: *** [ok-errors.Rout] Error 1 >> running code in 'method-dispatch.R' ... OK >> comparing 'method-dispatch.Rout' to './method-dispatch.Rout.save' >> ...WARNING: ignoring environment value of R_HOME >> 1d0 >> < WARNING: ignoring environment value of R_HOME >> make[3]: *** [method-dispatch.Rout] Error 1 >> running code in 'array-subset.R' ... OK >> comparing 'array-subset.Rout' to './array-subset.Rout.save' ...WARNING: >> ignoring environment value of R_HOME >> 1d0 >> < WARNING: ignoring environment value of R_HOME >> make[3]: *** [array-subset.Rout] Error 1 >> running code in 'any-all.R' ... OK >> comparing 'any-all.Rout' to './any-all.Rout.save' ...WARNING: ignoring >> environment value of R_HOME >> 1d0 >> < WARNING: ignoring environment value of R_HOME >> make[3]: *** [any-all.Rout] Error 1 >> running code in 'd-p-q-r-tests.R' ... OK >> comparing 'd-p-q-r-tests.Rout' to './d-p-q-r-tests.Rout.save' ...WARNING: >> ignoring environment value of R_HOME >> 1d0 >> < WARNING: ignoring environment value of R_HOME >> make[3]: *** [d-p-q-r-tests.Rout] Error 1 >> make[3]: Target `test-Specific-strict' not remade because of errors. >> make[2]: *** [test-Specific] Error 2 >> make[1]: *** [test-all-basics] Error 1 >> make[1]: Target `check' not remade because of errors. >> make: *** [check] Error 2 >> >> >> >> >> >> -- >> BABA Yoshihiko >> Urban Design Laboratory, Tokyo University >> TEL: +81 (0)90 1738 7439 >> >> _______________________________________________ >> R-SIG-Mac mailing list >> R-SIG-Mac@r-project.org >> https://stat.ethz.ch/mailman/listinfo/r-sig-mac > > _______________________________________________ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > > _______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac