This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Cross-compiling gcc 4.3.0 to arm-wince-pe : Binutils error
- From: <forumer at smartmobili dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 01 Jun 2008 15:17:38 +0200
- Subject: Cross-compiling gcc 4.3.0 to arm-wince-pe : Binutils error
Hi,
I am trying to generate a cross-compiler targetting the windows CE
platform on a cygwin host (Windows XP SP3 + latest cygwin).
I have downloaded the following package :
binutils-2.18.tar.bz2
gcc-4.3.0.tar.bz2
newlib-1.16.0.tar.gz
and i started to build binutils
/configure --prefix=/opt/cegcc --target=arm-wince-pe --disable-nls
make
But I get the following errors during ld build :
make[4]: Entering directory `/home/Vincent/src/binutils-2.18/ld'
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes
-Wmissin
g-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 ldc
ref.o sha1.o earm_wince_pe.o deffilep.o pe-dll.o ../bfd/libbfd.la
../libiberty/l
ibiberty.a
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Werror -g
-O2 -o .libs/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 ldcref.o sha1.o
earm_win
ce_pe.o deffilep.o pe-dll.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a
deffilep.o: In function `main':
/home/Vincent/src/binutils-2.18/ld/deffilep.c:1: multiple definition of
`_main'
ldmain.o:/home/Vincent/src/binutils-2.18/ld/.././ld/ldmain.c:185: first
defined
here
earm_wince_pe.o: In function `gld_arm_wince_pe_unrecognized_file':
/home/Vincent/src/binutils-2.18/ld/.././ld/emultempl/pe.em:1371: undefined
refer
ence to `_def_file_parse'
pe-dll.o: In function `pe_implied_import_dll':
/home/Vincent/src/binutils-2.18/ld/pe-dll.c:2744: undefined reference to
`_def_g
et_module'
/home/Vincent/src/binutils-2.18/ld/pe-dll.c:2772: undefined reference to
`_def_f
ile_add_import'
/home/Vincent/src/binutils-2.18/ld/pe-dll.c:2729: undefined reference to
`_def_f
ile_empty'
pe-dll.o: In function `pe_dll_build_sections':
/home/Vincent/src/binutils-2.18/ld/pe-dll.c:596: undefined reference to
`_def_fi
le_add_directive'
/home/Vincent/src/binutils-2.18/ld/pe-dll.c:703: undefined reference to
`_def_fi
le_add_export'
/home/Vincent/src/binutils-2.18/ld/pe-dll.c:653: undefined reference to
`_def_fi
le_add_export'
/home/Vincent/src/binutils-2.18/ld/pe-dll.c:583: undefined reference to
`_def_fi
le_empty'
collect2: ld returned 1 exit status
make[4]: *** [ld-new.exe] Error 1
make[4]: Leaving directory `/home/Vincent/src/binutils-2.18/ld'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/Vincent/src/binutils-2.18/ld'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Vincent/src/binutils-2.18/ld'
make[1]: *** [all-ld] Error 2
make[1]: Leaving directory `/home/Vincent/src/binutils-2.18'
make: *** [all] Error 2
If someone could explain to me why and how I can solve this.