From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4629 invoked by alias); 17 Dec 2014 19:15:23 -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 4619 invoked by uid 89); 17 Dec 2014 19:15:22 -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,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 19:15:16 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sBHJF77a019628 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 17 Dec 2014 14:15:08 -0500 Received: from host2.jankratochvil.net (ovpn-116-142.ams2.redhat.com [10.36.116.142]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sBHJF2v8006018 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 17 Dec 2014 14:15:05 -0500 Date: Wed, 17 Dec 2014 19:15:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: Yao Qi , Eli Zaretskii , brobecker@adacore.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: <20141217191502.GD21574@host2.jankratochvil.net> References: <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> <8761dbt6j4.fsf@codesourcery.com> <54916173.5080208@redhat.com> <87sigesdw2.fsf@codesourcery.com> <54916C67.5050707@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54916C67.5050707@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00495.txt.bz2 On Wed, 17 Dec 2014 12:43:35 +0100, Pedro Alves wrote: > On 12/17/2014 11:40 AM, Yao Qi wrote: > > > At least, user should get an explicit message that 'compile' command > > isn't supported if the user run the 'compile' command on Windows for example. > > Agreed. That's what I suggested in the other mail too: > > https://sourceware.org/ml/gdb-patches/2014-12/msg00475.html > > Would that be OK with you? This is not completely correct. With the patch above being checked in now the 'compile' command will still fail on: $ wine build_win32/gdb/gdb.exe -q build_win32/gdb/gdb.exe -ex start -ex 'compile code 1' -ex 'set confirm no' -ex quit [...] Temporary breakpoint 1, main (argc=1, argv=0x241418) at ../../gdb/gdb.c:29 29 args.argc = argc; Could not load libcc1.so: Module not found. It would need some special exception. So far it is obvious that one needs gcc-5.0 which "nobody" has. But after gcc-5.0 gets released MinGW gdb.exe will still print "Could not load libcc1.so" while (I expect) MinGW gcc-5.0 will have "libcc1.dll". Jan