NetBSD Problem Report #49469
From www@NetBSD.org Sun Dec 14 14:13:31 2014
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 03CE6A57FD
for <gnats-bugs@gnats.NetBSD.org>; Sun, 14 Dec 2014 14:13:31 +0000 (UTC)
Message-Id: <20141214141329.72B77A6555@mollari.NetBSD.org>
Date: Sun, 14 Dec 2014 14:13:29 +0000 (UTC)
From: vallesroc@gmail.com
Reply-To: vallesroc@gmail.com
To: gnats-bugs@NetBSD.org
Subject: libbz2 compress.c doesn't build, breaking netbsd build.
X-Send-Pr-Version: www-1.0
>Number: 49469
>Category: lib
>Synopsis: libbz2 compress.c doesn't build, breaking netbsd build.
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: lib-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 14 14:15:00 +0000 2014
>Closed-Date: Sun Nov 10 18:44:22 +0000 2019
>Last-Modified: Sun Nov 10 18:44:22 +0000 2019
>Originator: Roc Vallès Domènech
>Release: Current (20141214)
>Organization:
>Environment:
NetBSD yuukonet.hell 6.99.28 NetBSD 6.99.28 (YUUKONET) #7: Sat Jan 4 15:21:11 UTC 2014 rvalles@yuukonet.hell:/usr/src/sys/arch/i386/compile/YUUKONET i386
>Description:
# compile libbz2/compress.o
/usr/src/../tools/bin/i486--netbsdelf-gcc -O2 -march=athlon-xp -mfpmath=sse -msse2 -
O3 -pipe -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-ar
ith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch
-Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compar
e -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror
-fstack-protector -Wstack-protector --param ssp-buffer-size=1 --sysroot=/usr/
src/../obj/destdir.i386 -D_FORTIFY_SOURCE=2 -c /usr/src/external/bsd/bzip2/dist/
compress.c -o compress.o
/usr/src/external/bsd/bzip2/dist/compress.c: In function 'BZ2_compressBlock':
/usr/src/external/bsd/bzip2/dist/compress.c:403:25: error: 'cost[5]' may be used uni
nitialized in this function [-Werror=maybe-uninitialized]
if (cost[t] < bc) { bc = cost[t]; bt = t; };
For what's worth, it was initialized like this:
for (t = 0; t < nGroups; t++) cost[t] = 0;
Just a few lines above. Just gcc being weird.
>How-To-Repeat:
Get current sources.
Try to build them (x86, 32bit): (/usr/src) ./build.sh -O ../obj -T ../tools -U distribution
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 10 Nov 2019 18:44:22 +0000
State-Changed-Why:
Assuming stale bug report - build issues tend to be resolved rather quickly, and it's been a while. Thanks for the report.
>Unformatted:
(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.