[GRASS-dev] configurare fails: Failed check for math library

Martin Landa landa.martin at gmail.com
Wed Jan 24 06:31:47 PST 2024


Hi,

st 24. 1. 2024 v 15:22 odesílatel Nicklas Larsson <n_larsson at yahoo.com>
napsal:

> I too would have been surprised if glibc wasn’t there. (I’m shooting from
> the hips :-).
>
> You can investigate the "config.log” for hopefully more detailed
> information on why the math library configure test failed.
>

oh, it is caused by -Werror.

conftest.c:59:1: note: 'atan' is declared in header '<math.h>'
   58 | #include <limits.h>
   59 | #undef atan
cc1: all warnings being treated as errors

See also:

   54 | int64_t x;
      |         ^
cc1: all warnings being treated as errors

Now with

        CFLAGS="-g -Wall -fno-common -Wextra -Wunused" \
     CXXFLAGS="-g -Wall -I/usr/include"  \
            ./configure --prefix=/opt/grass \
            --enable-largefile --enable-shared \
            --with-blas --with-bzlib --with-cairo --with-cxx
--with-freetype \
            --with-freetype-includes=/usr/include/freetype2 --with-gdal \
            --with-geos --with-lapack --with-netcdf --with-nls \
            --with-odbc --with-openmp --with-pdal=no \
            --with-postgres
--with-postgres-includes=/usr/include/postgresql \
            --with-proj-share=/usr/share/proj --with-readline \
            --with-sqlite --with-x --with-zstd

it compiles...

Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20240124/88a498b9/attachment.htm>


More information about the grass-dev mailing list