This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: error building binutils on cygwin


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
449AA079.4060302@redhat.com">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
>




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]