public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Steffen Dettmer <steffen.dettmer@googlemail.com>
To: binutils@sourceware.org
Subject: binutils prerequisites (recent zlib version - what else?)
Date: Wed, 20 Apr 2011 12:44:00 -0000	[thread overview]
Message-ID: <BANLkTi=mS+p-kDS=PDe5Lx9wxwhYK3tykQ@mail.gmail.com> (raw)

Hi,

I'm trying to build gcc-4.6.0 with binutils-2.21 in the same
source directory which fails with

cc1: warnings being treated as errors
../../../gcc-4.6.0/binutils/bfd/compress.c: In function
`bfd_compress_section_contents':
../../../gcc-4.6.0/binutils/bfd/compress.c:100: warning: implicit
declaration of function `compressBound'
make[7]: *** [compress.lo] Error 1

(I guess without -Werror it won't link).
Google told that this is a zlib symbol and my zlib would be too
old. Do I need more libraries and stuff?

  (Also I'm afraid I could be unable to compile zlib because my
  gcc-3.2 is too old...)

I looked http://gcc.gnu.org/install/prerequisites.html and
 ../gcc-4.6.0/binutils-2.21/configure --help|grep zlib
but did not find --disable-zlib or alike.

Why do I need zlib at all?

Do I have a conflict of ../gcc-4.6.0/zlib/ (which seems to have
strange subdirs only, there is no "unix" or so) and
/usr/include/zlib.h?

I think binutils has low prerequisites and wonder why it does
not compile on linux, probably I did something wrong.

I extracted binutils to extracted gcc src dir and symlinked it to
"binutils" and configured gcc:
../gcc-4.6.0/configure \
  --prefix=/usr/local/exp/gcc-4.6.0/ \
  --enable-languages=c,c++,go

Any hints how to progress or pointers to some documentation I
missed are appreciated.

oki,

Steffen

             reply	other threads:[~2011-04-20 12:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-20 12:44 Steffen Dettmer [this message]
2011-04-26 14:52 ` Steffen Dettmer
2011-04-26 16:27   ` Ian Lance Taylor
2011-04-26 16:34     ` Steffen Dettmer
2011-04-26 17:04       ` H.J. Lu
2011-04-26 18:34         ` Steffen Dettmer
2011-04-26 18:05     ` kevin diggs
2011-04-26 18:11       ` kevin diggs
2011-04-26 18:21         ` Ian Lance Taylor
2011-04-26 18:19       ` Ian Lance Taylor
2011-04-26 18:39         ` Steffen Dettmer
2011-04-26 18:44           ` Steffen Dettmer
2011-04-27  6:08         ` Ralf Wildenhues
2011-08-04 22:08 ` [PATCH] Correct zlib checks [Was: binutils prerequisites (recent zlib version - what else?)] Maciej W. Rozycki
2011-08-05  7:52   ` Paolo Bonzini

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='BANLkTi=mS+p-kDS=PDe5Lx9wxwhYK3tykQ@mail.gmail.com' \
    --to=steffen.dettmer@googlemail.com \
    --cc=binutils@sourceware.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: link
Be 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).