mainGNU Astronomy Utilities - Support: sr #110906, brew install gnuastro crashes

 
 

sr #110906: brew install gnuastro crashes

Submitter:  None
Submitted:  Wed 26 Jul 2023 04:12:52 PM UTC
   
 
Category:  Installation Priority:  5 - Normal
Severity:  3 - Normal Item Group:  * Crash
Status:  Done Privacy:  Public
Assigned to:  makhlaghi Originator Email:  -email is unavailable-
Open/Closed:  Closed Operating System:  Mac OS
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 26 Jul 2023 04:51:52 PM UTC, comment #1: 

Brew has updated its internal version of CFITSIO (which is a dependency of Gnuastro), but the Brew maintainers have forgot to update their version of Gnuastro! This is poor practice on their side: when a low-level software is used by higher-level software, they should check the build-ability of the higher-level software before updating the lower-level software.

Unfortunately this shows that even relatively large package managers like Brew can do a sloppy job at managing dependencies. I didn't know the version of Gnuastro on Brew is so ancient (Gnuastro 0.5 was released almost 6 years ago; back in 2017!). The latest release of Gnuastro is 0.20 which is 15 stable releases after 0.5!

Sometime after 2017 CFITSIO changed their version format string, so Gnuastro also needed to change to accommodate the new format. But Gnuastro 0.5 didn't yet know about this later change in CFITSIO.

A better maintained package manager these days is Conda which also builds on macOS; and Gnuastro is always up to date in Conda: https://anaconda.org/conda-forge/gnuastro

Alternatively, since all the dependencies are now in place, you can download the tarball and install that with Brew's libraries as described here: https://www.gnu.org/software/gnuastro/manual/html_node/Quick-start.html

Mohammad Akhlaghi <makhlaghi>
Group administrator
Wed 26 Jul 2023 04:12:52 PM UTC, original submission:  

Hello,

Sorry, i would rather avoid the builds and installs of all the dependencies so instead to install gnuastro am using Homebrew on my Mac M1 Pro OS Ventura 13.5. After following the instructions in the book:

brew tap brewsci/science

brew install wcslib gsl cfitsio

brew install ghostscript libtool libjpeg libtiff libgit2 curl lzip

which all concluded successfully, i tried:

brew install gnuastro

and received the following error (see below). It is not clear to me what is going on, very sorry for my ignorance, and many thanks for any illumination!

All the best,
leslie

==> Fetching brewsci/science/gnuastro
==> Downloading https://ftp.gnu.org/gnu/gnuastro/gnuastro-0.5.tar.gz
################################################################################################################# 100.0%
==> Installing gnuastro from brewsci/science
==> ./configure --prefix=/opt/homebrew/Cellar/gnuastro/0.5
==> make
Last 15 lines from /Users/lesliehunt/Library/Logs/Homebrew/gnuastro/02.make:
#define CFITSIO_VERSION 4.3.0
                           ^
1 error generated.
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../bootstrapped/lib -DSYSCONFIG_DIR=\"/opt/homebrew/Cellar/gnuastro/0.5/etc\" -I../lib -Wall -O3 -pthread -c arithmetic-multiply.c -o arithmetic-multiply.o >/dev/null 2>&1
make[2]: * [fits.lo] Error 1
make[2]: * Waiting for unfinished jobs....
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../bootstrapped/lib -DSYSCONFIG_DIR=\"/opt/homebrew/Cellar/gnuastro/0.5/etc\" -I../lib -Wall -O3 -pthread -c interpolate.c  -fno-common -DPIC -o .libs/interpolate.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../bootstrapped/lib -DSYSCONFIG_DIR=\"/opt/homebrew/Cellar/gnuastro/0.5/etc\" -I../lib -Wall -O3 -pthread -c git.c -o git.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../bootstrapped/lib -DSYSCONFIG_DIR=\"/opt/homebrew/Cellar/gnuastro/0.5/etc\" -I../lib -Wall -O3 -pthread -c list.c  -fno-common -DPIC -o .libs/list.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../bootstrapped/lib -DSYSCONFIG_DIR=\"/opt/homebrew/Cellar/gnuastro/0.5/etc\" -I../lib -Wall -O3 -pthread -c arithmetic-plus.c -o arithmetic-plus.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../bootstrapped/lib -DSYSCONFIG_DIR=\"/opt/homebrew/Cellar/gnuastro/0.5/etc\" -I../lib -Wall -O3 -pthread -c interpolate.c -o interpolate.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../bootstrapped/lib -DSYSCONFIG_DIR=\"/opt/homebrew/Cellar/gnuastro/0.5/etc\" -I../lib -Wall -O3 -pthread -c list.c -o list.o >/dev/null 2>&1
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I.. -I../bootstrapped/lib -DSYSCONFIG_DIR=\"/opt/homebrew/Cellar/gnuastro/0.5/etc\" -I../lib -Wall -O3 -pthread -c data.c -o data.o >/dev/null 2>&1
make[1]: * [all-recursive] Error 1
make: * [all] Error 2



Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-07-26 makhlaghi StatusNone Done
        Assigned toNone makhlaghi
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.14-8eb0.
    Corresponding source code