From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2506 invoked by alias); 23 Feb 2009 03:52:03 -0000 Received: (qmail 2475 invoked by uid 48); 23 Feb 2009 03:51:51 -0000 Date: Mon, 23 Feb 2009 03:52:00 -0000 Message-ID: <20090223035151.2474.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug bootstrap/39019] Solaris and IRIX libelf cause trouble for build In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rob1weld at aol dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-02/txt/msg01984.txt.bz2 ------- 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 #else # if defined(HAVE_LIBELF_GELF_H) # include # else # error "gelf.h not available" # endif #endif #endif /* __COMMENT__ */ #if defined(HAVE_LIBELF_GELF_H) # include #else # ifdef HAVE_GELF_H # include # 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