[R] Problem with compiling 64bit R(2.5.1) under HP-UX(ia64)

Fán Lóng foylong at gmail.com
Thu Nov 1 12:08:34 CET 2007


Hi there,
We are trying to compile a 64bit version of R (2.5.1) on HP-UX
(B.11.23 U ia64), but are running into some problems.


This is our configure step:

../configure --prefix=/rnd/homes/lfan/R251 --enable-R-shlib CC="cc"
CFLAGS="+z +DD64" CXX="aCC" CXXFLAGS="-b -lxnet +z +DD64" FC="f90"
FCFLAGS="+DD64" F77="f90" FFLAGS="+DD64" LDFLAGS="-L/usr/lib/hpux64
-L/opt/fortran90/lib" LIBnn=lib --with-x=no --with-readline=no
--with-iconv=no --without-jpeglib --without-libpng
--without-system-bzlib --without-tcltk --without-system-pcre
--without-system-zlib


This steps seems to end ok:

R is now configured for ia64-hp-hpux11.23

  Source directory:          ..
  Installation directory:    /rnd/homes/lfan/R251

  C compiler:                cc  +z +DD64
  Fortran 77 compiler:       f90  +DD64

  C++ compiler:              aCC  -b -lxnet +z +DD64
  Fortran 90/95 compiler:    f90 +DD64
  Obj-C compiler:            cc

  Interfaces supported:
  External libraries:
  Additional capabilities:   NLS
  Options enabled:           shared R library, shared BLAS, R profiling, Java

  Recommended packages:      yes

configure: WARNING: I could not determine CXXPICFLAGS.
configure: WARNING: I could not determine SHLIB_CXXLDFLAGS
configure: WARNING: I could not determine CXXPICFLAGS.
configure: WARNING: you cannot build DVI versions of the R manuals
configure: WARNING: you cannot build info or HTML versions of the R manuals
configure: WARNING: you cannot build PDF versions of the R manuals
configure: WARNING: I could not determine a PDF viewer



When trying to compile(gmake), I get this:


"../../../src/main/regex.c", line 9646: error #2020: identifier "bool" is
          undefined
    bool dests_node_malloced = false;
    ^

"../../../src/main/regex.c", line 9646: error #2020: identifier "false" is
          undefined
    bool dests_node_malloced = false;
                               ^

"../../../src/main/regex.c", line 9647: error #2020: identifier "bool" is
          undefined
    bool dest_states_malloced = false;
    ^

"../../../src/main/regex.c", line 9672: error #2020: identifier "true" is
          undefined
        dests_node_malloced = true;
                              ^

"../../../src/main/regex.c", line 9721: error #2020: identifier "true" is
          undefined
        dest_states_malloced = true;
                               ^

"../../../src/main/regex.c", line 9926: error #2020: identifier "bool" is
          undefined
              bool accepts_newline = bitset_contain (accepts, NEWLINE_CHAR);
              ^

"../../../src/main/regex.c", line 813: warning #2177-D: function "bitset_mask"
          was declared but never referenced
  bitset_mask (bitset_t dest, const bitset_t src)
  ^

6 errors detected in the compilation of "../../../src/main/regex.c".
gmake[3]: *** [regex.o] Error 2
gmake[3]: Leaving directory `/rnd/homes/lfan/R-2.5.1/build/src/main'
gmake[2]: *** [R] Error 2
gmake[2]: Leaving directory `/rnd/homes/lfan/R-2.5.1/build/src/main'
gmake[1]: *** [R] Error 1
gmake[1]: Leaving directory `/rnd/homes/lfan/R-2.5.1/build/src'
gmake: *** [R] Error 1

After looking up the R Installation and Administration document and
seeking help from Google, I still can't get answer why even "bool" in
a c file can not be recognized.

Using the f90 and cc for Fortran and C because we only have this
installed. Is this the problem?


Below envrionment variables may associated:

SHLIB_PATH=/usr/lib/hpux64:.:/lib/hpux64:.:/rnd/homes/lfan/R251/lib/R/lib:.:/opt/fortran90/lib:.:/usr/lib:/lib
LD_LIBRARY_PATH=/usr/lib/hpux64:.:/lib/hpux64:.:/rnd/homes/lfan/R251/lib/R/lib:.:/opt/fortran90/lib
LIBPATH=/usr/lib/hpux64:.:/lib/hpux64:.:/rnd/homes/lfan/R251/lib/R/lib:.:/opt/fortran90/lib



Best Regards


Foylong



More information about the R-help mailing list