Re: GCC 4.3.0 configure failure: libgcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello James,

* James Molloy wrote on Tue, May 06, 2008 at 04:24:37PM CEST:
>
> I'm attempting to build GCC 4.3.0 - and I thought I had succeeded until  
> I realised that the 'all-gcc' make target (now?) doesn't build libgcc.a.

>    configure:4082: g++ -c -g -O2  conftest.cc >&5
>    conftest.cc: In function 'int main()':
>    conftest.cc:13: error: 'exit' was not declared in this scope

> As you can see, the test program autoconf is generating does not include  
> <cstdlib>, so g++ is perfectly correct in erroring.

> Compiling GCC 4.3.0 from source using G++ 4.1.2, autoconf 2.61, and  
> automake 1.10.

Use Autoconf 2.59 to generate configure (and Automake 1.9.6).  Better
yet, do not regenerate configure scripts at all, just use those shipped
with 4.3.0.

Newer Autoconf versions don't take care to declare exit any more.
The GCC macros need to be adjusted for this before using newer Autoconf.
I'll post a patch.

Hope that helps.

Cheers,
Ralf

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux