periscop / openscop

A Specification and a Library for Data Exchange in Polyhedral Compilation Tools
BSD 3-Clause "New" or "Revised" License
26 stars 14 forks source link

autoconf failure at version 0.9.6 #46

Closed bondhugula closed 1 year ago

bondhugula commented 1 year ago

This is with autoconf 2.71 on a Fedora 38 and with the git tip. It looks like you have an error in your m4 macros somewhere.

commit a1c6c2c7ed7ebc3babdb0584b7f61198ce481e47 (HEAD, origin/master, origin/HEAD)
Author: Harenome Ranaivoarivony-Razanajato <ranaivoarivony-razanajato@hareno.me>
Date:   Thu Jun 15 10:48:30 2023 +0200

    bump version 0.9.6
./autogen.sh 
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal -I m4
autoreconf: running: /usr/bin/autoconf
configure:13751: error: possibly undefined macro: _AC_LANG_ABBREV
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure:13752: error: possibly undefined macro: m4_default
autoreconf: error: /usr/bin/autoconf failed with exit status: 1

Attached configure that was generated before it failed. (configure renamed as configure.txt to allow upload)

Running it a second time makes the issue disappear, but running ./configure:

checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for doxygen... doxygen
checking for texi2pdf... no
checking for C compiler vendor... gnu
./configure: line 13197: syntax error near unexpected token `$xlc_opt,'
[configure.txt](https://github.com/periscop/openscop/files/11782357/configure.txt)

./configure: line 13197: `         AX_CHECK_COMPILE_FLAG($xlc_opt,
harenome commented 1 year ago

It would seem that this problem rises because AX_CHECK_COMPILE_FLAG is not available. Can you try either of these solutions:

bondhugula commented 1 year ago

Install autoconf-archive resolves this. Thanks.