public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Sveta" <zhenja@zlo.ee>
To: binutils@sources.redhat.com
Subject: Re: error building binutils on cygwin
Date: Mon, 26 Jun 2006 02:52:00 -0000	[thread overview]
Message-ID: <e7m4bb$iut$1@sea.gmane.org> (raw)
In-Reply-To: <449AA079.4060302@redhat.com>

I did not have bison istalled at all. I installed that now, but result is
the same. The crosstool directory in the log does not refer to crosstool. I
really try to build binutils from sources without any other scripts.


"Nick Clifton" <nickc@redhat.com> wrote in message
news:449AA079.4060302@redhat.com...
> Hi Sveta,
>
> > I need to build binutils. Tried different versions from 2.16.1 to
2.16.94.
> > Always the same problem, which is shown in the log below. Please give me
the
> > hint - how to solve that.
> >
> > mkdir .libs
> > gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -o
> > ld-new.exe ldgram.o ldlex.o
> > lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o
ldver.o
> > ldmisc.o ldfile.o ldcre
> > f.o ei386pe.o deffilep.o pe-dll.o  ../bfd/.libs/libbfd.a
> > ../libiberty/libiberty.a
> > deffilep.o: In function `main':
> >
/projects/crosstool-0.42/build/i686-pc-cygwin/gcc-4.1.1-/build-binutils/ld/d
> > effilep.c:1: multiple de
> > finition of `_main'
> >
ldmain.o:/projects/crosstool-0.42/build/i686-pc-cygwin/gcc-4.1.1-/binutils/l
> > d/ldmain.c:183: first de
> > fined here
>
> It looks like you have a bad or out of date version of bison installed
> on your machine.  The constructed deffile.c file is not supposed to have
> a main() function in it.
>
> Please check to see which version of bison you have installed, and
> update it if you can.
>
> Cheers
>    Nick
>



      reply	other threads:[~2006-06-25 13:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-19 10:41 Sveta
2006-06-19 11:44 ` Dave Korn
2006-06-22 14:11 ` Nick Clifton
2006-06-26  2:52   ` Sveta [this message]

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='e7m4bb$iut$1@sea.gmane.org' \
    --to=zhenja@zlo.ee \
    --cc=binutils@sources.redhat.com \
    /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).