Re: Building GCC 4.2.0 fails on Linux x86-64

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

 



Alexander Wieder writes:
 > Hi!
 > 
 > Andrew Haley wrote:
 > > See `config.log' for more details.
 > Good point. I'll try to really *read* error messages next time..
 > 
 > However, according to the log, two libraries were in fact missing:
 > libgmp and libmpfr. This seems a bit odd to me since GCC 4.2.0 compiled
 > just fine on OSX where these libs are definitely not installed. After
 > installing these libraries, the build still fails with the same error
 > and there are no errors or warnings in the config.log. The last entry in
 > the config.log says:
 > 	
 > 	configure:7345: gcc -c -g -O2 -fkeep-inline-functions  conftest.c 1>&5
 > 
 > So I guess, this is the command which failed to produce a runnable
 > binary. I wanted to take a look at this conftest.c, but there is no such
 > file in the source tree.

look at line 7345 in configure.  You'll see something like

cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
int
main ()
{
char* tmp;
	    	  strtof("gnu", &tmp);
		  strtold("gnu", &tmp);
	          strtoll("gnu", &tmp, 10);
	          strtoull("gnu", &tmp, 10);
	          llabs(10);
		  lldiv(10,1);
		  atoll("10");
		  _Exit(0);
		  lldiv_t mydivt;
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>conftest.er1

That's your test program.

Andrew.

[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