NetBSD Problem Report #52797

From www@NetBSD.org  Sat Dec  9 03:14:17 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3372F7A1DF
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  9 Dec 2017 03:14:17 +0000 (UTC)
Message-Id: <20171209031416.416B67A260@mollari.NetBSD.org>
Date: Sat,  9 Dec 2017 03:14:16 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: Conflicting implementation of asnprintf() in Cygwin
X-Send-Pr-Version: www-1.0

>Number:         52797
>Category:       toolchain
>Synopsis:       Conflicting implementation of asnprintf() in Cygwin
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 09 03:15:00 +0000 2017
>Closed-Date:    Sat Dec 09 04:29:28 +0000 2017
>Last-Modified:  Sat Feb 03 22:05:00 +0000 2018
>Originator:     Sevan Janiyan
>Release:        NetBSD-8 & -current
>Organization:
>Environment:
CYGWIN_NT-6.1 X61s 2.9.0(0.318/5/3) 2017-09-12 10:18 x86_64 Cygwin
>Description:
Attempting to cross build the tools on Cygwin fails due to the following error:
#   compile  compat/atoll.lo
cc -O  -I. -I./include -I/cygdrive/c/Users/Me/Downloads/src/tools/compat -I/cygdrive/c/Users/Me/Downloads/src/tools/compat/sys  -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o atoll.lo.o    /cygdrive/c/Users/Me/Downloads/src/lib/libc/stdlib/atoll.c
In file included from ./nbtool_config.h:867:0,
                 from /cygdrive/c/Users/Me/Downloads/src/lib/libc/stdlib/atoll.c:33:
/cygdrive/c/Users/Me/Downloads/src/tools/compat/compat_defs.h:238:5: error: conflicting types for 'asnprintf'
 int asnprintf(char **, size_t, const char *, ...);
     ^~~~~~~~~
In file included from /usr/include/sys/types.h:20:0,
                 from /cygdrive/c/Users/Me/Downloads/src/tools/compat/compat_defs.h:35,
                 from ./nbtool_config.h:867,
                 from /cygdrive/c/Users/Me/Downloads/src/lib/libc/stdlib/atoll.c:33:
/usr/include/stdio.h:288:8: note: previous declaration of 'asnprintf' was here
 char * _EXFUN(asnprintf, (char *__restrict, size_t *__restrict, const char *__restrict, ...)
        ^

*** Failed target:  atoll.lo

Using GCC 6.4 from Cygwin
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/6.4.0/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/gcc/gcc-6.4.0-4.x86_64/src/gcc-6.4.0/configure --srcdir=/cygdrive/i/szsz/tmpp/gcc/gcc-6.4.0-4.x86_64/src/gcc-6.4.0 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc --docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --enable-__cxa_atexit --with-dwarf2 --with-tune=generic --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-graphite --enable-threads=posix --enable-libatomic --enable-libcilkrts --enable-libgomp --enable-libitm --enable-libquadmath --enable-libquadmath-support --enable-libssp --enable-libada --disable-symvers --with-gnu-ld --with-gnu-as --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix 
 --with-system-zlib --enable-linker-build-id --with-default-libstdcxx-abi=gcc4-compatible
Thread model: posix
gcc version 6.4.0 (GCC)

>How-To-Repeat:
Attempting to build the toolchain on Cygwin
./build.sh -U -m amd64 tools kernel=GENERIC
>Fix:

>Release-Note:

>Audit-Trail:
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/52797: Conflicting implementation of asnprintf() in
 Cygwin
Date: Sat, 9 Dec 2017 04:09:26 +0000

 adding asnprintf to AC_CHECK_DECLS & regenerating the configure script
 resolved the issue.

From: "Sevan Janiyan" <sevan@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52797 CVS commit: src/tools/compat
Date: Sat, 9 Dec 2017 04:22:53 +0000

 Module Name:	src
 Committed By:	sevan
 Date:		Sat Dec  9 04:22:53 UTC 2017

 Modified Files:
 	src/tools/compat: configure.ac

 Log Message:
 Add asnprintf() to the AC_CHECK_DECLS list.
 Resolves conflict when cross compiling on Cygwin the provided implementation
 does not get picked up.

 Closes PR toolchain/52797


 To generate a diff of this commit:
 cvs rdiff -u -r1.88 -r1.89 src/tools/compat/configure.ac

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: sevan@NetBSD.org
State-Changed-When: Sat, 09 Dec 2017 04:29:28 +0000
State-Changed-Why:
Fix committed


From: "Soren Jacobsen" <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52797 CVS commit: [netbsd-8] src/tools/compat
Date: Thu, 21 Dec 2017 19:11:21 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Thu Dec 21 19:11:21 UTC 2017

 Modified Files:
 	src/tools/compat [netbsd-8]: compat_defs.h configure configure.ac
 	    fpurge.c nbtool_config.h.in

 Log Message:
 Pull up following revision(s) (requested by sevan in ticket #435):
 	tools/compat/compat_defs.h: 1.108
 	tools/compat/configure: 1.87-1.88
 	tools/compat/configure.ac: 1.88-1.89
 	tools/compat/fpurge.c: 1.2
 	tools/compat/nbtool_config.h.in: 1.41-1.42
 handle __fpurge being declared in <stdio_ext.h>
 --
 regen
 --
 Add asnprintf() to the AC_CHECK_DECLS list.
 Resolves conflict when cross compiling on Cygwin the provided implementation
 does not get picked up.
 Closes PR toolchain/52797
 --
 regen


 To generate a diff of this commit:
 cvs rdiff -u -r1.107 -r1.107.6.1 src/tools/compat/compat_defs.h
 cvs rdiff -u -r1.86 -r1.86.6.1 src/tools/compat/configure
 cvs rdiff -u -r1.87 -r1.87.6.1 src/tools/compat/configure.ac
 cvs rdiff -u -r1.1 -r1.1.38.1 src/tools/compat/fpurge.c
 cvs rdiff -u -r1.40 -r1.40.6.1 src/tools/compat/nbtool_config.h.in

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Soren Jacobsen" <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52797 CVS commit: [netbsd-8] src/tools/compat
Date: Sat, 3 Feb 2018 22:02:02 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Sat Feb  3 22:02:02 UTC 2018

 Modified Files:
 	src/tools/compat [netbsd-8]: configure configure.ac nbtool_config.h.in

 Log Message:
 Pull up following revision(s) (requested by sevan in ticket #435):
 	tools/compat/configure: revision 1.88 via patch
 	tools/compat/configure.ac: revision 1.89 via patch
 	tools/compat/nbtool_config.h.in: revision 1.42
 Add asnprintf() to the AC_CHECK_DECLS list.
 Resolves conflict when cross compiling on Cygwin the provided implementation
 does not get picked up.
 Closes PR toolchain/52797
 --
 regen


 To generate a diff of this commit:
 cvs rdiff -u -r1.86.6.2 -r1.86.6.3 src/tools/compat/configure
 cvs rdiff -u -r1.87.6.2 -r1.87.6.3 src/tools/compat/configure.ac
 cvs rdiff -u -r1.40.6.2 -r1.40.6.3 src/tools/compat/nbtool_config.h.in

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.