This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v4 14/14] the "compile" command
- From: Yao Qi <yao at codesourcery dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Sun, 14 Dec 2014 14:00:28 +0800
- Subject: Re: [PATCH v4 14/14] the "compile" command
- Authentication-results: sourceware.org; auth=none
- References: <20141123192713 dot 32193 dot 57150 dot stgit at host1 dot jankratochvil dot net> <20141123192900 dot 32193 dot 65726 dot stgit at host1 dot jankratochvil dot net>
Jan Kratochvil <jan.kratochvil@redhat.com> 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 != NULL)
> + return tempdir_name;
> +
> + strcpy (tname, TEMPLATE);
> +#undef TEMPLATE
> + tempdir_name = 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 function 'mkdtemp' [-Werror=implicit-function-declaration]
tempdir_name = mkdtemp (tname);
^
../../../git/gdb/compile/compile.c:194:16: error: assignment makes pointer from integer without a cast [-Werror]
tempdir_name = mkdtemp (tname);
^
cc1: all warnings being treated as errors
--
Yao (éå)