From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31078 invoked by alias); 31 Jul 2011 20:11:21 -0000 Received: (qmail 31064 invoked by uid 22791); 31 Jul 2011 20:11:19 -0000 X-SWARE-Spam-Status: No, hits=-2.2 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-fx0-f41.google.com (HELO mail-fx0-f41.google.com) (209.85.161.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 31 Jul 2011 20:11:03 +0000 Received: by fxg9 with SMTP id 9so4970223fxg.0 for ; Sun, 31 Jul 2011 13:11:02 -0700 (PDT) Received: by 10.223.32.19 with SMTP id a19mr5192600fad.22.1312143062104; Sun, 31 Jul 2011 13:11:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.8.144 with HTTP; Sun, 31 Jul 2011 13:10:42 -0700 (PDT) In-Reply-To: <4E34BBCE.4040700@gmail.com> References: <83zkjzempb.fsf@gnu.org> <83pqkvejfq.fsf@gnu.org> <4E34BBCE.4040700@gmail.com> From: =?UTF-8?B?UGV0ciBIbHV6w61u?= Date: Sun, 31 Jul 2011 20:11:00 -0000 Message-ID: Subject: Re: Windows build cookbook To: asmwarrior Cc: Tom Tromey , Eli Zaretskii , gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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-07/txt/msg00127.txt.bz2 On 31 July 2011 04:19, asmwarrior wrote: > On 2011-7-28 1:17, Tom Tromey wrote: >> >> Eli> =C2=A0Thanks. =C2=A0That's not Windows-specific, so I guess there a= re no >> Eli> =C2=A0Windows-specific issues here? >> >> I would venture to guess that this is just because nobody has written >> the text for the manual, rather than that there are no issues building >> on Windows. >> >> Tom >> > we have create some pages in > http://code.google.com/p/qp-gcc/wiki/build_gdb_msys_en (English version) > and > http://code.google.com/p/qp-gcc/wiki/build_gdb_msys_cn (Chinese version) > > Also, the cross build mingw gdb from linux: > http://code.google.com/p/qp-gcc/wiki/CrossbuildGDB > > also, the official Mingw page: > http://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GDB/GDB-7.2/ > which contains an instructions to build gdb 7.2 under MSYS. > > As a conclusion, no much difficult to build mingw gdb. I wish I knew about those links yesterday. Yesterday I spent 5 hours trying to build the GDB on Windows. After reading your links was able to build the GDB without expat & python and then even a full GDB - it took 5 more hours of careful touching and trying to not upset the tools. (Geez, I knew why I avoided building from sources.) Let future generations benefit from my notes below: whitespace in directory names: PATH=3D$(echo $PATH | sed 's,Program Files,PROGRA~1,g') cp ar.exe mingw32-ar.exe Using MinGW Shell: ./configure --host=3Dmingw32 Used expat build instructions from http://code.google.com/p/qp-gcc/wiki/build_gdb_msys_en $ ./configure --host=3Dmingw32 --target=3Davr CFLAGS=3D"-s -L/C/Python27/libs -I/C/Python27/PH-temp/include -I/c/gdb-7.3/expat-2.0.1/include -static -L/c/gdb-7.3/expat-2.0.1/lib" --with-python --with-expat Thanks for the links. I would have given up. --=20 Petr Hluzin