Page 1 of 1

Cross Compiler: Error on binutils

Posted: Fri Apr 03, 2009 6:28 am
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.

Re: Cross Compiler: Error on binutils

Posted: Fri Apr 03, 2009 7:49 am
by pcmattman
Where did you obtain the Binutils source from?