This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Reconfiguring newlib-1.16.0 for AVR32


IIRC, that was what the main issue was with Ulf's build script.

Thanks, Jeff.

Eric Weddington
Atmel

> -----Original Message-----
> From: newlib-owner@sourceware.org [mailto:newlib-owner@sourceware.org] On
> Behalf Of Jeff Johnston
> Sent: Tuesday, June 14, 2011 12:31 AM
> To: newlib@sourceware.org
> Subject: Re: Reconfiguring newlib-1.16.0 for AVR32
> 
> Did you remember to specify the proper -I options on your aclocal calls?
>   You need to point to both the acinclude.m4 in the top-level newlib
> directory "and" libtool.m4 in the top-level src directory.  For example,
> for newlib/libc:
> 
> aclocal -I .. -I ../..
> 
> -- Jeff J.
> 
> On 06/13/2011 05:06 AM, Ulf Samuelsson wrote:
> > I am trying to build newlib-1.16.0 for the AVR32 based on the Atmel
> > patches.
> > (They do not supply patches for anything later)
> >
> > These patches will update source, but not the Makefile.in and configure
> > scripts
> > so the build will fail, and I do not have their build scripts.
> >
> > I installed
> > * automake-1.9.6
> > * autoconf-2.64
> > * libtool-2.2.8
> >
> > I have run
> > aclocal
> > autoconf
> > automake
> >
> > in the newlib directory and some subdirectories updating:
> >
> > newlib/Makefile.in
> > newlib/aclocal.m4
> > newlib/configure
> > newlib/libc/aclocal.m4 | 6 +-
> > newlib/libc/argz/Makefile.in | 1 +
> > newlib/libc/ctype/Makefile.in | 1 +
> > newlib/libc/errno/Makefile.in | 1 +
> > newlib/libc/iconv/Makefile.in | 1 +
> > newlib/libc/iconv/ccs/Makefile.in | 1 +
> > newlib/libc/iconv/ccs/binary/Makefile.in | 1 +
> > newlib/libc/iconv/ces/Makefile.in | 1 +
> > newlib/libc/iconv/lib/Makefile.in | 1 +
> > newlib/libc/locale/Makefile.in | 1 +
> > newlib/libc/machine/Makefile.in | 15 +-
> > newlib/libc/machine/avr32/Makefile.in | 405 ++
> > newlib/libc/machine/avr32/aclocal.m4 | 880 +++
> > newlib/libc/machine/avr32/configure | 4620 ++++++++++++++
> > newlib/libc/misc/Makefile.in | 1 +
> > newlib/libc/posix/Makefile.in | 1 +
> > newlib/libc/reent/Makefile.in | 1 +
> > newlib/libc/search/Makefile.in | 1 +
> > newlib/libc/signal/Makefile.in | 1 +
> > newlib/libc/stdio/Makefile.in | 1 +
> > newlib/libc/stdio64/Makefile.in | 1 +
> > newlib/libc/stdlib/Makefile.in | 1 +
> > newlib/libm/Makefile.in | 1 +
> > newlib/libm/common/Makefile.in | 1 +
> > newlib/libm/configure | 6809 +++++++++-------------
> > newlib/libm/math/Makefile.in | 1 +
> > newlib/libm/mathfp/Makefile.in | 1 +
> > newlib/libc/sys/configure
> > newlib/libc/sys/avr32/Makefile.in
> > newlib/libc/sys/avr32/aclocal.m4
> > newlib/libc/sys/avr32/configure
> >
> > When I run automake in newlib/libc I get:
> >
> > configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
> > configure.in: You should verify that configure.in invokes
> AM_INIT_AUTOMAKE,
> > configure.in: that aclocal.m4 is present in the top-level directory,
> > configure.in: and that aclocal.m4 was recently regenerated (using
> aclocal).
> > argz/Makefile.am:8: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > argz/Makefile.am:35: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > ctype/Makefile.am:23: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > ctype/Makefile.am:55: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > errno/Makefile.am:11: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > iconv/ccs/Makefile.am:23: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > iconv/ces/Makefile.am:21: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > iconv/lib/Makefile.am:17: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > locale/Makefile.am:10: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > locale/Makefile.am:25: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > misc/Makefile.am:11: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > posix/Makefile.am:23: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > posix/Makefile.am:26: ELIX_LEVEL_2 does not appear in AM_CONDITIONAL
> > posix/Makefile.am:29: ELIX_LEVEL_3 does not appear in AM_CONDITIONAL
> > posix/Makefile.am:39: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > reent/Makefile.am:22: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > reent/Makefile.am:25: ELIX_LEVEL_2 does not appear in AM_CONDITIONAL
> > reent/Makefile.am:55: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > search/Makefile.am:16: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > search/Makefile.am:37: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > signal/Makefile.am:11: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > stdio/Makefile.am:89: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > stdio/Makefile.am:106: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > stdio/Makefile.am:109: ELIX_LEVEL_2 does not appear in AM_CONDITIONAL
> > stdio/Makefile.am:112: ELIX_LEVEL_3 does not appear in AM_CONDITIONAL
> > stdio/Makefile.am:136: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > stdio64/Makefile.am:11: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > stdio64/Makefile.am:28: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > stdlib/Makefile.am:121: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > stdlib/Makefile.am:125: ELIX_LEVEL_2 does not appear in AM_CONDITIONAL
> > stdlib/Makefile.am:129: ELIX_LEVEL_3 does not appear in AM_CONDITIONAL
> > stdlib/Makefile.am:147: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > string/Makefile.am:74: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > string/Makefile.am:92: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > string/Makefile.am:136: unterminated conditionals: ELIX_LEVEL_1_FALSE
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > syscalls/Makefile.am:26: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > syscalls/Makefile.am:29: ELIX_LEVEL_2 does not appear in AM_CONDITIONAL
> > syscalls/Makefile.am:41: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > time/Makefile.am:31: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > unix/Makefile.am:25: ELIX_LEVEL_1 does not appear in AM_CONDITIONAL
> > unix/Makefile.am:28: ELIX_LEVEL_2 does not appear in AM_CONDITIONAL
> > unix/Makefile.am:31: ELIX_LEVEL_3 does not appear in AM_CONDITIONAL
> > unix/Makefile.am:41: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> > Makefile.am:44: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > Makefile.am:93: USE_LIBTOOL does not appear in AM_CONDITIONAL
> > configure.in: `AM_MAINTAINER_MODE' required when --cygnus specified
> >
> > "autoconf --with-maintainer-mode" does not work.
> >
> > i tried adding AM_INIT_AUTOMAKE to "configure.ac" without success.
> >
> > Any clues?
> >
> > One of the AVR32 patches (copied from ARM I guess) contain:
> >
> >
> > diff -x .svn -x etc -x binary -x autom4te.cache -Narup
> > ./newlib-1.16.0/newlib/libc/machine/avr32/configure.in
> > ./newlib/newlib/libc/machine/avr32/configure.in
> > --- ./newlib/libc/machine/avr32/configure.in 1969-12-31
> > 17:00:00.000000000 -0700
> > +++ ./newlib/libc/machine/avr32/configure.in 2009-01-05
> > 17:36:50.987164700 -0700
> > @@ -0,0 +1,14 @@
> > +dnl This is the newlib/libc/machine/arm configure.in file.
> > +dnl Process this file with autoconf to produce a configure script.
> > +
> > +AC_PREREQ(2.59)
> > +AC_INIT([newlib],[NEWLIB_VERSION])
> > +AC_CONFIG_SRCDIR([Makefile.am])
> > +
> > +dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
> > +AC_CONFIG_AUX_DIR(../../../..)
> > +
> > +NEWLIB_CONFIGURE(../../..)
> > +
> > +AC_CONFIG_FILES([Makefile])
> > +AC_OUTPUT
> >
> > i am having problem with NEWLIB_CONFIGURE is not expanded.
> > When I edit the "configure.in" file, then "known" macros are
> > highlighted but NEWLIB_CONFIGURE is not.
> >
> > NEWLIB_CONFIGURE is defined in "newlib/acinclude.m4"
> >
> > Any advice is welcome!
> >
> > Best Regards
> > Ulf Samuelsson
> >


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]