[R] Problem with a 64bit R on HP-UX]
Luke Tierney
luke at stat.uiowa.edu
Mon May 26 19:27:48 CEST 2003
Quick and very dirty solution that seems to sort of work for me:
configure as you do, then
gmake
until it fails, then
gmake LDFLAGS=""
until that fails. At this point you should have a working base R.
Linking with f90 or cc seems to need +DD64, but direct linking with ld
does not (ld seems to try 64 bit if any objects are 64 bit).
Now do
env R_LD_LIBRARY_PATH=`pwd`/bin gmake LDFLAGS=""
This final step is needed because the bin/R shell script is not able
to install source packages with compiled code and so installing the
recommended packages fails. The problem seems to be with setting of
SHLIB_PATH in bin/R: it sets the 64-bit locations, but this confuses
some part of the cc chain that is still 32-bit.
I also get the message
/usr/lib/pa20_64/dld.sl: Unable to find library '/usr/lib/nls/loc/pa20_64/locales.2/C'.
on startup; doesn't seem to be fatal though (but it does cause make
check to fail).
We need to clean this up, but as this is very much a minority platform
I'm not sure how soon anyone will get to it. Help is of course
welcome...
luke
On Mon, 26 May 2003, Ida Scheel wrote:
> Greetings,
>
> We are trying to compile a 64bit version of R (1.7.0) on HP-UX (11.11),
> but are running into some problems.
>
> The following relevant filesets are installed:
>
> B3901BA B.11.11.04 HP C/ANSI C Developer's
> Bundle for HP-UX 11.i (S800)
> B3909DB B.11.11.60 HP Fortran 90 Compiler
> and associated products (S800)
> B3913DB C.03.33.01 HP aC++ Compiler (S800)
>
> This is our configure step:
>
> ./configure --prefix=/site/R-1.7.0 CC="cc" CFLAGS="+O2 +DD64" \
> CXX="aCC" CXXFLAGS="+O2 +DD64" \
> FC="f90" F77="f90" FFLAGS="+O2 +DD64" \
> LD="f90" LDFLAGS="+DD64" \
> --without-jpeglib --without-libpng
>
> This steps seems to end ok:
>
> R is now configured for hppa2.0w-hp-hpux11.11
>
> Source directory: .
> Installation directory: /site/R-1.7.0
>
> C compiler: cc +O2 +DD64
> C++ compiler: aCC +O2 +DD64
> Fortran compiler: f90 +O2 +DD64
>
> Interfaces supported: X11
> External libraries:
> Additional capabilities: bzip2, PCRE
> Options enabled:
>
> Recommended packages: yes
>
> configure: WARNING: I could not determine SHLIB_CXXLDFLAGS
> configure: WARNING: you cannot build DVI versions of the R manuals
> configure: WARNING: you cannot build info versions of the R manuals
> configure: WARNING: you cannot build PDF versions of the R manuals
>
>
> When trying to compile, I get this:
>
> cc -Wp,-H16000 -I. -I../../../src/include -I../../../src/include
> -I/local/X11R6/include -I/usr/local/include -DHAVE_CONFIG_H +Z +O2
> +DD64 -c rbitmap.c -o rbitmap.lo
> ld -b -Bsymbolic +DD64 -o R_X11.sl dataentry.lo devX11.lo
> rotated.lo rbitmap.lo -lSM -lICE -L/local/X11R6/lib -lX11 -lnsl -ldl -lm
> ld: Unrecognized argument: +DD64
> Fatal error.
> *** Error exit code 1
>
> Using the f90 linker makes it link ok, but the generated R executable
> does not run. How should we set the linker for the generation of 64bit
> shared libraries (if that is the problem)?
>
>
> Best Regards
>
> Andreas
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
--
Luke Tierney
University of Iowa Phone: 319-335-3386
Department of Statistics and Fax: 319-335-3017
Actuarial Science
241 Schaeffer Hall email: luke at stat.uiowa.edu
Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu
More information about the R-help
mailing list