From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1329 invoked by alias); 27 Oct 2011 07:37:32 -0000 Received: (qmail 1094 invoked by uid 22791); 27 Oct 2011 07:37:30 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_DB 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 07:37:16 +0000 Received: by iagf6 with SMTP id f6so3615023iag.0 for ; Thu, 27 Oct 2011 00:37:15 -0700 (PDT) Received: by 10.42.132.10 with SMTP id b10mr56660841ict.18.1319701035823; Thu, 27 Oct 2011 00:37:15 -0700 (PDT) Received: from [222.205.24.133] ([222.205.24.133]) by mx.google.com with ESMTPS id l28sm6963406ibc.3.2011.10.27.00.37.11 (version=SSLv3 cipher=OTHER); Thu, 27 Oct 2011 00:37:14 -0700 (PDT) Message-ID: <4EA90AEB.1020609@gmail.com> Date: Thu, 27 Oct 2011 14:48:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 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/msg00195.txt.bz2 Hi, all, I have solved my problem. It's quite simple problem due to the Line Ending. As some days ago, I updated the MSYSGit to a new version, and then MsysGit by default will convert the Linux LF line ending to Windows CRLF format. (when I used this new MSYSGit to pull from the remote gdb git, the new updated file in my local copy will have CRLF format). So, I found that in the source tree, the file gdb/gdbserver/config.in has the CRLF format, and this will result a wrong file in the build tree gdb/gdbserver/config.h. (I have used to run the "config.status --debug" to see whether the awk script works fine to replace macros in config.in) Changing all the related files to LF format solved the problem, and now all was built successfully. Sorry, for the inconvenience. In fact, I have meet such kind of problem one years ago, see: (The problem bite me again today) See the post of mine on how to solve such problem. http://sourceware.org/ml/gdb/2010-12/msg00043.html Thank you! Asmwarrior ollydbg from codeblocks' forum