From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28509 invoked by alias); 14 Dec 2014 06:05:24 -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 27446 invoked by uid 89); 14 Dec 2014 06:00:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 14 Dec 2014 06:00:51 +0000 Received: from svr-orw-fem-04.mgc.mentorg.com ([147.34.97.41]) by relay1.mentorg.com with esmtp id 1Y02EZ-0007mC-75 from Yao_Qi@mentor.com ; Sat, 13 Dec 2014 22:00:47 -0800 Received: from GreenOnly (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.3.181.6; Sat, 13 Dec 2014 22:00:46 -0800 From: Yao Qi To: Jan Kratochvil CC: Subject: Re: [PATCH v4 14/14] the "compile" command References: <20141123192713.32193.57150.stgit@host1.jankratochvil.net> <20141123192900.32193.65726.stgit@host1.jankratochvil.net> Date: Sun, 14 Dec 2014 06:05:00 -0000 In-Reply-To: <20141123192900.32193.65726.stgit@host1.jankratochvil.net> (Jan Kratochvil's message of "Sun, 23 Nov 2014 20:29:01 +0100") Message-ID: <87r3w2vkhv.fsf@codesourcery.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00344.txt.bz2 Jan Kratochvil writes: > +static const char * > +get_compile_file_tempdir (void) > +{ > + static char *tempdir_name; > + > +#define TEMPLATE TMP_PREFIX "XXXXXX" > + char tname[sizeof (TEMPLATE)]; > + > + if (tempdir_name !=3D NULL) > + return tempdir_name; > + > + strcpy (tname, TEMPLATE); > +#undef TEMPLATE > + tempdir_name =3D mkdtemp (tname); Hi Jan, The build on mingw host is broken because mingw has no mkdtemp. ../../../git/gdb/compile/compile.c: In function 'get_compile_file_tempdir': ../../../git/gdb/compile/compile.c:194:3: error: implicit declaration of fu= nction 'mkdtemp' [-Werror=3Dimplicit-function-declaration] tempdir_name =3D mkdtemp (tname); ^ ../../../git/gdb/compile/compile.c:194:16: error: assignment makes pointer = from integer without a cast [-Werror] tempdir_name =3D mkdtemp (tname); ^ cc1: all warnings being treated as errors --=20 Yao (=E9=BD=90=E5=B0=A7)