bugAVR C Runtime Library - Bugs: bug #13416, autoconf version does not match...

 
 

bug #13416: autoconf version does not match various AVR Libc config files

Submitted by:  None
Submitted on:  Thu 16 Jun 2005 05:31:26 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: NonePercent Complete: 0%
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: ClosedRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 22 Jul 2005 08:29:38 PM UTC, comment #2:

Sorry, this all looks like an autoconf problem to me.

I've been using autoconf-1.4 (called by that name) in order to
run ./reconf before releasing the tarball, but I've also
observed several oddities during that process. E.g. if that
tool is called "autoconf14" (FreeBSD's default), it will insist
on finding autoconf-1.4 upon "make distcheck".

It's probably best if you don't have any of these tools without
the version numbers appended in your $PATH at all -- at least
that's my experience. Send your thanks to the autoconf authors
for not providing fully backwards-compatible versions of their
tools.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Sun 03 Jul 2005 06:26:49 PM UTC, comment #1:

I have explored this a little further and found that the problem is caused by running reconf in this environment. It radically changes the aclocal.m4 file, setting it so it expects the newer version of autoconf while the scripts have all been made with the older version. The difference between the old scripts (which were not rebuilt with reconf) and the new m4 settings is what causes the problem. I have attached the resulting aclocal.m4 file.

I changed my scripts to more closely resemble the instructions for avr-libc given at http://www.nongnu.org/avr-libc/user-manual/install_tools.html and everything is working okay.

Note for others who may also be using the Moffitt/Erasmus shell scripts on Gentoo: there is no need to run reconf unless you are building avr-libc from CVS. If you are building from CVS, you will have to temporarily rename your system autoconf files to force the scripts to consistantly use one version.

John Altstadt <altstadt>
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?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #3143:  aclocal.m4 added by altstadt (36KiB - application/octet-stream - new aclocal.m4 created by reconf)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 22 Jul 2005 08:29:38 PM UTCjoerg_wunschOpen/ClosedOpen=>Closed
Sun 03 Jul 2005 06:26:49 PM UTCaltstadtAttached File-=>Added aclocal.m4, #2652
Thu 16 Jun 2005 05:31:26 AM UTCNoneCarbon-Copy-=>Added altstadt --AT-- telus --DOT-- net

Back to the top


Powered by Savane 3.1-cleanup1