Opened 14 years ago

Closed 14 years ago

#165 closed defect (invalid)

compilation error

Reported by: watti Owned by: grass-dev@…
Priority: major Milestone: 6.3.1
Component: Default Version: 6.3.0
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

when compiling Grass 6.3 on RHEL 4 64 bit I get the following errors

Errors in: /data/users/soi534/GRASS/grass63_release/lib/gmath /data/users/soi534/GRASS/grass63_release/lib/imagery /data/users/soi534/GRASS/grass63_release

going to the directories

/lib/gmath:

-gnu/svd.o -lgrass_gis -lgrass_datetime -lz -lfftw3 -lm && \ (cd /data/users/soi/GRASS/grass63_release/dist.x86_64-unknown-linux-gnu/lib; ln -f -s libgrass_gmath.6.3.1svn.so /data/users/soi/GRASS/grass63_release/dist.x86_64-unknown-linux-gnu/lib/libgrass_gmath.so) /usr/bin/ld: /usr/local/lib/libfftw3.a(mapflags.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libfftw3.a: could not read symbols: Bad value collect2: ld returned 1 exit status make: * data/users/soi/GRASS/grass63_release/dist.x86_64-unknown-linux-gnu/lib/libgrass_gmath.6.3.1svn.so Error 1

in /lib/imagery I get the error propagation

/usr/bin/ld: cannot find -lgrass_gmath

same in /lib/rst/interp_float

/usr/bin/ld: cannot find -lgrass_gmath

I use fftw-3.1.2.

Any suggestions ?

Cheers,

Martin

Change History (4)

comment:1 Changed 14 years ago by glynn

See if you can get hold of shared FFTW libraries. Or maybe you already have them and need to point --with-fftw-libs= to the right place.

Or you could just build --without-fftw; there are only a handful of modules which need it (i.fft, i.ifft, i.zc, r.surf.fractal).

comment:2 in reply to:  1 Changed 14 years ago by watti

Replying to glynn:

See if you can get hold of shared FFTW libraries. Or maybe you already have them and need to point --with-fftw-libs= to the right place.

Or you could just build --without-fftw; there are only a handful of modules which need it (i.fft, i.ifft, i.zc, r.surf.fractal).

Hi,

I did some more research about the problem and solved it. The problem arises from the -fPIC flag when compiling the Code. The FFTW configuration script seems to assume it can not use -fPIC in the make file. see http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 for more details !

Cheers,

Martin

comment:3 Changed 14 years ago by martinl

Version: svn-trunk6.3.0

comment:4 Changed 14 years ago by neteler

Resolution: invalid
Status: newclosed

See also GRASS' INSTALL file "(C) COMPILATION NOTES for 64bit platforms"

grep fPIC INSTALL
FFTW2 library has to be compiled with -fPIC flag:
    CFLAGS="-fPIC" ./configure

Closing.

Markus

Note: See TracTickets for help on using tickets.