Skip to content

Building on Windows with MSYS2 fails #472

@srs4511351

Description

@srs4511351

Installing NRSC5 on Windows 11 under MSYS2, the install fails with an automake version mismatch.

I use the commands

cd ~/
git clone https://github.com/theori-io/nrsc5.git
nrsc5/support/msys2-build

I removed the "-j4" because the error messages were scrambled, but it failed either way.

Here are the last of the compiler messages:

[  7%] Performing build step for 'fftw_external'
 cd /C/msys64/home/srs/nrsc5/build/fftw-prefix/src/fftw_external && C:/msys64/usr/bin/sh.exe /C/msys64/home/srs/nrsc5/build/fftw-prefix/src/fftw_external/missing automake-1.16 --gnu Makefile
configure.ac:31: error: version mismatch.  This is Automake 1.16.5,
configure.ac:31: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:31: comes from Automake 1.16.3.  You should recreate
configure.ac:31: aclocal.m4 with aclocal and run automake again.
WARNING: 'automake-1.16' is probably too old.
         You should only need it if you modified 'Makefile.am' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'automake' program is part of the GNU Automake package:
         <https://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <https://www.gnu.org/software/autoconf>
         <https://www.gnu.org/software/m4/>
         <https://www.perl.org/>
make[3]: *** [Makefile:560: /C/msys64/home/srs/nrsc5/build/fftw-prefix/src/fftw_external/Makefile.in] Error 63
make[2]: *** [CMakeFiles/fftw_external.dir/build.make:86: fftw-prefix/src/fftw_external-stamp/fftw_external-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:127: CMakeFiles/fftw_external.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

There are several versions installed by the script.

$ pacman -Ss | grep -i automake
msys/automake-wrapper 20250528-1 [installed]
    Wrapper scripts for automake commands
msys/automake1.11 1.11.6-6 [installed]
msys/automake1.12 1.12.6-6 [installed]
msys/automake1.13 1.13.4-7 [installed]
msys/automake1.14 1.14.1-6 [installed]
msys/automake1.15 1.15.1-4 [installed]
msys/automake1.16 1.16.5-1 [installed]
msys/automake1.17 1.17-1 [installed]
msys/automake1.18 1.18.1-1 [installed]

Does the automake version need to be updated?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions