Opened 2 years ago

Closed 22 months ago

#66254 closed defect (fixed)

gnuastro fails on PPC: error: Something went wrong bootstrapping makefile fragments for automatic dependency tracking

Reported by: barracuda156 Owned by: sikmir (Nikolay Korotkiy)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: powerpc, leopard, snowleopard Cc:
Port: gnuastro

Description

config.status: creating config.h
config.status: executing depfiles commands
config.status: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gnuastro/gnuastro/work/gnuastro-0.18':
config.status: error: Something went wrong bootstrapping makefile fragments
    for automatic dependency tracking.  If GNU make was not used, consider
    re-running the configure script with MAKE="gmake" (or whatever is
    necessary).  You can also try re-running configure with the
    '--disable-dependency-tracking' option to at least be able to build
    the package (albeit without support for automatic dependency tracking).
See `config.log' for more details
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gnuastro/gnuastro/work/gnuastro-0.18" && ./configure --prefix=/opt/local 
Exit code: 1

Identical error on 10.5.8 and 10A190.

Attachments (1)

main.log (50.2 KB) - added by barracuda156 2 years ago.

Download all attachments as: .zip

Change History (7)

Changed 2 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 2 years ago by barracuda156

Owner: set to sikmir
Status: newassigned
Summary: gnuastro fails on PPC:gnuastro fails on PPC: error: Something went wrong bootstrapping makefile fragments for automatic dependency tracking

comment:2 Changed 2 years ago by barracuda156

This did not help:

platform powerpc {
    depends_build-append \
                        port:gmake
    build.cmd           ${prefix}/bin/gmake
}

comment:3 Changed 2 years ago by barracuda156

Adding this:

platform powerpc {
    configure.args-append \
                        --disable-dependency-tracking
}

solved initial error, but the build still failed on:

--->  Building gnuastro
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gnuastro/gnuastro/work/gnuastro-0.18" && /usr/bin/make -j4 -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gnuastro/gnuastro/work/gnuastro-0.18'
Makefile:2000: *** missing separator.  Stop.
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gnuastro/gnuastro/work/gnuastro-0.18'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gnuastro/gnuastro/work/gnuastro-0.18" && /usr/bin/make -j4 -w all 
Exit code: 2
Error: Failed to build gnuastro: command execution failed

comment:4 Changed 2 years ago by barracuda156

Makefile has:

SUGGESTEDJOBS = =
4

Which is obvious nonsense. Apparently this code in configure does not work correctly:

        if test $has_sysctl = yes
then :
  jobs=$(sysctl -a | awk '/^hw\.ncpu/{print $2}')
else $as_nop
  jobs=8
fi

fi
SUGGESTEDJOBS=$jobs
Last edited 2 years ago by barracuda156 (previous) (diff)

comment:5 Changed 2 years ago by barracuda156

Yes, the code is wrong:

36-5:gnuastro-0.18 svacchanda$ sysctl -a | awk '/^hw\.ncpu/{print $2}'
kern.exec: unknown type returned
=
4

comment:6 Changed 22 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In c1c209595e8ff89cb2a5aaf79a371af9449ab95f/macports-ports (master):

gnuastro: fix broken suggested buildjobs in configure, use Macports setting
Fixes: #66254

Note: See TracTickets for help on using tickets.