[gccsdk] Problems building crosscompiler

John Tytgat John.Tytgat at aaug.net
Sat Nov 7 13:04:36 PST 2009


In message <1257610848.327.132.camel at ubuntu>
          Jan-Jaap van der Geer <jjvdgeer at inbox.com> wrote:

> [...]
> cd /home/jjvdgeer/gccsdk/gcc4/srcdir/libstdc++-v3
> && /bin/sh /home/jjvdgeer/gccsdk/gcc4/srcdir/missing --run autoheader
> configure.ac:83: error: m4_copy: won't overwrite defined macro:
> _AC_ARG_VAR_PRECIOUS
> acinclude.m4:48: GLIBCXX_CONFIGURE is expanded from...
> configure.ac:83: the top level
> autom4te: m4 failed with exit status: 1
> autoheader2.50: '/usr/bin/autom4te' failed with exit status: 1
> make[2]: *** [/home/jjvdgeer/gccsdk/gcc4/srcdir/libstdc
> ++-v3/config.h.in] Error 1
> make[2]: Leaving directory
> `/home/jjvdgeer/gccsdk/gcc4/builddir-cross/arm-unknown-riscos/libstdc
> ++-v3'
> make[1]: *** [all-target-libstdc++-v3] Error 2
> make[1]: Leaving directory `/home/jjvdgeer/gccsdk/gcc4/builddir-cross'
> make: *** [all] Error 2
> 
> What went wrong with the RISC OS compiler I don't remember, but may or
> may not have been the same thing.
> 
> I have recently upgraded to ubuntu 9.10.
> 
> Googling for a bit, I found this:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539972
> 
> It looks to me like the same problem. However, my default gcc seems to
> be gcc-4.4.1, I did not find any indication that this version was
> affected by this bug.

I would be surprised this would a problem in your host compiler (i.e. the
compiler used on your Ubuntu 9.10) and that we have to look for a solution
there.

My bet is that this is a case of not using autoconf2.59 (gcc4.1 really
need this exact version).  Have you installed the autoconfig2.59 package ?
After you've done that, restart for scratch (ie. the srcdir needs to
be reconfigured using the recipe/scripts/reconf-*).

John.
-- 
John Tytgat, in his comfy chair at home                                 BASS
John.Tytgat at aaug.net                             ARM powered, RISC OS driven




More information about the gcc mailing list