build fails dumping R code in 'methods' on i686-pc-linux-gnu (PR#1630)

George White aa056@chebucto.ns.ca
Sat, 8 Jun 2002 09:14:02 -0300 (ADT)


On Tue, 4 Jun 2002, John Chambers wrote:

> aa056@chebucto.ca wrote:
> > 
> > Using the same settings in config.site as were used for R-1.4.1,
> > R-1.5.0 fails to build.
> > 
> > ./configure --enable-R-shlib
> > 
> > Using defaults and using PPro optimizations, the build failed in
> > package methods:
> > 
> > dumping R code in package 'methods'
> > gmake[4]: *** [../../../library/methods/R/all.rda] Error 139
> > gmake[4]: Leaving directory `/mnt/Data/src/install/R-1.5.0/src/library/methods'
> > 
> > The command that fails is:
> > 
> >     ../../../bin/R --vanilla --verbose < all.R
> > 
> > The same failure occurs using defaults for CFLAGS, etc.
> > 
> > Install patches:
> > 
> >   zcat R-release.diff.gz | patch -p1
> > 
> > R is now configured for i686-pc-linux-gnu
> > 
> >   Source directory:          .
> >   Installation directory:    /usr/local
> >   C compiler:                gcc  -D__NO_MATH_INLINES -mieee-fp -O2 \
> >  -pipe -s -mpentiumpro -mcpu=pentiumpro -march=pentiumpro -mieee-fp \
> >  -malign-loops=2 -malign-jumps=2 -malign-functions=2 \
> >  -mpreferred-stack-boundary=2
> >   C++ compiler:              g++  -mieee-fp -O2 -pipe -s  -mpentiumpro \
> >  -mcpu=pentiumpro -march=pentiumpro -mieee-fp -malign-loops=2 \
> >  -malign-jumps=2 -malign-functions=2 -mpreferred-stack-boundary=2
> >   FORTRAN compiler:          g77  -O2 -pipe -s -mpentiumpro \
> > -mcpu=pentiumpro -march=pentiumpro -mieee-fp -malign-loops=2 \
> > -malign-jumps=2 -malign-functions=2 -mpreferred-stack-boundary=2
> >   X11 support:               yes
> >   Gnome support:             no
> >   Tcl/Tk support:            yes
> >   Readline support:          yes
> > 
> >   R profiling support:       yes
> >   R as a shared library:     yes
> > 
> > The same error occurs using the patched version.
> > 
> 
> I couldn't reproduce this with the --enable-R-shlib in the
> configuration, on either of my current Linux versions (Redhat 7.1, YDL
> 2.2); e.g.,

I had no problem building the default configuration.  Comparing the 
resulting Makeconf with the one for the failed build I found that
configure did not set MAIN_LDFLAGS to --export-dynamic when using my
config.site (which has the MAIN_LDFLAGS entry commented out).

If I edit Makeconf and rebuild R.bin the build finished and 
"make check" passes.  

--
George White <aa056@chebucto.ns.ca> Halifax, Nova Scotia

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._