From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30530 invoked by alias); 6 Jun 2011 17:46:16 -0000 Received: (qmail 30522 invoked by uid 22791); 6 Jun 2011 17:46:15 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-vw0-f41.google.com (HELO mail-vw0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Jun 2011 17:46:01 +0000 Received: by vws4 with SMTP id 4so3839840vws.0 for ; Mon, 06 Jun 2011 10:46:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.72.230 with SMTP id g6mr5449472vdv.163.1307382359054; Mon, 06 Jun 2011 10:45:59 -0700 (PDT) Received: by 10.52.181.98 with HTTP; Mon, 6 Jun 2011 10:45:59 -0700 (PDT) Date: Mon, 06 Jun 2011 17:46:00 -0000 Message-ID: Subject: TARGET undefined in bucomm.c From: Luke To: binutils@sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-06/txt/msg00052.txt.bz2 I'm trying to compile binutils-2.21 on x86_64 . I configured using: $ mkdir build $ cd build $ ../configure --target=3Darm-none-eabi --enable-multilib --with-gnu-as --with-gnu-ld --disable-nls --disable-werror It gets through the compilation of libiterty, bfd, and opcodes. Then, when building binutils, it fails as follows: gcc -DHAVE_CONFIG_H -I. -I../../binutils -I. -I../../binutils -I../bfd -I../../binutils/../bfd -I../../binutils/../include -DLOCALEDIR=3D"\"/usr/local/share/locale\"" -Dbin_dummy_emulation=3Dbin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT bucomm.o -MD -MP -MF .deps/bucomm.Tpo -c -o bucomm.o ../../binutils/bucomm.c ../../binutils/bucomm.c: In function =E2=80=98set_default_bfd_target=E2=80= =99: ../../binutils/bucomm.c:160:24: error: =E2=80=98TARGET=E2=80=99 undeclared = (first use in this function) ../../binutils/bucomm.c:160:24: note: each undeclared identifier is reported only once for each function it appears in I have grepped all the files for TARGET and don't understand why this would be happening -- am I using configure wrong, or do I need to define an environment variable? I have filed a bug report here: http://sourceware.org/bugzilla/show_bug.cgi?id=3D12844 Searching the internet has been fruitless, has anybody else seen this behav= ior? Let me know if there is other information I should provide to help figure this out. Thanks, ~Luke