From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6250 invoked by alias); 8 Jun 2011 08:28:28 -0000 Received: (qmail 6227 invoked by uid 22791); 8 Jun 2011 08:28:25 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MISSING_HEADERS,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-vx0-f169.google.com (HELO mail-vx0-f169.google.com) (209.85.220.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Jun 2011 08:28:10 +0000 Received: by vxk20 with SMTP id 20so233791vxk.0 for ; Wed, 08 Jun 2011 01:28:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.0.228 with SMTP id 4mt257585vdh.107.1307521688046; Wed, 08 Jun 2011 01:28:08 -0700 (PDT) Received: by 10.52.184.8 with HTTP; Wed, 8 Jun 2011 01:28:08 -0700 (PDT) In-Reply-To: References: Date: Wed, 08 Jun 2011 08:28:00 -0000 Message-ID: Subject: Re: TARGET undefined in bucomm.c From: Luke Cc: "H.J. Lu" , 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/msg00088.txt.bz2 Yes. In the build folder (next to the source folder) there are these: $ find build -name "config.h" ./binutils/config.h ./opcodes/config.h ./libiberty/config.h ./intl/config.h ./bfd/config.h the bucomm.o target is including finding bfg/config.h, instead of binutils/config.h: # 1 "../../binutils-2.21/binutils/bucomm.c" # 1 "/home/luke/repos/summon-arm-toolchain/build/binutils//" # 1 "" # 1 "" # 1 "../../binutils-2.21/binutils/bucomm.c" # 26 "../../binutils-2.21/binutils/bucomm.c" # 1 "../../binutils-2.21/binutils/sysdep.h" 1 # 25 "../../binutils-2.21/binutils/sysdep.h" # 1 "../../binutils-2.21/binutils/../include/alloca-conf.h" 1 # 1 "../bfd/config.h" 1 # 2 "../../binutils-2.21/binutils/../include/alloca-conf.h" 2 I don't know why that is, but I think it must be the reason TARGETS is undefined. ~Luke On Wed, Jun 8, 2011 at 1:03 AM, Andreas Schwab wrote: > Luke writes: > >> I tried three approaches, all which led to the same error: > > Do you have any config.h in the source? > > Andreas. > > -- > Andreas Schwab, schwab@redhat.com > GPG Key fingerprint =3D D4E8 DBE3 3813 BB5D FA84 =C2=A05EC7 45C6 250E 6F0= 0 984E > "And now for something completely different." > --=20 "Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin, Historical Review of Pennsylvania, 1759