gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #61192] BuildProg does not add the proper flags


From: Raul Infante-Sainz
Subject: [bug #61192] BuildProg does not add the proper flags
Date: Mon, 20 Sep 2021 08:45:16 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?61192>

                 Summary: BuildProg does not add the proper flags
                 Project: GNU Astronomy Utilities
            Submitted by: infantesainz
            Submitted on: Mon 20 Sep 2021 12:45:14 PM UTC
                Category: BuildProgram
                Severity: 3 - Normal
              Item Group: Crash
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

When trying to compile with 'BuildProgram' a small program that uses the
function 'asinh' from 'math.h', an error occurs.


$ astbuildprog FileName.c

astbuildprog FileName.c 

Compiling and linking the program
---------------------------------
libtool: link: gcc -Wall -O3 FileName.c -I/usr/local/include -o FileName 
/usr/local/lib/libgnuastro.so -pthread
/usr/bin/ld: /tmp/ccpCWGkZ.o: undefined reference to symbol
'asinh@@GLIBC_2.2.5'
/usr/bin/ld: /lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
astbuildprog: failed to build, see libtool error above


In this particular case, the problem can be fixed by adding the flag '-lm'.
However, it is necessary to check what is happening because the main goal of
using 'BuildProgram' is actually to avoid having to add all necessary flags
manually. This issue happen with Gnuastro 0.15.54-4846 in Ubuntu 20.04.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61192>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]