building r-devel on RedHat 7.1 with gcc 3.1.1

Roger Peng rpeng@stat.ucla.edu
Sat, 31 Aug 2002 22:10:25 -0700 (PDT)


Thanks, yes, that does solve the problem.

-roger
_______________________________
UCLA Department of Statistics
rpeng@stat.ucla.edu
http://www.stat.ucla.edu/~rpeng

On Sat, 31 Aug 2002, ripley@stats.ox.ac.uk wrote:

> I suspect your LD_LIBRARY_PATH does not include wherever you installed the
> gcc libs (/home/rpeng/install/gcc/lib?) and g77 >= 3.1 uses a shared
> libg2c.  (It also uses a shared libgcc_s.)
> 
> In that case running anything built with g77 will not work, and configure
> does not actually check that.
> 
> You can also get around this by specifying LDFLAGS: to get 64-bit Solaris
> builds to work with gcc 3.2 I had to use
> 
> LDFLAGS="-L/usr/local/lib/sparcv9 -L/usr/local/lib"
> 
> which is how I know about this (and I really expected gcc to sort that out
> for me: the Sun compilers do).
> 
> On Sat, 31 Aug 2002, Roger Peng wrote:
> 
> > Has anyone tried to build r-devel on a RedHat 7.1 with the gcc 3.1.1
> > compiler?  I didn't have problems with gcc 2.95.x or gcc 3.0.4, but when I
> > ran the configure with gcc 3.1.1 I got the following error:
> >
> > [...]
> > checking whether gcc accepts -M for generating dependencies... yes
> > checking whether gcc supports -c -o FILE.lo... yes
> > checking how to get verbose linking output from g77... -v
> > checking for Fortran 77 libraries...  -L/home/rpeng/install/atlas
> > -L/home/rpeng/install/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.1.1
> > -L/home/rpeng/install/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.1.1/../../..
> > -lreadline -ldl -lncurses -lfrtbegin -lg2c -lm -lgcc_s
> > checking for dummy main to link with Fortran 77 libraries... none
> > checking for Fortran 77 name-mangling scheme... lower case, underscore,
> > extra underscore
> > checking whether g77 and gcc agree on int and double... configure:
> > WARNING: g77 and gcc disagree on int and double
> > configure: error: Maybe change CFLAGS or FFLAGS?
> >
> >
> > Should I have set some configuration option?  Or is this more likely a
> > problem with my gcc installation/build?
> >
> > I'm trying to build r-devel (8/30/02) source.
> >
> >
> > --------------------
> >
> > marla:> gcc -v
> > Reading specs from
> > /home/rpeng/install/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.1.1/specs
> > Configured with: ../gcc-3.1.1/configure --prefix=/home/rpeng/install/gcc
> > Thread model: single
> > gcc version 3.1.1
> >
> >
> > -roger
> > _______________________________
> > UCLA Department of Statistics
> > rpeng@stat.ucla.edu
> > http://www.stat.ucla.edu/~rpeng
> >
> > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> > 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
> > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> >
> 
> -- 
> Brian D. Ripley,                  ripley@stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272860 (secr)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
> 

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