[R] Problems compiling R under AIX 4.3

Reinhard Sy hacker-24 at versanet.de
Sat Dec 3 14:49:35 CET 2005


Hello,

yes I have checked out R-Admin-Manual.

here what I've done:

export MAIN_LD=/usr/local/bin/ld   # gnu linker
export SHLIB_LDFLAGS="-W1,-G"
export MAKE=/usr/local/bin/make
export LD_LIBRARY_PATH=/usr/local/lib
export MAIN_LDFLAGS = -Wl,-brtl


then I start configure the Result is:


config.status: executing stamp-h commands

R is now configured for powerpc-ibm-aix4.3.2.0

  Source directory:          .
  Installation directory:    /usr/local

  C compiler:                /usr/local/bin/gcc -mno-fp-in-toc -DANSI
-I/usr/local/vni/CTT4.0/include
  C++ compiler:              g++  
  Fortran compiler:          xlf95  -qarch=com -qfixed

  Interfaces supported:      X11
  External libraries:        readline, BLAS(generic)
  Additional capabilities:   PNG, JPEG, MBCS, NLS
  Options enabled:           R profiling

  Recommended packages:      yes

configure: WARNING: I could not determine SHLIB_CXXLDFLAGS
configure: WARNING: you cannot build info or html versions of the R
manuals
configure: WARNING: you cannot build PDF versions of the R manuals

$ 

Ok what does the warning with SHLIB_CXXLDFLAGS mean ? Is this imported ?

then I started make:


$ /usr/local/bin/make MAIN_LD='/usr/local/bin/ld'
make[1]: Entering directory `/home/mau/sy/R-2.2.0/m4'
make[1]: Nothing to be done for `R'.
make[1]: Leaving directory `/home/mau/sy/R-2.2.0/m4'
make[1]: Entering directory `/home/mau/sy/R-2.2.0/tools'
make[1]: Nothing to be done for `R'.
make[1]: Leaving directory `/home/mau/sy/R-2.2.0/tools'
make[1]: Entering directory `/home/mau/sy/R-2.2.0/doc'
make[2]: Entering directory `/home/mau/sy/R-2.2.0/doc/html'
make[3]: Entering directory `/home/mau/sy/R-2.2.0/doc/html/search'
make[3]: Leaving directory `/home/mau/sy/R-2.2.0/doc/html/search'
make[2]: Leaving directory `/home/mau/sy/R-2.2.0/doc/html'
make[2]: Entering directory `/home/mau/sy/R-2.2.0/doc/manual'
make[2]: Nothing to be done for `R'.
make[2]: Leaving directory `/home/mau/sy/R-2.2.0/doc/manual'
make[1]: Leaving directory `/home/mau/sy/R-2.2.0/doc'
make[1]: Entering directory `/home/mau/sy/R-2.2.0/etc'
make[1]: Leaving directory `/home/mau/sy/R-2.2.0/etc'
make[1]: Entering directory `/home/mau/sy/R-2.2.0/share'
make[1]: Leaving directory `/home/mau/sy/R-2.2.0/share'
make[1]: Entering directory `/home/mau/sy/R-2.2.0/src'
make[2]: Entering directory `/home/mau/sy/R-2.2.0/src/scripts'
creating src/scripts/R.fe
make[3]: Entering directory `/home/mau/sy/R-2.2.0/src/scripts'
make[3]: Leaving directory `/home/mau/sy/R-2.2.0/src/scripts'
make[2]: Leaving directory `/home/mau/sy/R-2.2.0/src/scripts'
make[2]: Entering directory `/home/mau/sy/R-2.2.0/src/include'
config.status: creating src/include/config.h
config.status: src/include/config.h is unchanged
make[3]: Entering directory `/home/mau/sy/R-2.2.0/src/include/R_ext'
make[3]: Leaving directory `/home/mau/sy/R-2.2.0/src/include/R_ext'
make[2]: Leaving directory `/home/mau/sy/R-2.2.0/src/include'
make[2]: Entering directory `/home/mau/sy/R-2.2.0/src/extra'
make[3]: Entering directory `/home/mau/sy/R-2.2.0/src/extra/bzip2'
make[4]: Entering directory `/home/mau/sy/R-2.2.0/src/extra/bzip2'
making blocksort.d from blocksort.c
making bzlib.d from bzlib.c
making compress.d from compress.c
making crctable.d from crctable.c
making decompress.d from decompress.c
making huffman.d from huffman.c
making randtable.d from randtable.c
make[4]: Leaving directory `/home/mau/sy/R-2.2.0/src/extra/bzip2'
make[4]: Entering directory `/home/mau/sy/R-2.2.0/src/extra/bzip2'
/usr/local/bin/gcc -I. -I. -I../../../src/include -I../../../src/include
-I/usr/local/include -DHAVE_CONFIG_H -mno-fp-in-toc  -DANSI
-I/usr/local/vni/CTT4.0/include -c blocksort.c -o blocksort.o
/usr/local/bin/gcc -I. -I. -I../../../src/include -I../../../src/include
-I/usr/local/include -DHAVE_CONFIG_H -mno-fp-in-toc  -DANSI
-I/usr/local/vni/CTT4.0/include -c bzlib.c -o bzlib.o
/usr/local/bin/gcc -I. -I. -I../../../src/include -I../../../src/include
-I/usr/local/include -DHAVE_CONFIG_H -mno-fp-in-toc  -DANSI
-I/usr/local/vni/CTT4.0/include -c compress.c -o compress.o
/usr/local/bin/gcc -I. -I. -I../../../src/include -I../../../src/include
-I/usr/local/include -DHAVE_CONFIG_H -mno-fp-in-toc  -DANSI
-I/usr/local/vni/CTT4.0/include -c crctable.c -o crctable.o
/usr/local/bin/gcc -I. -I. -I../../../src/include -I../../../src/include
-I/usr/local/include -DHAVE_CONFIG_H -mno-fp-in-toc  -DANSI
-I/usr/local/vni/CTT4.0/include -c decompress.c -o decompress.o
/usr/local/bin/gcc -I. -I. -I../../../src/include -I../../../src/include
-I/usr/local/include -DHAVE_CONFIG_H -mno-fp-in-toc  -DANSI
-I/usr/local/vni/CTT4.0/include -c huffman.c -o huffman.o
/usr/local/bin/gcc -I. -I. -I../../../src/include -I../../../src/include
-I/usr/local/include -DHAVE_CONFIG_H -mno-fp-in-toc  -DANSI
-I/usr/local/vni/CTT4.0/include -c randtable.c -o randtable.o
rm -f libbz2.a
ar cr libbz2.a blocksort.o bzlib.o compress.o crctable.o decompress.o
huffman.o randtable.o
ranlib libbz2.a
make[4]: Leaving directory `/home/mau/sy/R-2.2.0/src/extra/bzip2'
make[3]: Leaving directory `/home/mau/sy/R-2.2.0/src/extra/bzip2'
make[3]: Entering directory `/home/mau/sy/R-2.2.0/src/extra/pcre'
/usr/local/bin/gcc -I. -I. -I../../../src/include -I../../../src/include
-I/usr/local/include -DHAVE_CONFIG_H -mno-fp-in-toc  -DANSI
-I/usr/local/vni/CTT4.0/include -c dftables.c -o dftables.o
/usr/local/bin/ld -L/usr/local/lib -o dftables dftables.o
/usr/local/bin/ld: warning: cannot find entry symbol __start; defaulting
to 0000000010000000
dftables.o:dftables.c:(.pr+0x1c): undefined reference to `.malloc'
dftables.o:dftables.c:(.pr+0x78): undefined reference to `.tolower'
dftables.o:dftables.c:(.pr+0xc4): undefined reference to `.islower'
dftables.o:dftables.c:(.pr+0xdc): undefined reference to `.toupper'
dftables.o:dftables.c:(.pr+0xf4): undefined reference to `.tolower'
dftables.o:dftables.c:(.pr+0x12c): undefined reference to `.memset'
dftables.o:dftables.c:(.pr+0x14c): undefined reference to `.isdigit'
dftables.o:dftables.c:(.pr+0x1e4): undefined reference to `.isupper'
dftables.o:dftables.c:(.pr+0x27c): undefined reference to `.islower'
dftables.o:dftables.c:(.pr+0x360): undefined reference to `.isspace'
...

make[3]: *** [dftables] Error 1
make[3]: Leaving directory `/home/mau/sy/R-2.2.0/src/extra/pcre'
make[2]: *** [R] Error 1
make[2]: Leaving directory `/home/mau/sy/R-2.2.0/src/extra'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/home/mau/sy/R-2.2.0/src'
make: *** [R] Error

Where does __start is ? Did I miss some definitions ?

Which linker I should use the IBM (/usr/bin/ld) or GNU
(/usr/local/bin/ld) ?

Any help are very welcome, 



Am Freitag, den 25.11.2005, 13:08 +0000 schrieb Prof Brian Ripley:
> On Fri, 25 Nov 2005 hacker-24 at versanet.de wrote:
> 
> > Hi,
> >
> > I have problems compiling R 2.2.0 under AIX 4.3 with GCC and xlf95 (FORTRAN)
> > Compilers.
> 
> Did you check out the R-admin manual?  That suggests you need
> 
> SHLIB_LDFLAGS=-Wl,-G
> 
> which you do not seem to have.  Note also the report there that you cannot 
> successfully build 2.2.0 under AIX 4.3, and therefore you are advised to 
> try R-patched.
> 
> Probably the R-devel list would be more appropriate for this topic, and it 
> is essential that you do tell us exactly what you did.
> 
> > here the error message I got:
> >
> > make[1]: Entering directory `/home/mau/sy/R-2.2.0/src/modules/X11'
> > make[1]: `Makedeps' is up to date.
> > make[1]: Leaving directory `/home/mau/sy/R-2.2.0/src/modules/X11'
> > make[1]: Entering directory `/home/mau/sy/R-2.2.0/src/modules/X11'
> > /usr/local/bin/gcc -Wl,-bM:SRE -Wl,-H512 -Wl,-T512 -Wl,-bnoentry -Wl,-bexpall
> > -Wl,-bI:../../../etc/R.exp -L/usr/local/lib -o R_X11.so  dataentry.lo devX11.lo
> > rotated.lo rbitmap.lo  -lSM -lICE -lX11  -ljpeg -lpng -lz
> > /usr/local/lib/gcc/powerpc-ibm-aix4.3.2.0/3.4.3/../../../../powerpc-ibm-aix4.3.2.0/bin/ld:
> > -static and -shared may not be used together
> > collect2: ld returned 1 exit status
> > make[1]: *** [R_X11.so] Error 1
> > make[1]: Leaving directory `/home/mau/sy/R-2.2.0/src/modules/X11'
> > make: *** [R] Error 2
> >
> > I do not see where I use -dynamic and/or -static.
> >
> > If I use the IMB linker I got:
> >
> > with IBM linker (ld):
> > $ ld -b32 -L/usr/local/lib -o R_X11.so  dataentry.lo devX11.lo rotated.lo
> > rbitmap.lo  -lSM -lICE -lX11  -ljpeg -lpng -lz
> > ld: 0711-327 WARNING: Entry point not found: __start
> > ld: 0711-244 ERROR: No csects or exported symbols have been saved.
> >
> > Any help are welcome - Is there anybody with the same configuration (AIX
> > 4.3,gcc,xlf95) and has build a working R ?
>




More information about the R-help mailing list