[R] Problem compiling on HP-UX 10.20

Nuzzo Art-CINT116 A.Nuzzo at motorola.com
Fri Apr 19 18:30:13 CEST 2002


Thanks for the help. I am getting closer.  Switching to the fort77 compiler
fixed that problem.  Now it compiles completely but I am unable to run the
check.  


artn at bs752> make check
make[1]: Entering directory `/tmp_mnt/users/artn/R-1.4.1/tests'
make[2]: Entering directory `/tmp_mnt/users/artn/R-1.4.1/tests'
make[3]: Entering directory `/tmp_mnt/users/artn/R-1.4.1/tests/Examples'
make[4]: Entering directory `/tmp_mnt/users/artn/R-1.4.1/tests/Examples'
make[4]: Leaving directory `/tmp_mnt/users/artn/R-1.4.1/tests/Examples'
make[4]: Entering directory `/tmp_mnt/users/artn/R-1.4.1/tests/Examples'
make[4]: *** Warning: File `Makefile' has modification time in the future
(2002-04-19 11:17:56 > 2002-04-19 11:17:53)
collecting examples for package `base' ...
make[5]: Entering directory `/tmp_mnt/users/artn/R-1.4.1/src/library'
 >>> Building/Updating help pages for package `base'
     Formats: text example 
make[5]: Leaving directory `/tmp_mnt/users/artn/R-1.4.1/src/library'
running code in `base-Ex.R' ...make[4]: *** [base-Ex.Rout] Error 1
make[4]: Leaving directory `/tmp_mnt/users/artn/R-1.4.1/tests/Examples'
make[3]: *** [test-Examples] Error 2
make[3]: Leaving directory `/tmp_mnt/users/artn/R-1.4.1/tests/Examples'
make[2]: *** [test-Examples] Error 2
make[2]: Leaving directory `/tmp_mnt/users/artn/R-1.4.1/tests'
make[1]: *** [test-all-basics] Error 1
make[1]: Leaving directory `/tmp_mnt/users/artn/R-1.4.1/tests'
make: *** [check] Error 2
artn at bs752> 



Initially I tried with the default compiler flags and then with CFLAGS=-O
and also tried with CXXFLAGS=-O with the same results. My current
configuration is:


R is now configured for hppa2.0-hp-hpux10.20

  Source directory:          .
  Installation directory:    /users/artn
  C compiler:                gcc  -D_HPUX_SOURCE -O
  C++ compiler:              c++  -O
  FORTRAN compiler:          fort77  -g

  X11 support:               yes
  Gnome support:             no
  Tcl/Tk support:            no

  R profiling support:       yes
  R as a shared library:     no

configure: warning: you cannot build DVI versions of the R manuals
configure: warning: you cannot build PDF versions of the R manuals


Thanks for any help,


Art Nuzzo

> -----Original Message-----
> From: Luke Tierney [mailto:luke at stat.umn.edu]
> Sent: Thursday, April 18, 2002 9:28 AM
> To: Nuzzo Art-CINT116
> Subject: Re: [R] Problem compiling on HP-UX 10.20
> 
> 
> Have a look at the notes on HP-UX in the R-admin manual.  In nutshell,
> you will either need to make sure libg2c is compiled with PIC flags or
> use the HP compiler fort77.
> 
> luke
> 
> On Thu, Apr 18, 2002 at 09:16:58AM -0500, Nuzzo Art-CINT116 wrote:
> > I am having a problem compiling R on an HP-UX 10.20 system 
> using gcc/g77
> > compiler. It appears to compile without problems until it 
> gets to the lapack
> > module and I get the following error:
> > 
> > gcc -I. -I../../../src/include -I../../../src/include 
> -I/usr/local/include
> > -DHAVE_CONFIG_H -D_HPUX_SOURCE -fPIC  -O2 -c Lapack.c -o Lapack.lo
> > g77  -fPIC  -O2 -c double.f -o double.lo
> > g77  -fPIC  -O2 -c cmplx.f -o cmplx.lo
> > g77  -fPIC  -O2 -c blas2.f -o blas2.lo
> > g77  -fPIC  -O2 -c cmplxblas.f -o cmplxblas.lo
> > gcc -shared -fPIC  -o lapack.sl  Lapack.lo double.lo  
> cmplx.lo blas2.lo
> > cmplxblas.lo   -lg2c -lm -L/lib/pa1.1 -L/usr/lib/pa1.1 -u main
> > -L/opt/gnu/lib/gcc-lib/hppa2.0-hp-hpux10.20/3.0.4 -L/usr/ccs/bin
> > -L/usr/ccs/lib -L/opt/langtools/lib
> > -L/opt/gnu/lib/gcc-lib/hppa2.0-hp-hpux10.20/3.0.4/../../.. -lm
> > -L/usr/local/lib  -lz -ltermcap -lm
> > /usr/ccs/bin/ld: DP relative code in file
> > 
> /opt/gnu/lib/gcc-lib/hppa2.0-hp-hpux10.20/3.0.4/libg2c.a(fmt.o
> ) - shared
> > library must be position
> >     independent.  Use +z or +Z to recompile.
> > collect2: ld returned 1 exit status
> > make[4]: *** [lapack.sl] Error 1
> > make[4]: Leaving directory 
> `/tmp_mnt/users/artn/R-1.4.1/src/modules/lapack'
> > 
> > 
> > Any help is appreciated, thanks,
> > 
> > 
> > Art Nuzzo
> > 
> > 
> > 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-.-.-.-.-.-.-
> > r-help 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-help-request at stat.math.ethz.ch
> > 
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _._._._._._._._._
> 
> -- 
> Luke Tierney
> University of Minnesota                      Phone:           
> 612-625-7843
> School of Statistics                         Fax:             
> 612-624-8868
> 313 Ford Hall, 224 Church St. S.E.           email:      
> luke at stat.umn.edu
> Minneapolis, MN 55455 USA                    WWW:  
http://www.stat.umn.edu
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list