From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2267 invoked by alias); 17 Dec 2014 11:16:00 -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 2252 invoked by uid 89); 17 Dec 2014 11:16:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 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 11:15:57 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sBHBFknc008169 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 17 Dec 2014 06:15:46 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sBHBFhoE031615; Wed, 17 Dec 2014 06:15:43 -0500 Message-ID: <549165DE.9040005@redhat.com> Date: Wed, 17 Dec 2014 11:16:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Jan Kratochvil , Eli Zaretskii CC: 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/] References: <87egs2vcfu.fsf@codesourcery.com> <20141214182341.GA2908@host2.jankratochvil.net> <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> In-Reply-To: <20141215222801.GA28138@host2.jankratochvil.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-12/txt/msg00475.txt.bz2 On 12/15/2014 10:28 PM, Jan Kratochvil wrote: > On Mon, 15 Dec 2014 19:57:28 +0100, Eli Zaretskii wrote: >>> On Mon, 15 Dec 2014 04:15:43 +0100, Yao Qi wrote: >>> # or maybe we have to use win32 api, such as GetTempPath and GetRandomFileName. >> >> If you write it, I can test it. > > In the end I have managed to test it by Wine myself: > > $ 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. > > Even if it managed to load libcc1.so (it needs host-dependent name libcc1.dll) > then it would soon end up at least on: > > default_infcall_mmap: > error (_("This target does not support inferior memory allocation by mmap.")); > > As currently there is only: > > linux-tdep.c: > set_gdbarch_infcall_mmap (gdbarch, linux_infcall_mmap); > > While one could debug Linux targets from MS-Windows host I find it somehow > overcomplicated now when we are trying to get it running at least on native > Linux x86*. > > The 'compile' project needs a larger port effort to run on MS-Windows. > > OK for check-in? Can you send a version that does an autoconf check for mkdtemp instead? > + error (_("mkdtemp needs to be implemented for MS-Windows hosts")); I think the error text should be a bit more generic and not mention a particular implementation detail, like "Command not supported on this host." or some such -- I think the testsuite will need to be extended to handle this error, presumably in skip_compile_feature_tests. Thanks, Pedro Alves