Thu 16 Jun 2005 05:31:26 AM UTC, original submission:
While trying to build the AVR toolchain for Linux using the Moffitt/Erasmus shell scripts on an up to date Gentoo system, I ran in to the problem where the AVR Libc build failed with the error:
cd ../../source/avr-libc-1.2.3 && autoconf
FATAL ERROR: Autoconf version 2.50 or higher is required for this script
make: *** [../../source/avr-libc-1.2.3/configure] Error 2
(./buildavr.sh) libc build failed
In Gentoo, autoconf is actually a wrapper script that tries to intelligently choose the expected version of autoconf depending on a number of factors, including the version of autoconf that was used to create the "configure" file.
In avr-libc-1.2.3, the configure file was created using autoconf version 2.13 (according to the comments in the file header), so the wrapper sensibly attempts to use this version of autoconf. Unfortunately, aclocal.m4 states that it needs version 2.50 with the line AC_PREREQ(2.50), so the build fails.
I tried to work around this problem by changing the shell script to remove the configure file and then run autoconf just after untarring the archive. But then the build failed after reconf insisted on once again using autoconf213:
+ aclocal
+ autoconf-2.13
FATAL ERROR: Autoconf version 2.50 or higher is required for this script
+ automake --foreign --add-missing --copy
(./buildavr.sh) configuring libc source
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
configure: error: C compiler cannot create executables
See `config.log' for more details.
(./buildavr.sh) libc configuration failed
Could the various configuration files bundled with AVR Libc please be created with the same version of autoconf?
|