I am trying to compile R-1.6.1 on an itanium. using either gcc 2.96 or gcc 3.0.4 nad either the supplied Redhat blas libs or the supplied code (ie wiht the --no-blas option) I get this error. Has anyone who has compiled R for the itanium advise me on the compilers versions and flags that they used? thanks bye rob gcc -shared -L/usr/local/lib -o lapack.so Lapack.lo double.lo cmplx.lo cmplxblas.lo -L/usr/local/lib -L/usr/lib/gcc-lib/ia64-redhat-linux/2.96 -L/usr/lib/gcc-lib/ia64-redhat-linux/2.96/../../.. -lreadline -ldl -lncurses -lg2c -lm -lpcre -lbz2 -lz -lreadline -ldl -lncurses -lm /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen collect2: ld returned 1 exit status make[4]: *** [lapack.so] Error 1 make[4]: Leaving directory `/home/robd/junk/R-1.6.1/src/modules/lapack' -- Rob Dunne Fax: +61 2 9325 3200 Tel: +61 2 9325 3263 CSIRO Mathematical and Information Sciences +61 2 9325 3100 Locked Bag 17, North Ryde, New South Wales, Australia, 1670 http://matilda.vu.edu.au/~dunne Email: Rob.Dunne at csiro.au Java has certainly revolutionized marketing and litigation.
On Mon, Feb 03, 2003 at 01:51:35PM +1100, Rob Dunne wrote:> > I am trying to compile R-1.6.1 on an itanium. > > using either gcc 2.96 or gcc 3.0.4 nad either > the supplied Redhat blas libs or the supplied code (ie > wiht the --no-blas option) I get this error. > > Has anyone who has compiled R for the itanium advise > me on the compilers versions and flags that they used?Debian's automated building system, covering 11 architecture beyond i386, has logs going back until at least Oct 2001. The page at http://buildd.debian.org/build.php?arch=ia64&pkg=r-base shows logs for all builds since R 1.3.1. All of those would have used our scheme of atlas (at runtime, if available) or else default blas. IIRC we always imposed at least a gcc 3.0 version on ia64. We recently switched to using gcc 3.2.* on every platform, so the point is a little moot. Hope this helps, Dirk -- Three out of two people have difficulties with fractions.
I think you need to use a later compiler, one with a shared libg2c: open.o is in libg2c. With the system you are using, Fortran code cannot be used in shared (.so) objects. As Dirk E. says gcc 3.2 works on Debian, you could try that (although Debian had a relocatable libg2c when gcc did not). Alternatively, try rebuilding the g77 libraries with PIC flags. While you are at it, why not use the current R-1.6.2? On Mon, 3 Feb 2003, Rob Dunne wrote:> > I am trying to compile R-1.6.1 on an itanium. > > using either gcc 2.96 or gcc 3.0.4 nad either > the supplied Redhat blas libs or the supplied code (ie > wiht the --no-blas option) I get this error. > > Has anyone who has compiled R for the itanium advise > me on the compilers versions and flags that they used? > > thanks > bye > rob > > > > > gcc -shared -L/usr/local/lib -o lapack.so Lapack.lo double.lo cmplx.lo cmplxblas.lo -L/usr/local/lib -L/usr/lib/gcc-lib/ia64-redhat-linux/2.96 -L/usr/lib/gcc-lib/ia64-redhat-linux/2.96/../../.. -lreadline -ldl -lncurses -lg2c -lm -lpcre -lbz2 -lz -lreadline -ldl -lncurses -lm > /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen > /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen > /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen > /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen > /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen > /usr/bin/ld: open.o: @gprel relocation against dynamic symbol f__buflen > collect2: ld returned 1 exit status > make[4]: *** [lapack.so] Error 1 > make[4]: Leaving directory `/home/robd/junk/R-1.6.1/src/modules/lapack' > >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595