From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23370 invoked by alias); 27 Oct 2011 02:31:38 -0000 Received: (qmail 23361 invoked by uid 22791); 27 Oct 2011 02:31:37 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_SM X-Spam-Check-By: sourceware.org Received: from mail-iy0-f169.google.com (HELO mail-iy0-f169.google.com) (209.85.210.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Oct 2011 02:31:23 +0000 Received: by iagf6 with SMTP id f6so3326523iag.0 for ; Wed, 26 Oct 2011 19:31:23 -0700 (PDT) Received: by 10.231.28.106 with SMTP id l42mr2793510ibc.66.1319682682958; Wed, 26 Oct 2011 19:31:22 -0700 (PDT) Received: from [222.205.27.173] ([222.205.27.173]) by mx.google.com with ESMTPS id g16sm5944327ibs.8.2011.10.26.19.31.19 (version=SSLv3 cipher=OTHER); Wed, 26 Oct 2011 19:31:21 -0700 (PDT) Message-ID: <4EA8C121.8010505@gmail.com> Date: Thu, 27 Oct 2011 07:10:00 -0000 From: Asmwarrior User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Pedro Alves CC: gdb@sourceware.org, MinGW Users List , Chris Sutcliffe , Xun Xun Subject: Re: gdb (gdbserver.exe) build problem under msys References: <4EA7FCF2.7050402@gmail.com> <201110261536.18038.pedro@codesourcery.com> In-Reply-To: <201110261536.18038.pedro@codesourcery.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00192.txt.bz2 I tried again, and still failed. This time, I found the config.h under gdbserver was overwritten by some script I don't know when running make. Here is the base steps: 1, running the toplevel configure. 2, running "make" command. (this will automatically run configure and make in each sub-folders) I monitor the folder build/gdb/gdbserver At some time there will be a config.h file generated, and I opened it. and all the definition macros seems correct. But after building the gdb.exe, I found that the config.h file under build/gdb/gdbserver was changed (overwritten by some unknown reason), and its definition was wrong. so building gdbserver.exe failed. That's too strange. It looks like other configuration/make stages will change the config.h under gdbsever? --------------------------------------------------------------------- Here is another test: If I create a new build folder, and did the things below: cd build mkdir gdb CFLAGS="-O2 -fno-omit-frame-pointer -mtune=i686" \ ../../gdb/gdb/configure \ --prefix=/mingw \ --host=mingw32 \ --build=mingw32 \ --target=mingw32 \ --with-python=/python/python \ --with-expat \ --disable-nls --------------------------------------------------------------------- After the configure, I check the file build/gdb/gdbserver/config.h It was correct. But if I run such configure steps on my previous build tree.(the build tree I failed building gdbserver.exe) then, the generated build/gdb/gdbserver/config.h was wrong. So, what I can guess is that some parent level configure setting will affect the inner folder setting? Or the make command will later change the inner folder's config.h? thanks. asmwarrior