Cross Compiler: Error on binutils

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
instance
Posts: 16
Joined: Tue Mar 03, 2009 3:40 am

Cross Compiler: Error on binutils

Post by instance »

Hey,
While Trying to build a cross compiler with cygwin, I followed the exact steps given in the wiki. However, during: make all , I got the following errors:

Code: Select all

/usr/src/build-binutils/ld/deffilep.c:1: multiple definition of `_main'
ldmain.o:/usr/src/build-binutils/ld/../../binutils-2.19/ld/ldmain.c:184: first d
efined here
ei386pe.o: In function `gld_i386pe_unrecognized_file':
/usr/src/build-binutils/ld/../../binutils-2.19/ld/emultempl/pe.em:1393: undefine
d reference to `_def_file_parse'
pe-dll.o: In function `pe_implied_import_dll':
/usr/src/build-binutils/ld/../../binutils-2.19/ld/pe-dll.c:2781: undefined refer
ence to `_def_get_module'
/usr/src/build-binutils/ld/../../binutils-2.19/ld/pe-dll.c:2809: undefined refer
ence to `_def_file_add_import'
.........................
Could some1 help me out.. I'm not sure what I'm doing wrong.
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: Cross Compiler: Error on binutils

Post by pcmattman »

Where did you obtain the Binutils source from?
Post Reply