------- Comment #2 from rob1weld at aol dot com  2009-02-23 03:51 -------
Rainer, while we wait for the patch did you wish to try this:


1. Edit the gcc/configure (Line 9562) and reverse the detection order:

- for ac_header in gelf.h libelf/gelf.h
+ for ac_header in libelf/gelf.h gelf.h


2. Edit lto_plugin/lto_plugin.c and lto_plugin/lto-symtab.c and
both add in ../gcc/auto-host.h and change the define testing order:


#undef PACKAGE_NAME
#undef PACKAGE_STRING
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION
#include "../gcc/auto-host.h"

#ifdef    __COMMENT__
#ifdef HAVE_GELF_H
# include <gelf.h>
#else
# if defined(HAVE_LIBELF_GELF_H)
#   include <libelf/gelf.h>
# else
#  error "gelf.h not available"
# endif
#endif
#endif /* __COMMENT__ */

#if defined(HAVE_LIBELF_GELF_H)
#   include <libelf/gelf.h>
#else
# ifdef HAVE_GELF_H
#   include <gelf.h>
# else
#  error "gelf.h not available"
# endif
#endif


You can hand-compile to fix the 'Werror" that will remain:

cc1: warnings being treated as errors
../../lto_trunk/lto-plugin/lto-plugin.c: In function ‘onload’:
../../lto_trunk/lto-plugin/lto-plugin.c:670: error: implicit declaration of
function ‘mkdtemp’
../../lto_trunk/lto-plugin/lto-plugin.c:670: error: assignment makes pointer
from integer without a cast
gmake[3]: *** [lto-plugin.lo] Error 1


That fixes it for me.

Rob


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39019

Reply via email to