public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC 4.3.0 configure failure: libgcc
@ 2008-05-06 14:27 James Molloy
  2008-05-06 23:25 ` Ralf Wildenhues
  0 siblings, 1 reply; 5+ messages in thread
From: James Molloy @ 2008-05-06 14:27 UTC (permalink / raw)
  To: gcc-help

Hi,

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.

So I'm now trying to make the 'all' target, and I'm getting a configure 
error in the libgcc directory. An extract of the config.log follows:

    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
    configure:4088: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    |
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | /* end confdefs.h.  */
    |
    | int
    | main ()
    | {
    | exit (42);
    |   ;
    |   return 0;
    | }

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

I'm not certain how to fix this - is it just a case of hacking the 
config.in file? I'd appreciate any help.

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

Thanks,

James

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-08  6:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-06 14:27 GCC 4.3.0 configure failure: libgcc James Molloy
2008-05-06 23:25 ` Ralf Wildenhues
2008-05-07  8:16   ` James Molloy
2008-05-07 21:06     ` gcc 4.2.x large file support Jonathan Saxton
2008-05-08  7:31       ` Michael Haubenwallner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).