From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24453 invoked by alias); 7 Jun 2011 18:58:30 -0000 Received: (qmail 24445 invoked by uid 22791); 7 Jun 2011 18:58:30 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-qw0-f41.google.com (HELO mail-qw0-f41.google.com) (209.85.216.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 07 Jun 2011 18:58:16 +0000 Received: by qwa26 with SMTP id 26so3191684qwa.0 for ; Tue, 07 Jun 2011 11:58:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.106.34 with SMTP id v34mr4856000qco.111.1307473095642; Tue, 07 Jun 2011 11:58:15 -0700 (PDT) Received: by 10.229.47.78 with HTTP; Tue, 7 Jun 2011 11:58:15 -0700 (PDT) In-Reply-To: References: Date: Tue, 07 Jun 2011 18:58:00 -0000 Message-ID: Subject: Re: TARGET undefined in bucomm.c From: "H.J. Lu" To: Luke Cc: binutils@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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/msg00071.txt.bz2 On Tue, Jun 7, 2011 at 11:26 AM, Luke wrote: > Here are the first lines of bucomm.i: > > # 1 "../../binutils/bucomm.c" > # 1 "/home/luke/repos/summon-arm-toolchain/binutils-2.21/build/binutils//" > # 1 "" > # 1 "" > # 1 "../../binutils/bucomm.c" > # 26 "../../binutils/bucomm.c" > # 1 "../../binutils/sysdep.h" 1 > # 25 "../../binutils/sysdep.h" > # 1 "../../binutils/../include/alloca-conf.h" 1 > # 1 "../bfd/config.h" 1 > # 2 "../../binutils/../include/alloca-conf.h" 2 > > > # 1 "/usr/include/alloca.h" 1 3 4 > # 22 "/usr/include/alloca.h" 3 4 > # 1 "/usr/include/features.h" 1 3 4 > > So, for some reason, it is finding config.h in the bfd folder. > > What should I do to fix this? > Don't put build directory inside binutils source tree. H.J.