bug-gnuastro
[Top][All Lists]
Advanced

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

Re: [info-gnuastro] Gnuastro 0.10.61 released


From: Mohammad Akhlaghi
Subject: Re: [info-gnuastro] Gnuastro 0.10.61 released
Date: Mon, 18 Nov 2019 18:59:18 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

Dear Professor Ichikawa,

Thanks a lot for the check. I think have a solution to the error (described below). Can you please try this tarball (currently version 0.10.62):
https://akhlaghi.org/gnuastro-latest.tar.lz

I think the problem comes up because in the reported compilation command, `-I/home/ichikawa/.local/include' (your previous installation of Gnuastro and possibly other programs) has a higher precedence than `-I../lib' (which is in the unpacked tarball and contains this version's C headers).

This happens because of a recent change (after version 0.10) in BuildProgram where the CPPFLAGS and LDFLAGS environment variables were being passed to libtool with a higher precedence than the local tarball's build.

I changed the order so the values given to CPPFLAGS and LDFLAGS are now after BuildProgram's own options, you can see the relevant commit message here:
https://git.savannah.gnu.org/cgit/gnuastro.git/commit/?id=a0344ca2

I hope this fixes the problem ;-),
Cheers,
Mohammad



On 11/18/19 5:37 AM, ichikawa takashi wrote:
Mohammad,

Thank you for upgrading the gnuastro.
I send the bug-report of installing the latest version.
One FAIL appears.

Cheers,

Ichikawa


================================================================
    GNU Astronomy Utilities 0.10.61-c417: tests/test-suite.log
================================================================

# TOTAL: 61
# PASS:  60
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: buildprog/simpleio.sh
===========================

libtool: link: gcc -Wall -O3 -I/home/ichikawa/.local/include -I../lib -I../lib/ -I/home/ichikawa/.local/include ../tests/buildprog/simpleio.c -I/usr/local/include -o .libs/simpleio   -L/home/ichikawa/.local/lib ../lib/.libs/libgnuastro.so -L/usr/local/lib -ljpeg -lwcs -lcfitsio -lz /usr/local/lib/libgsl.so /usr/local/lib/libgslcblas.so -lm -lc -pthread -Wl,-rpath -Wl,/usr/local/lib
../tests/buildprog/simpleio.c: In function 'main':
../tests/buildprog/simpleio.c:42:9: error: too many arguments to function 'gal_fits_img_read'
    image=gal_fits_img_read(argv[1], argv[2], -1, 1);
          ^
In file included from ../tests/buildprog/simpleio.c:25:0:
/home/ichikawa/.local/include/gnuastro/fits.h:209:1: note: declared here
  gal_fits_img_read(char *filename, char *hdu, size_t minmapsize);
  ^

Compiling and linking the program
---------------------------------
/home/ichikawa/GnuAstro/gnuastro-0.10.61-c417/bin/buildprog/.libs/lt-astbuildprog: failed to build, see libtool error above
FAIL buildprog/simpleio.sh (exit status: 1)



reply via email to

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