[GRASS-dev] Compiling GRASS 7.4.2: Issues with FFTW3 / gmath and shared|static libraries
"Peter Löwe"
peter.loewe at gmx.de
Tue Aug 7 02:01:04 PDT 2018
Hello list,
I have run into a problem when compiling GRASS GIS 7.4. on a Cluster (SUSE Linux Enterprise Server-based) as a user (non-root): The issue is connected to FFTW for gmath when building GRASS with shared libraries. It disappears when using static libraries, which causes other side effects.
Several required tools were successfully built and installed locally (gdal, geos, netcdf, sqlite and fftw).
This is the current configuration - for shared libraries
GRASS is now configured for: x86_64-pc-linux-gnu
Source directory: /projekte/ploewe/projects/localgrass/grass74_release
Build directory: /projekte/ploewe/projects/localgrass/grass74_release
Installation directory: ${prefix}/grass-7.4.2svn
Startup script in directory:${exec_prefix}/bin
C compiler: gcc -g -O2
C++ compiler: c++ -g -O2
Building shared libraries: yes
OpenGL platform: none
MacOSX application: no
MacOSX architectures:
MacOSX SDK:
BLAS support: yes
BZIP2 support: no
C++ support: yes
Cairo support: no
DWG support: no
FFTW support: yes
FreeType support: no
GDAL support: yes
GEOS support: yes
LAPACK support: no
Large File support (LFS): yes
libLAS support: no
MySQL support: no
NetCDF support: yes
NLS support: no
ODBC support: no
OGR support: yes
OpenCL support: no
OpenGL support: no
OpenMP support: no
PDAL support: no
PNG support: no
POSIX thread support: no
PostgreSQL support: no
Readline support: yes
Regex support: yes
SQLite support: yes
TIFF support: yes
X11 support: no
Make fails on this configuration as gmath breaks. Running make in the gmath director fails with this error: "relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC"
Running make CFLAGS="-fPIC" in the gmath directory didn't help.
Strangely, changing the GRASS configure script to static libaries fixes the issue, while new issues seem to appear (CTYPES can't be created).
Any advice on the initial FFTW-related issue would be much appreciated.
best,
Peter L.
More information about the grass-dev
mailing list