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

Nicklas Larsson n_larsson at yahoo.com
Wed Jan 24 05:57:36 PST 2024


This link might help:
https://www.debian.org/doc/manuals/debian-reference/ch12.en.html#_coding_in_compiled_languages


> On 24 Jan 2024, at 14:46, Nicklas Larsson <n_larsson at yahoo.com> wrote:
> 
> Another thought, configure fails at locating the math library which is part of standard C library. If not installed, you’ll probably need `glibc`.
> 
>> On 24 Jan 2024, at 14:00, Nicklas Larsson via grass-dev <grass-dev at lists.osgeo.org> wrote:
>> 
>> Martin,
>> 
>> Noting that you use a non-default prefix, you may need to add `LDFLAGS="-L/usr/lib”` (and perhaps add ´”-I/usr/include” to CFLAGS and CXXFLAGS).
>> The same result could perhaps be reached with `--with-includes=/usr/include --with-libs=/usr/lib` added to configure, although that I’m not sure of.
>> 
>> 
>> Best,
>> Nicklas
>> 
>> 
>> 
>>> On 24 Jan 2024, at 13:34, Martin Landa via grass-dev <grass-dev at lists.osgeo.org> wrote:
>>> 
>>> Hi, 
>>> 
>>> I am unable to compile GRASS on Debian testing. The configure fails with:
>>> 
>>> checking for atan... no
>>> checking for atan in -lm... no
>>> configure: error: *** Failed check for math library.
>>> 
>>> I installed dependencies by
>>> 
>>> apt build-dep grass
>>> 
>>> and run
>>> 
>>>         CFLAGS="-g -Wall -Werror -fno-common -Wextra -Wunused" \
>>>    CXXFLAGS="-g -Wall"  \
>>>    ./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
>>> 
>>> Any idea what could be wrong? Thanks in advance, Martin
>>> 
>>> -- 
>>> Martin Landa
>>> http://geo.fsv.cvut.cz/gwiki/Landa
>>> http://gismentors.cz/mentors/landa
>>> _______________________________________________
>>> grass-dev mailing list
>>> grass-dev at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/grass-dev
>> 
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-dev
> 



More information about the grass-dev mailing list