From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12970 invoked by alias); 17 Dec 2014 18:21:55 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 12944 invoked by uid 89); 17 Dec 2014 18:21:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 17 Dec 2014 18:21:52 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sBHILg1N015109 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 17 Dec 2014 13:21:43 -0500 Received: from host2.jankratochvil.net (ovpn-116-142.ams2.redhat.com [10.36.116.142]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sBHILbCc021335 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 17 Dec 2014 13:21:40 -0500 Date: Wed, 17 Dec 2014 18:21:00 -0000 From: Jan Kratochvil To: Pierre Muller Cc: "'Eli Zaretskii'" , brobecker@adacore.com, yao@codesourcery.com, gdb-patches@sourceware.org, ktietz@redhat.com Subject: Re: [patch] compile: Fix MinGW build [Re: [mingw rfc] Add mkdtemp to gdb/gnulib/] Message-ID: <20141217182137.GB21574@host2.jankratochvil.net> References: <87a92pvc0w.fsf@codesourcery.com> <20141215124358.GU5457@adacore.com> <20141215171225.GA19674@host2.jankratochvil.net> <20141215181449.GA5457@adacore.com> <20141215182057.GA22226@host2.jankratochvil.net> <20141215183554.GB5457@adacore.com> <20141215184014.GA22610@host2.jankratochvil.net> <83y4q8wxk7.fsf@gnu.org> <20141215222801.GA28138@host2.jankratochvil.net> <004b01d0192d$7c8b96d0$75a2c470$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <004b01d0192d$7c8b96d0$75a2c470$@muller@ics-cnrs.unistra.fr> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00489.txt.bz2 Hi Pierre, On Tue, 16 Dec 2014 13:40:28 +0100, Pierre Muller wrote: > which appeared as an attached file named 1.sql, > which made it difficult to guess it was indeed the patch... The mail has: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename=1 So there was no ".sql" extension; there was just no extension at all. > To go a little bit further, I tried to use > the compile command on the newly generated mingw32 GDB executable. > > using ./gdb ./gdb > (with a minimal hello.c source code) > > <<<< (top-gdb) compile code hello.c > returns > >>>> The program must be running for the compile command to work. > I am not sure why this restriction should apply. I do not understand what it should do without running inferior. Or rather I can understand it but that would be a functionality completely unrelated to the current 'compile' functionality - which hooks into the running inferior. I would find it rather confusing myself. > (top-gdb) start > Temporary breakpoint 3 at 0x40158a: file ../../../binutils-gdb/gdb/gdb.c, line 28. > Starting program: E:\cygwin-32\home\Pierre\git\build\mult-mingw32\gdb\gdb.exe > [New Thread 6572.0x4e0] > > Temporary breakpoint 3, main (argc=1, argv=0x3d4b30) > at ../../../binutils-gdb/gdb/gdb.c:28 > (top-gdb) compile file hello.c > Could not load libcc1.so: "libcc1.so": Le module spécifié est introuvable. > (French meaning: "the specified module can't be found"). > > So the mkdtmp is not the only problem > for mingw compile support. That is correct, you need to build gcc-5.0 which contains libcc1.so. But that currently also will not work as it will get named libcc1.dll, you can read more in: https://sourceware.org/ml/gdb-patches/2014-12/msg00429.html Thanks, Jan