public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rob1weld at aol dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/39019] Solaris and IRIX libelf cause trouble for build Date: Mon, 23 Feb 2009 03:52:00 -0000 [thread overview] Message-ID: <20090223035151.2474.qmail@sourceware.org> (raw) In-Reply-To: <bug-39019-279@http.gcc.gnu.org/bugzilla/> [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 1408 bytes --] ------- 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
next prev parent reply other threads:[~2009-02-23 3:52 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-01-29 15:53 [Bug bootstrap/39019] New: " ro at gcc dot gnu dot org 2009-02-23 1:21 ` [Bug bootstrap/39019] " rob1weld at aol dot com 2009-02-23 3:52 ` rob1weld at aol dot com [this message] 2009-02-23 14:52 ` rob1weld at aol dot com 2009-03-10 4:23 ` rob1weld at aol dot com 2009-07-09 5:09 ` bje at gcc dot gnu dot org 2009-07-15 3:29 ` bje at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090223035151.2474.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).