bugGNU Astronomy Utilities - Bugs: bug #49460, When check linking fails, the...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #49460: When check linking fails, the successful checks message should not be printed

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Thu 27 Oct 2016 04:47:11 PM UTC
   
 
Category:  Installation Severity:  3 - Normal
Item Group:  Crash Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

(-)Discussion

Sun 21 Jan 2024 07:09:07 PM UTC, comment #4: 

You are right! This bug should have been closed some time ago! I must have forgot! Thanks a lot for checking and noticing this ;-).

Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 16 Jan 2024 06:19:18 PM UTC, comment #3: 

Using the tools on Debian Bookworm, "make check" ends after a linking error and does not show the success message anymore. Is this bug still reproducible?



/bin/bash ../../libtool  --tag=CC   --mode=link gcc  -Wall -O3  -pthread -L\../../lib  -o astarithmetic main.o ui.o arithmetic.o operands.o ../../bootstrapped/lib/libgnu.la -lgnuastro -lgit2 -ltiff -ljpeg -lwcs -lcfitsio -lz -lgsl -lgslcblas -lm  -lblubberbla2 -lpthread
libtool: link: gcc -Wall -O3 -o .libs/astarithmetic main.o ui.o arithmetic.o operands.o  -L../../lib ../../bootstrapped/lib/.libs/libgnu.a /home/thorsten/gnuastro/gnuastro-test/gnuastro/lib/.libs/libgnuastro.so -lgit2 -ltiff -ljpeg -lwcs -lcfitsio -lz -lgsl -lgslcblas -lm -lblubberbla2 -lpthread -pthread
/usr/bin/ld: cannot find -lblubberbla2: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: * [Makefile:2448: astarithmetic] Fehler 1
make[2]: Verzeichnis „/home/thorsten/gnuastro/gnuastro-test/gnuastro/bin/arithmetic“ wird verlassen
make[1]: * [Makefile:2603: check-recursive] Fehler 1
make[1]: Verzeichnis „/home/thorsten/gnuastro/gnuastro-test/gnuastro“ wird verlassen
make: * [Makefile:2904: check] Fehler 2

Thorsten Alteholz <alteholz>
Group Member
Fri 28 Oct 2016 08:20:38 AM UTC, comment #2: 

Sorry, the previous comment was a mistake, it should have been done on bug #49459!

Mohammad Akhlaghi <makhlaghi>
Group administrator
Fri 28 Oct 2016 08:19:23 AM UTC, comment #1: 

The problem is now fixed and pushed to the main repo. The problem was that I thought `AC_FUNC_MALLOC' is included by Gnulib, so after a check, I saw it isn't and we have to call it ourselves.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Thu 27 Oct 2016 04:47:11 PM UTC, original submission:  

The checks also include compiling programs with Gnuastro's library and running them. However, when there is an error in the creation of the executable (linking in the example below), the message that all tests have passed is apparently still printed.

The example below is related to bug #49459, kindly reported by Antonio Diaz Diaz.

In such cases that message should not be printed.


make[2]: Entering directory `/home/build/gnuastro-0.2/tests'
make  versioncpp arraymanip multithread
make[3]: Entering directory `/home/build/gnuastro-0.2/tests'
depbase=`echo lib/versioncpp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I..  -I../lib -DSYSCONFIG_DIR=\"/usr/local/etc\" -I../lib   -g -O2 -MT lib/versioncpp.o -MD -MP -MF $depbase.Tpo -c -o lib/versioncpp.o lib/versioncpp.cpp &&\
mv -f $depbase.Tpo $depbase.Po
/bin/sh ../libtool  --tag=CXX   --mode=link g++  -g -O2  -L../lib  -pthread -o versioncpp lib/versioncpp.o -lgnuastro -ljpeg -lwcs -lcfitsio -lgsl -lgslcblas -lm
libtool: link: g++ -g -O2 -pthread -o .libs/versioncpp lib/versioncpp.o  -L../lib /home/build/gnuastro-0.2/lib/.libs/libgnuastro.so /usr/lib64/libjpeg.so -lwcs -lcfitsio -lgsl -lgslcblas -lm -pthread -Wl,-rpath -Wl,/usr/lib64
/home/build/gnuastro-0.2/lib/.libs/libgnuastro.so: undefined reference to `rpl_malloc'
collect2: error: ld returned 1 exit status
make[3]: *** [versioncpp] Error 1
depbase=`echo lib/arraymanip.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -I../lib -DSYSCONFIG_DIR=\"/usr/local/etc\" -I../lib   -Wall -O3  -pthread -MT lib/arraymanip.o -MD -MP -MF $depbase.Tpo -c -o lib/arraymanip.o lib/arraymanip.c &&\
mv -f $depbase.Tpo $depbase.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -Wall -O3  -pthread  -L../lib  -pthread -o arraymanip lib/arraymanip.o -lgnuastro -ljpeg -lwcs -lcfitsio -lgsl -lgslcblas -lm
libtool: link: gcc -Wall -O3 -pthread -pthread -o .libs/arraymanip lib/arraymanip.o  -L../lib /home/build/gnuastro-0.2/lib/.libs/libgnuastro.so /usr/lib64/libjpeg.so -lwcs -lcfitsio -lgsl -lgslcblas -lm -pthread -Wl,-rpath -Wl,/usr/lib64
/home/build/gnuastro-0.2/lib/.libs/libgnuastro.so: undefined reference to `rpl_malloc'
collect2: error: ld returned 1 exit status
make[3]: *** [arraymanip] Error 1
depbase=`echo lib/multithread.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -I../lib -DSYSCONFIG_DIR=\"/usr/local/etc\" -I../lib   -Wall -O3  -pthread -MT lib/multithread.o -MD -MP -MF $depbase.Tpo -c -o lib/multithread.o lib/multithread.c &&\
mv -f $depbase.Tpo $depbase.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -Wall -O3  -pthread  -L../lib  -pthread -o multithread lib/multithread.o -lgnuastro -ljpeg -lwcs -lcfitsio -lgsl -lgslcblas -lm
libtool: link: gcc -Wall -O3 -pthread -pthread -o .libs/multithread lib/multithread.o  -L../lib /home/build/gnuastro-0.2/lib/.libs/libgnuastro.so /usr/lib64/libjpeg.so -lwcs -lcfitsio -lgsl -lgslcblas -lm -pthread -Wl,-rpath -Wl,/usr/lib64
/home/build/gnuastro-0.2/lib/.libs/libgnuastro.so: undefined reference to `rpl_malloc'
collect2: error: ld returned 1 exit status
make[3]: *** [multithread] Error 1
make[3]: Leaving directory `/home/build/gnuastro-0.2/tests'
make[2]: *** [check-am] Error 2
make[2]: Target `check' not remade because of errors.
make[2]: Leaving directory `/home/build/gnuastro-0.2/tests'
make[2]: Entering directory `/home/build/gnuastro-0.2'
make  check-local
make[3]: Entering directory `/home/build/gnuastro-0.2'

===================================================================
===================================================================
Your build of Gnuastro 0.2 didn't fail on any tests.
To install Gnuastro, please run the commands below:

(NOTE: As the user antonio, you don't have writing permissions
in "/usr/local". To install Gnuastro there, you must get
privileges first, as described below. If you can't, configure
Gnuastro again, for example: "./configure --prefix ~/.local".)

    sudo make install
or
    su
    make install
    exit

(The following "Leaving directory" notices can be ignored.)
===================================================================
===================================================================

make[3]: Leaving directory `/home/build/gnuastro-0.2'
make[2]: Leaving directory `/home/build/gnuastro-0.2'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/build/gnuastro-0.2'
make: *** [check] Error 2


Mohammad Akhlaghi <makhlaghi>
Group administrator

 

(-)Attached Files

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

(-)Dependencies

Depends on the following items: None found

Items that depend on this one: None found

 

(+)Mail Notification Carbon-Copy List

(+)Votes

(+)History

Back to the top

Powered by Savane 3.14-31c1.
Corresponding source code