NetBSD Problem Report #50273
From www@NetBSD.org Thu Sep 24 03:27:58 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 8665BA65EE
for <gnats-bugs@gnats.NetBSD.org>; Thu, 24 Sep 2015 03:27:58 +0000 (UTC)
Message-Id: <20150924032757.489C6A6646@mollari.NetBSD.org>
Date: Thu, 24 Sep 2015 03:27:57 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: sysutils/findutils build fails on netbsd-7/i386
X-Send-Pr-Version: www-1.0
>Number: 50273
>Category: pkg
>Synopsis: sysutils/findutils build fails on netbsd-7/i386
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 24 03:30:00 +0000 2015
>Closed-Date: Sun Sep 27 17:36:47 +0000 2015
>Last-Modified: Sun Sep 27 17:36:47 +0000 2015
>Originator: John D. Baker
>Release: NetBSD/i386-7.0_RC3, pkgsrc-HEAD (pre-pkgsrc-2015Q3)
>Organization:
>Environment:
NetBSD verthandi.technoskunk.fur 7.0_RC3 NetBSD 7.0_RC3 (VERTHANDI) #88: Thu Sep 10 12:51:56 CDT 2015 sysop@verthandi.technoskunk.fur:/d0/build/netbsd-7/obj/i386/sys/arch/i386/compile/VERTHANDI i386
>Description:
Building "sysutils/findutils" (dependency of "misc/libreoffice") fails
on netbsd-7/i386 as follows:
[...]
In file included from getdate.y:40:0:
verify.h:132:15: error: negative width in bit-field 'verify_error_if_negative_size__'
(struct { unsigned int verify_error_if_negative_size__: (R) ? 1 : -1; }))
^
[...]
>How-To-Repeat:
Attempt to build "sysutils/findutils" from pkgsrc-HEAD as of 20150924
on netbsd-7/i386 (and probably everything else?)
>Fix:
>Release-Note:
>Audit-Trail:
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/50273: sysutils/findutils build fails on netbsd-7/i386
Date: Thu, 24 Sep 2015 00:06:04 -0500 (CDT)
OK, it succeeds on netbsd-7/amd64:
NetBSD yggdrasil.technoskunk.fur 7.0_RC3 NetBSD 7.0_RC3 (YGGDRASIL) #114: Thu Sep 10 11:31:46 CDT 2015 sysop@yggdrasil.technoskunk.fur:/r0/build/netbsd-7/obj/amd64/sys/arch/amd64/compile/YGGDRASIL amd64
It fails in the same fashion as initially reported on NetBSD-7.99.21/macppc:
NetBSD sawtooth.technoskunk.fur 7.99.21 NetBSD 7.99.21 (GENERIC) #22: Wed Sep 16 14:21:21 CDT 2015 sysop@skuld.technoskunk.fur:/d0/build/current/obj/macppc/sys/arch/macppc/compile/GENERIC macppc
It fails in the same fashion as initially reported on netbsd-7/sparc:
NetBSD jean.technoskunk.fur 7.0_RC3 NetBSD 7.0_RC3 (JEAN) #31: Thu Sep 10 19:38:07 CDT 2015 sysop@skuld.technoskunk.fur:/d0/build/netbsd-7/obj/sparc/sys/arch/sparc/compile/JEAN sparc
It fails in a similar fashion on netbsd-6/i386:
[...]
depbase=`echo getdate.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../intl -I/usr/include -I/usr/pkg/include -O2 -I/usr/include -MT getdate.o -MD -MP -MF $depbase.Tpo -c -o getdate.o getdate.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo localcharset.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../intl -I/usr/include -I/usr/pkg/include -O2 -I/usr/include -MT localcharset.o -MD -MP -MF $depbase.Tpo -c -o localcharset.o localcharset.c &&\
mv -f $depbase.Tpo $depbase.Po
getdate.y:117:1: error: negative width in bit-field 'verify_error_if_negative_size__'
Makefile:890: recipe for target 'getdate.o' failed
gmake[4]: *** [getdate.o] Error 1
[...]
These are all the platforms to which I currently have access. I can
probably set up a sparc64 system to try soon.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/50273: sysutils/findutils build fails on netbsd-7/i386
Date: Thu, 24 Sep 2015 10:44:45 -0500 (CDT)
I forgot to include 'uname -a' for the netbsd-6/i386 system:
NetBSD plextwo 6.1_STABLE NetBSD 6.1_STABLE (PLEXOR) #27: Tue May 5 10:09:57 CDT 2015 sysop@verthandi.technoskunk.fur:/d0/build/netbsd-6/obj/i386/sys/arch/i386/compile/PLEXOR i386
The package builds successfully on NetBSD-7.99.21/sparc64:
NetBSD u2b.technoskunk.fur 7.99.21 NetBSD 7.99.21 (GENERIC) #19: Thu Sep 24 01:49:51 CDT 2015 sysop@skuld.technoskunk.fur:/d0/build/current/obj/sparc64/sys/arch/sparc64/compile/GENERIC sparc64
So it looks like it only builds on 64-bit architectures and fails on 32-bit
architectures. These are all I have availble to test right now. I could
try on evbmips-mips64el, but that will take a while to arrange.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/50273: sysutils/findutils build fails on netbsd-7/i386
Date: Sat, 26 Sep 2015 17:07:47 +0000
On Thu, Sep 24, 2015 at 03:30:00AM +0000, jdbaker@mylinuxisp.com wrote:
> In file included from getdate.y:40:0:
> verify.h:132:15: error: negative width in bit-field 'verify_error_if_negative_size__'
> (struct { unsigned int verify_error_if_negative_size__: (R) ? 1 : -1; }))
> ^
That's a compile-time assertion; can you check what it's asserting?
--
David A. Holland
dholland@netbsd.org
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/50273: sysutils/findutils build fails on netbsd-7/i386
Date: Sat, 26 Sep 2015 18:36:17 +0000
On Sat, Sep 26, 2015 at 05:10:05PM +0000, David Holland wrote:
> That's a compile-time assertion; can you check what it's asserting?
Never mind, it's this:
verify (LONG_MIN <= TYPE_MINIMUM (time_t) && TYPE_MAXIMUM (time_t) <= LONG_MAX);
which is of course not remotely true. I'd swear this has come up
before (also from the secret library of broken gnu code that magically
appears cutpasted into gnu tools) but I can't find any other patches
for it.
Anyway, just removing the bogus assertion should make it build.
Whether it will work is another question.
--
David A. Holland
dholland@netbsd.org
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/50273: sysutils/findutils build fails on netbsd-7/i386
Date: Sat, 26 Sep 2015 18:47:52 +0000
On Sat, Sep 26, 2015 at 06:40:01PM +0000, David Holland wrote:
> Anyway, just removing the bogus assertion should make it build.
> Whether it will work is another question.
ok, I don't see any obvious reason it won't; although the code is full
of undefined behavior so it's anyone's guess what it will do in the
long run.
probably it would be better to remove the entire file and use native
time code instead, but that's probably a big job. And besides, on
NetBSD, if you want a working find just use the one in /usr/bin :-)
--
David A. Holland
dholland@netbsd.org
From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/50273 CVS commit: pkgsrc/sysutils/findutils
Date: Sat, 26 Sep 2015 18:49:50 +0000
Module Name: pkgsrc
Committed By: dholland
Date: Sat Sep 26 18:49:50 UTC 2015
Modified Files:
pkgsrc/sysutils/findutils: distinfo
Added Files:
pkgsrc/sysutils/findutils/patches: patch-gnulib_lib_getdate.y
Log Message:
Remove wrong compile-time assertion about the size of time_t. (I'm
sure this wrong code has popped up before, but I can't find any other
patches for it in pkgsrc right now.) PR 50273.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/sysutils/findutils/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/sysutils/findutils/patches/patch-gnulib_lib_getdate.y
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 26 Sep 2015 18:53:37 +0000
State-Changed-Why:
before I file a pullup, could you check that it builds now and doesn't trip
on anything else? I don't have a 32-bit build machine...
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: dholland@NetBSD.org
Subject: Re: pkg/50273 (sysutils/findutils build fails on netbsd-7/i386)
Date: Sat, 26 Sep 2015 14:18:00 -0500 (CDT)
On Sat, 26 Sep 2015, dholland@NetBSD.org wrote:
> State-Changed-From-To: open->feedback
> State-Changed-By: dholland@NetBSD.org
> State-Changed-When: Sat, 26 Sep 2015 18:53:37 +0000
> State-Changed-Why:
> before I file a pullup, could you check that it builds now and doesn't trip
> on anything else? I don't have a 32-bit build machine...
The tagging of "pkgsrc-2015Q3" somehow slipped my notice, so I'm in the
process of backpedalling to that. I'll keep "findutils" at HEAD so I can
test. Results soon-ish.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/50273: sysutils/findutils build fails on netbsd-7/i386
Date: Sat, 26 Sep 2015 14:26:48 -0500 (CDT)
On Sat, 26 Sep 2015, David Holland wrote:
> probably it would be better to remove the entire file and use native
> time code instead, but that's probably a big job. And besides, on
> NetBSD, if you want a working find just use the one in /usr/bin :-)
Yes, but "sysutils/findutils" is claimed to be a dependency of
"misc/libreoffice" (v5.x). Were it not for that, I wouldn't dream
of building it.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: dholland@NetBSD.org
Subject: Re: pkg/50273 (sysutils/findutils build fails on netbsd-7/i386)
Date: Sat, 26 Sep 2015 16:44:44 -0500 (CDT)
On Sat, 26 Sep 2015, John D. Baker wrote:
> The tagging of "pkgsrc-2015Q3" somehow slipped my notice, so I'm in the
> process of backpedalling to that. I'll keep "findutils" at HEAD so I can
> test. Results soon-ish.
I've compile-tested it on all the 32-bit platforms I reported before.
It completes building on all of them.
(netbsd-7/{i386,sparc}, netbsd-7.99.21/macppc, netbsd-6/i386)
Run-time testing will likely be in the context of building
"misc/libreoffice" on netbsd-7/i386.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
State-Changed-From-To: feedback->pending-pullups
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 26 Sep 2015 22:11:21 +0000
State-Changed-Why:
pullup-pkgsrc #4817.
I expect that it will work; certainly in any event it should work prior to
2038. If it doesn't for some reason, let me/us know.
(as for the tagging, it was a week early; took me by surprise too.)
From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/50273 CVS commit: [pkgsrc-2015Q3] pkgsrc/sysutils/findutils
Date: Sun, 27 Sep 2015 08:14:35 +0000
Module Name: pkgsrc
Committed By: bsiegert
Date: Sun Sep 27 08:14:35 UTC 2015
Modified Files:
pkgsrc/sysutils/findutils [pkgsrc-2015Q3]: distinfo
Added Files:
pkgsrc/sysutils/findutils/patches [pkgsrc-2015Q3]:
patch-gnulib_lib_getdate.y
Log Message:
Pullup ticket #4817 - requested by dholland
sysutils/findutils: build fix
Revisions pulled up:
- sysutils/findutils/distinfo 1.17
- sysutils/findutils/patches/patch-gnulib_lib_getdate.y 1.1
---
Module Name: pkgsrc
Committed By: dholland
Date: Sat Sep 26 18:49:50 UTC 2015
Modified Files:
pkgsrc/sysutils/findutils: distinfo
Added Files:
pkgsrc/sysutils/findutils/patches: patch-gnulib_lib_getdate.y
Log Message:
Remove wrong compile-time assertion about the size of time_t. (I'm
sure this wrong code has popped up before, but I can't find any other
patches for it in pkgsrc right now.) PR 50273.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.16.2.1 pkgsrc/sysutils/findutils/distinfo
cvs rdiff -u -r0 -r1.1.2.2 \
pkgsrc/sysutils/findutils/patches/patch-gnulib_lib_getdate.y
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/50273 CVS commit: [pkgsrc-2015Q3] pkgsrc/doc
Date: Sun, 27 Sep 2015 08:14:41 +0000
Module Name: pkgsrc
Committed By: bsiegert
Date: Sun Sep 27 08:14:41 UTC 2015
Modified Files:
pkgsrc/doc [pkgsrc-2015Q3]: CHANGES-pkgsrc-2015Q3
Log Message:
Pullup ticket #4817 - requested by dholland
sysutils/findutils: build fix
Revisions pulled up:
- sysutils/findutils/distinfo 1.17
- sysutils/findutils/patches/patch-gnulib_lib_getdate.y 1.1
---
Module Name: pkgsrc
Committed By: dholland
Date: Sat Sep 26 18:49:50 UTC 2015
Modified Files:
pkgsrc/sysutils/findutils: distinfo
Added Files:
pkgsrc/sysutils/findutils/patches: patch-gnulib_lib_getdate.y
Log Message:
Remove wrong compile-time assertion about the size of time_t. (I'm
sure this wrong code has popped up before, but I can't find any other
patches for it in pkgsrc right now.) PR 50273.
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 pkgsrc/doc/CHANGES-pkgsrc-2015Q3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: pending-pullups->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 27 Sep 2015 17:36:47 +0000
State-Changed-Why:
All done - thanks for the quick responses
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.