Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error when doing 'make' #47

Open
jpelletier opened this issue Dec 5, 2024 · 2 comments
Open

Compiling error when doing 'make' #47

jpelletier opened this issue Dec 5, 2024 · 2 comments

Comments

@jpelletier
Copy link

jpelletier commented Dec 5, 2024

When doing 'make' it displays this warning and exit
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /usr/local/src/ZXCC/config/missing --run aclocal-1.11 -I m4
/usr/local/src/ZXCC/config/missing: ligne 81: aclocal-1.11 : commande introuvable
WARNING: 'aclocal-1.11' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' 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: *** [Makefile:322 : aclocal.m4] Erreur 127

My version of ACLOCAL is 1.16

@agn453
Copy link
Owner

agn453 commented Dec 5, 2024

My clairvoyant powers are lacking with respect to the specific environment you're trying to build ZXCC on.

Can you provide some details on the environment you're using? I'm assuming some flavour of Linux.

This looks like the autotools scripts need to be rebuilt (like it had to be to support Debian Bookworm a few months ago).

You can do this by re-cloning the repository, running ./configure and edit the Makefiles prior to doing a make.

cd ~/src
git clone https://github.com/agn453/ZXCC
cd ZXCC
./configure --prefix=$HOME

Next, edit the generated Makefile cpmio/Makefile and cpmredir/Makefile files changing both the aclocal-1.11 and automake-1.11 argument references for the missing script to just aclocal and automake respectively.

Now when you do a make, it will detect the versions of autoconf tools you have installed and update the scripts -

make
make install

I will need to do a bit of testing before I push the updated autotools scripts to the repository (to make sure it doesn't break older versions). This should get you going in the meantime.

Tony

@jpelletier
Copy link
Author

It was a fresh install of Ubuntu 2404 LTS on a new machine. I did the modifications in the generated Makefiles and it worked fine!
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants