From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26704 invoked by alias); 7 Jun 2011 12:11:55 -0000 Received: (qmail 26678 invoked by uid 22791); 7 Jun 2011 12:11:52 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 07 Jun 2011 12:11:37 +0000 Received: from kpbe18.cbf.corp.google.com (kpbe18.cbf.corp.google.com [172.25.105.82]) by smtp-out.google.com with ESMTP id p575DF0g013011 for ; Mon, 6 Jun 2011 22:13:16 -0700 Received: from pxi7 (pxi7.prod.google.com [10.243.27.7]) by kpbe18.cbf.corp.google.com with ESMTP id p575DEnk019761 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 6 Jun 2011 22:13:14 -0700 Received: by pxi7 with SMTP id 7so2928183pxi.16 for ; Mon, 06 Jun 2011 22:13:14 -0700 (PDT) Received: by 10.68.13.228 with SMTP id k4mr26214pbc.40.1307423593941; Mon, 06 Jun 2011 22:13:13 -0700 (PDT) Received: from coign.google.com ([216.239.45.130]) by mx.google.com with ESMTPS id c3sm44292pbk.61.2011.06.06.22.13.12 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Jun 2011 22:13:13 -0700 (PDT) From: Ian Lance Taylor To: Luke Cc: "H.J. Lu" , binutils@sourceware.org Subject: Re: TARGET undefined in bucomm.c References: Date: Tue, 07 Jun 2011 12:11:00 -0000 In-Reply-To: (Luke's message of "Mon, 6 Jun 2011 20:14:10 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true 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/msg00066.txt.bz2 Luke writes: > but not when building bucomm.c. So config.h *isn't* being included, > for some reason. I don't know which config.h is being included by > alloca-conf.h, but it isn't the generated binutils/config.h. The only > major difference I can see is the -I flags. Could this have something > to do with it? Run something like make CFLAGS="-g -O2 --save-temps" bucomm.o That will create, besides bucomm.o, a file bucomm.i. In the first 20 lines of bucomm.i you should see an entry for config.h. Where is config.h being found? When I try it, I see the appended, which shows config.h being included from the binutils build directory, as expected. Ian # 1 "../../src/binutils/bucomm.c" # 1 "/home/iant/binutils/objdir/binutils//" # 1 "" # 1 "" # 1 "../../src/binutils/bucomm.c" # 26 "../../src/binutils/bucomm.c" # 1 "../../src/binutils/sysdep.h" 1 # 25 "../../src/binutils/sysdep.h" # 1 "../../src/binutils/../include/alloca-conf.h" 1 # 1 "./config.h" 1 # 2 "../../src/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