Compilation fails (PR#209)
Frank Beimfohr
beimfohr@Statistik.Uni-Dortmund.DE
Mon, 14 Jun 1999 13:03:48 +0200
> > I try to compile R on my Sparc 4 (Solaris 2.5.1) but the compilation
> > fails. I tried the developer-version and the contributed
> > 0.64.1-Version. I start configure with the --g77-Option. During the
> > compilation it stops with an
>
> > error, which says that the R/src/library/modreg/src/bsplvd.f isn't a
> > valid Fortran77-File. Then, I installed f2c. But the compilation fails
> > again with the message:
>
> > gcc: unrecognized option `-PIC'
>
> which should not be there.
>
> Can you pls send
>
> * the exact configure and make command you issued
>
> * the final output of configure
Command:
configure --prefix=/sw/sun4_55/R-0.64.1a --exec-prefix=/sw/sun4_55/R-0.64.1a
--with-x --with-g77 [--with-f2c]
Output (without and without f2c-Option):
R is now configured for sparc-sun-solaris2.5.1
Source directory: .
Installation directory: /sw/sun4_55/R-0.64.1a
C compiler: gcc -g -O2
FORTRAN compiler: g77
Gnome support: no
Then I just type 'make' (using GNU-Make 3.76.1) and get the error messages
descriped above...
gmake[4]: Entering directory `/sw/sun4_55/R-0.64.1a/src/library/modreg/src'
gcc -g -O2 -fPIC -I../../../../include -c bsplvd.c -o bsplvd.o
g77 -PIC -c bvalue.f -o bvalue.o
gcc: unrecognized option `-PIC'
../../../../bin/R SHLIB -o modreg.so bsplvd.o bvalue.o bvalus.o ksmooth.o
loessc.o loessf.o ppr.o qsbart.o sbart.o sgram.o sinerp.o sslvrg.o stxwx.o
Usage : make [ -f makefile ]... [ -d ][ -dd ][ -D ][ -DD ][ -e ][ -i ][ -k ]
[ -K statefile ][ -n ][ -p ][ -P ][ -q ][ -r ][ -s ][ -S ][ -t ]
[ -V ][ target ... ][ macro=value... ]
make: Fatal error: Unknown option `-w'
gmake[4]: *** [modreg.so] Error 1
Frank Beimfohr
University of Dortmund, Germany
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._