From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 515 invoked by alias); 13 Apr 2005 22:39:55 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 495 invoked from network); 13 Apr 2005 22:39:48 -0000 Received: from unknown (HELO rproxy.gmail.com) (64.233.170.203) by sourceware.org with SMTP; 13 Apr 2005 22:39:48 -0000 Received: by rproxy.gmail.com with SMTP id r35so270144rna for ; Wed, 13 Apr 2005 15:39:48 -0700 (PDT) Received: by 10.38.86.53 with SMTP id j53mr1132428rnb; Wed, 13 Apr 2005 15:39:48 -0700 (PDT) Received: by 10.38.86.48 with HTTP; Wed, 13 Apr 2005 15:39:48 -0700 (PDT) Message-ID: <3892147f05041315394b7746b1@mail.gmail.com> Date: Wed, 13 Apr 2005 22:39:00 -0000 From: Dean Margell Reply-To: Dean Margell To: gcc-help@gcc.gnu.org Subject: Error Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-SW-Source: 2005-04/txt/msg00128.txt.bz2 I am trying to build a cross compiler on my Windows XP host that will compile executable binaries that I can run on my Linux Red Hat 9.0 target, but I get compile errors when building the binutils. I am running cygwin 1.5.14, and gcc 3.3.3-3. I have created a /crossgcc/build-binutils directory, and from it I first execute the "configure" command: $ ../../usr/src/binutils-20041229-1/configure --target=3D$TARGET--host=3D$HOST --build=3D$BUILD --prefix=3D$PREFIX -v Where: TARGET=3Di686-pc-linux-gnu HOST=3Di686-pc-cygwin BUILD=3Di686-pc-cygwin PREFIX=3D/crossgcc and then, this is the error I get when I run 'make': ... /crossgcc/build-binutils/binutils/arlex.c:1: multiple definition of `_main' arparse.o(.text+0x0):/crossgcc/build-binutils/binutils/arparse.c:1: first defined here ar.o(.text+0x7d0): In function `main': /crossgcc/build-binutils/binutils/../../../usr/src/binutils-20041229-1/binu= tils/ar.c:342: multiple definition of `_main' arparse.o(.text+0x0):/crossgcc/build-binutils/binutils/arparse.c:1: first defined here ar.o(.text+0x27): In function `mri_emul': /crossgcc/build-binutils/binutils/../../../usr/src/binutils-20041229-1/binu= tils/ar.c:148: undefined reference to `_yyparse' collect2: ld returned 1 exit status make[3]: *** [ar.exe] Error 1 make[3]: Leaving directory `/crossgcc/build-binutils/binutils' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/crossgcc/build-binutils/binutils' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/crossgcc/build-binutils/binutils' make: *** [all-binutils] Error 2 Any help would be Greatly appreciated (I'm new). =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D start of output from "configure= " command =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D $ ../../usr/src/binutils-20041229-1/configure --target=3D$TARGET --host=3D$= HOST --b uild=3D$BUILD --prefix=3D$PREFIX -v loading cache ./config.cache checking host system type... i686-pc-cygwin checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-cygwin checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether ln works... (cached) yes checking whether ln -s works... (cached) yes -v: not found checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gnatbind... no checking whether compiler driver understands Ada... (cached) no checking how to compare bootstrapped objects... (cached) cmp --ignore-initi= al=3D16 $$f1 $$f2 checking for correct version of gmp.h... no checking for bison... no checking for bison... no checking for byacc... no checking for yacc... no checking for gm4... (cached) m4 checking for flex... no checking for flex... no checking for lex... no checking for makeinfo... (cached) makeinfo *** removing intl/Makefile to force reconfigure *** removing libiberty/Makefile to force reconfigure *** removing opcodes/Makefile to force reconfigure *** removing bfd/Makefile to force reconfigure *** removing binutils/Makefile to force reconfigure checking for i686-pc-cygwin-ar... no checking for ar... (cached) ar checking for i686-pc-cygwin-as... no checking for as... (cached) as checking for i686-pc-cygwin-dlltool... no checking for dlltool... (cached) dlltool checking for i686-pc-cygwin-ld... (cached) /usr/lib/gcc-lib/i686-pc-cygwin/= 3.3.3 /../../../../i686-pc-cygwin/bin/ld.exe checking for i686-pc-cygwin-nm... no checking for nm... (cached) nm checking for i686-pc-cygwin-ranlib... (cached) ranlib checking for i686-pc-cygwin-windres... no checking for windres... (cached) windres checking for i686-pc-cygwin-objcopy... no checking for objcopy... (cached) objcopy checking for i686-pc-cygwin-objdump... no checking for objdump... (cached) objdump checking for i686-pc-linux-gnu-ar... no checking for i686-pc-linux-gnu-as... no checking for i686-pc-linux-gnu-dlltool... no checking for i686-pc-linux-gnu-ld... no checking for i686-pc-linux-gnu-nm... no checking for i686-pc-linux-gnu-ranlib... no checking for i686-pc-linux-gnu-windres... no checking whether to enable maintainer-specific portions of Makefiles... no checking if symbolic links between directories work... (cached) yes updating cache ./config.cache creating ./config.status creating Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D end of output from "configure" = command =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D