[GRASS-dev] configurare fails: Failed check for math library
Nicklas Larsson
n_larsson at yahoo.com
Wed Jan 24 06:48:57 PST 2024
> On 24 Jan 2024, at 15:31, Martin Landa <landa.martin at gmail.com> wrote:
>
> Hi,
>
> st 24. 1. 2024 v 15:22 odesílatel Nicklas Larsson <n_larsson at yahoo.com <mailto: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.
>
Yes, of course!
You can add it after configure: e.g. `make CFLAGS=‘$CFLAGS -Werror’` if you want, but not before.
Cheers!
> 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/4f9601a3/attachment-0001.htm>
More information about the grass-dev
mailing list