[SciPy-dev] SciPy on Solaris 7 using gcc 3.0.4

hoel at germanlloyd.org hoel at germanlloyd.org
Thu Apr 18 09:35:45 CDT 2002


trying to install the latest scipy snapshot on Solaris 2.7 using gcc
3.0.4 I get:

g77 -shared build/temp.solaris-2.7-sun4u-2.2/fortranobject.o build/temp.solaris-2.7-sun4u-2.2/fblasmodule.o -L/export/data/tmp/hoel/atlas3.3.15/lib/SunOS_SunUS4_3/ -L/export/data/tmp/hoel/atlas3.3.15/lib/SunOS_SunUS4_3/ -Lbuild/temp.solaris-2.7-sun4u-2.2 -lfblas -llapack -lf77blas -lcblas -latlas -lg2c -o build/lib.solaris-2.7-sun4u-2.2/scipy/linalg/fblas.so
Text relocation remains                         referenced
    against symbol                  offset      in file
ATL_zupNBmm24_4_1_b1                0x838       /export/data/tmp/hoel/atlas3.3.15/lib/SunOS_SunUS4_3//libatlas.a(ATL_zupNBmm_b1.o)
ATL_zupNBmm24_4_1_b1                0x7c4       /export/data/tmp/hoel/atlas3.3.15/lib/SunOS_SunUS4_3//libatlas.a(ATL_zupNBmm_b1.o)

lots of similar lines. This error can be solved by adding the
"-mimpure-text" flag to the link line (has to be done for every link
command linking *.a libraries to a "-shared" object.

The next problem comes when linking chphes.so: 

g77 -shared build/temp.solaris-2.7-sun4u-2.2/cephesmodule.o build/temp.solaris-2.7-sun4u-2.2/amos_wrappers.o build/temp.solaris-2.7-sun4u-2.2/specfun_wrappers.o build/temp.solaris-2.7-sun4u-2.2/toms_wrappers.o build/temp.solaris-2.7-sun4u-2.2/cdf_wrappers.o build/temp.solaris-2.7-sun4u-2.2/ufunc_extras.o -Lbuild/temp.solaris-2.7-sun4u-2.2 -lamos -ltoms -lc_misc -lcephes -lmach -lcdf -lspecfun -lg2c -o build/lib.solaris-2.7-sun4u-2.2/scipy/special/cephes.so
ld: fatal: too many symbols require `small' PIC references:
        have 3366, maximum 2048 -- recompile some modules -K PIC.
collect2: ld returned 1 exit status
error: command 'g77' failed with exit status 1

I was able to get it to something like 

        have 25??, maximum 2048 -- recompile some modules -K PIC.

when replacing

            switches = switches + ' -fpic '


            switches = switches + ' -fPIC '

in scipy_distutils/command/build_flib.py, but it still dosn't link.


Dipl.-Ing. Berthold Höllmann   __   Address:
hoel at germanlloyd.org        G /  \ L Germanischer Lloyd
phone: +49-40-36149-7374    -+----+- Vorsetzen 32/35    P.O.Box 111606
fax  : +49-40-36149-7320      \__/   D-20459 Hamburg    D-20416 Hamburg

More information about the Scipy-dev mailing list