[R] Compiling R on HP-UX

Luke Tierney luke at goose.stat.umn.edu
Wed Aug 16 02:32:31 CEST 2000


Peter Kleiweg wrote:
> 
> Has anyone succeeded in compiling R on HP-UX?
> 


I regularly build on our HP-UX systems, 

nokomis% uname -a
HP-UX nokomis B.10.20 A 9000/715 2012422816 two-user license

Running configure with no arguments or environment settings gives me

R is now configured for hppa1.1-hp-hpux10.20

  Source directory:         .
  Installation directory:   /usr/local
  C compiler:               gcc  -g -O2
  FORTRAN compiler:         fort77  -g
  X11 support:              yes
  Gnome support:            no
  Tcl/Tk support:           no

Our gcc is 2.8.1; we dont have g77.

I can also build with cc by running configure under a csh shell as

env CC=cc CFLAGS=-Wp,-H16000 configure

This gives me

R is now configured for hppa1.1-hp-hpux10.20

  Source directory:         .
  Installation directory:   /usr/local
  C compiler:               cc  -D_HPUX_SOURCE -g -Aa
  FORTRAN compiler:         fort77  -g
  X11 support:              yes
  Gnome support:            no
  Tcl/Tk support:           no


To track down the shared library problem you could try this: If you
add BIND_VERBOSE to the flags for shl_load then shl_load may print
something useful, like the name of the symbol it can't find.  The call
to shl_load is in src/unix/hpdlfcn.c, but even though this is a .c
file it is used by inclusion in src/unix/dynload.c, so that is the
file that needs to be recompiled.

> 
> R.bin:     PA-RISC2.0 shared executable dynamically linked -not stripped
> R_X11.sl:  PA-RISC1.1 shared library -not stripped
> 

We only have 1.1 systems, so I'm not sure what is different about 2.0,
but this difference in versions looks worrying.  There may be an
incompatibility between these and there may be a problem with the
combination of gcc and ld or something along those lines.

luke

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