ports/175320: ports-mgmt/pkg: array bounds compile error with gcc 4.7

Tijl Coosemans tijl at coosemans.org
Tue Jan 15 11:00:02 UTC 2013


>Number:         175320
>Category:       ports
>Synopsis:       ports-mgmt/pkg: array bounds compile error with gcc 4.7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 15 11:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Tijl Coosemans
>Release:        FreeBSD 10.0-CURRENT i386
>Organization:
>Environment:
>Description:
Building ports-mgmt/pkg with gcc 4.7 gives the following error:

gcc47 -O2 -pipe -march=pentium4m -Wl,-rpath=/usr/local/lib/gcc47
-fno-strict-aliasing -march=pentium4m
-I/usr/obj/usr/ports/ports-mgmt/pkg/work/pkg-1.0.4/pkg/../libpkg
-std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
-Wold-style-definition -Wno-pointer-sign -c progressmeter.c
progressmeter.c: In function 'refresh_progress_meter':
progressmeter.c:186:47: error: array subscript is below array
bounds [-Werror=array-bounds]
cc1: all warnings being treated as errors
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list