public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* error building binutils on cygwin
@ 2006-06-19 10:41 Sveta
  2006-06-19 11:44 ` Dave Korn
  2006-06-22 14:11 ` Nick Clifton
  0 siblings, 2 replies; 4+ messages in thread
From: Sveta @ 2006-06-19 10:41 UTC (permalink / raw)
  To: binutils

I have fresh cygwin installation withour any customisations.

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
ei386pe.o: In function `gld_i386pe_unrecognized_file':
/projects/crosstool-0.42/build/i686-pc-cygwin/gcc-4.1.1-/build-binutils/ld/e
i386pe.c:1299: undefined
 reference to `_def_file_parse'
pe-dll.o: In function `pe_implied_import_dll':
/projects/crosstool-0.42/build/i686-pc-cygwin/gcc-4.1.1-/binutils/ld/pe-dll.
c:2632: undefined refere
nce to `_def_get_module'
/projects/crosstool-0.42/build/i686-pc-cygwin/gcc-4.1.1-/binutils/ld/pe-dll.
c:2660: undefined refere
nce to `_def_file_add_import'
/projects/crosstool-0.42/build/i686-pc-cygwin/gcc-4.1.1-/binutils/ld/pe-dll.
c:2617: undefined refere
nce to `_def_file_empty'
pe-dll.o: In function `pe_dll_build_sections':
/projects/crosstool-0.42/build/i686-pc-cygwin/gcc-4.1.1-/binutils/ld/pe-dll.
c:528: undefined referen
ce to `_def_file_add_directive'
/projects/crosstool-0.42/build/i686-pc-cygwin/gcc-4.1.1-/binutils/ld/pe-dll.
c:628: undefined referen
ce to `_def_file_add_export'
/projects/crosstool-0.42/build/i686-pc-cygwin/gcc-4.1.1-/binutils/ld/pe-dll.
c:581: undefined referen
ce to `_def_file_add_export'
/projects/crosstool-0.42/build/i686-pc-cygwin/gcc-4.1.1-/binutils/ld/pe-dll.
c:515: undefined referen
ce to `_def_file_empty'
collect2: ld returned 1 exit status
make[4]: *** [ld-new.exe] Error 1
make[4]: Leaving directory
`/projects/crosstool-0.42/build/i686-pc-cygwin/gcc-4.1.1-/build-binutils/
ld'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/projects/crosstool-0.42/build/i686-pc-cygwin/gcc-4.1.1-/build-binutils/
ld'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/projects/crosstool-0.42/build/i686-pc-cygwin/gcc-4.1.1-/build-binutils/
ld'
make[1]: *** [all-ld] Error 2
make[1]: Leaving directory
`/projects/crosstool-0.42/build/i686-pc-cygwin/gcc-4.1.1-/build-binutils'

make: *** [all] Error 2




^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: error building binutils on cygwin
  2006-06-19 10:41 error building binutils on cygwin Sveta
@ 2006-06-19 11:44 ` Dave Korn
  2006-06-22 14:11 ` Nick Clifton
  1 sibling, 0 replies; 4+ messages in thread
From: Dave Korn @ 2006-06-19 11:44 UTC (permalink / raw)
  To: 'Sveta', binutils

On 18 June 2006 09:32, Sveta wrote:

> I have fresh cygwin installation withour any customisations.
> 
> 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.

  I don't know, binutils builds fine for me on cygwin, both from tarballs and
from CVS.  I suspect you're having a problem with the crosstool script; you
should try reporting this on the crossgcc list rather than the main binutils
list, because that's where all the crosstools experts hang out.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: error building binutils on cygwin
  2006-06-19 10:41 error building binutils on cygwin Sveta
  2006-06-19 11:44 ` Dave Korn
@ 2006-06-22 14:11 ` Nick Clifton
  2006-06-26  2:52   ` Sveta
  1 sibling, 1 reply; 4+ messages in thread
From: Nick Clifton @ 2006-06-22 14:11 UTC (permalink / raw)
  To: Sveta; +Cc: binutils

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: error building binutils on cygwin
  2006-06-22 14:11 ` Nick Clifton
@ 2006-06-26  2:52   ` Sveta
  0 siblings, 0 replies; 4+ messages in thread
From: Sveta @ 2006-06-26  2:52 UTC (permalink / raw)
  To: binutils

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
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-06-25 13:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-19 10:41 error building binutils on cygwin Sveta
2006-06-19 11:44 ` Dave Korn
2006-06-22 14:11 ` Nick Clifton
2006-06-26  2:52   ` Sveta

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).