Full_Name: Frank Beimfohr Version: 0.64.1, devel. OS: Solaris 2.5.1 Submission from: (NULL) (129.217.131.31) 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' ./../../../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 gmake[4]: Leaving directory `/sw/sun4_55/R-0.64.1a/src/library/modreg/src' I don't know what to do now... -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> beimfohr writes:> Full_Name: Frank Beimfohr > Version: 0.64.1, devel. > OS: Solaris 2.5.1 > Submission from: (NULL) (129.217.131.31)> 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, such as R is now configured for i586-unknown-linux Source directory: /home/Hornik/src/apps/R/r-devel/R Installation directory: /usr/local C compiler: gcc -O2 -g -Wall FORTRAN compiler: g77 -O2 Gnome support: no Thanks -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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> > 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 configureCommand: 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> Hi, > > there are three different things going on here: > (1) gmake by default has the option "-w" set, which is why you see > these "Entering/Leaving directory ..." messages. This option finds a > way into the make flags when the system default make is called. Not > quite sure how, but don't blame it on configure. Makeconf et. al. is > more likely. > (2) Very annoyingly, modreg doesn't use the $(SHLIBLD) command but > calls R with SHLIB as option. Which is nothing you are interested in, > but is a bad thing, IMHO. > (3) g77 croaks on -PIC: for this you may have to blame xmkmf (which > configure uses. Try to find out, what the default is. Follow this example: > tmp $ touch Imakefile > tmp $ xmkmf > imake -DUseInstalled -I/usr/lib/X11/config > "./Imakefile", line 1: 1506-229 (W) File is empty. > tmp $ grep -i pic Makefile > PICFLAGS = -bM\:SRE > (Results are for an AIX box. Your output should look different.)I started 'configure' with the f2c- and without the g77-Option and used /usr/ccs/bin/make instead of gmake (very flexible, isn't it ;) C compiler: gcc -g -O2 FORTRAN compiler: f2c The modreg-directory is now compiled without any error. But while processing the mva-directory: mkdir ../../../library/mva/R gcc -g -O2 -fPIC -I../../../../include -c dblcen.c -o dblcen.o ld -G -o mva.so dblcen.o hclust.o kmns.o ld: fatal: file hclust.o: cannot open file; errno=2 ld: fatal: file kmns.o: cannot open file; errno=2 ld: fatal: File processing errors. No output written to mva.so *** Error code 1 make: Fatal error: Command failed for target `mva.so' Current working directory /sw/sun4_55/R-0.65.0/src/library/mva/src *** Error code 1 make: Fatal error: Command failed for target `all' What happens here? I compiled R 0.63.0 without any problem.... Frank Beimfohr University of Dortmund -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._