[Bug 207097] misc/raspberrypi-userland: error: variable 'i' is incremented both in the loop header and in the loop body (stops the build)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Feb 11 03:10:38 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207097
Bug ID: 207097
Summary: misc/raspberrypi-userland: error: variable 'i' is
incremented both in the loop header and in the loop
body (stops the build)
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: markmi at dsl-only.net
CC: mikael.urankar at gmail.com
CC: mikael.urankar at gmail.com
Flags: maintainer-feedback?(mikael.urankar at gmail.com)
[Context basics: projects/clang380-import -r295351 for buildworld/buildkernel
that targeted an rpi2 (armv7-a/cortex-a7).]
When I attempt portinstall/portmaster builds for misc/raspberrypi-userland I
get the following.
. . .
[ 21%] Building C object
interface/khronos/CMakeFiles/EGL_static.dir/vg/vg_int_mat3x3.c.o
/usr/obj/portswork/usr/ports/misc/raspberrypi-userland/work/userland-fcbf8a3/interface/mmal/util/mmal_param_convert.c:47:7:
error: variable 'i' is incremented both in the loop header and in the loop body
[-Werror,-Wfor-loop-analysis]
i++;
^
/usr/obj/portswork/usr/ports/misc/raspberrypi-userland/work/userland-fcbf8a3/interface/mmal/util/mmal_param_convert.c:40:25:
note: incremented here
for (i=0; i<n_pairs; i++)
^
1 error generated.
--- interface/mmal/util/CMakeFiles/mmal_util.dir/mmal_param_convert.c.o ---
*** [interface/mmal/util/CMakeFiles/mmal_util.dir/mmal_param_convert.c.o] Error
code 1
make[4]: stopped in
/usr/obj/portswork/usr/ports/misc/raspberrypi-userland/work/.build
1 error
. . .
which stops the overall build.
There are also some reports like:
[ 18%] Building C object
interface/khronos/CMakeFiles/EGL_static.dir/common/khrn_client_global_image_map.c.o
In file included from
/usr/obj/portswork/usr/ports/misc/raspberrypi-userland/work/userland-fcbf8a3/interface/mmal/core/mmal_clock.c:28:
In file included from
/usr/obj/portswork/usr/ports/misc/raspberrypi-userland/work/userland-fcbf8a3/build/inc/interface/vcos/vcos.h:185:
/usr/obj/portswork/usr/ports/misc/raspberrypi-userland/work/userland-fcbf8a3/build/inc/interface/vcos/vcos_timer.h:80:15:
warning: inline function 'vcos_timer_create' is not defined
[-Wundefined-inline]
VCOS_STATUS_T vcos_timer_create(VCOS_TIMER_T *timer,
^
/usr/obj/portswork/usr/ports/misc/raspberrypi-userland/work/userland-fcbf8a3/interface/mmal/core/mmal_clock.c:190:12:
note: used here
return (vcos_timer_create(timer, "mmal-clock timer", mmal_clock_timer_cb,
ctx) == VCOS_SUCCESS);
^
(I will not list all of them.)
Stop reading the description here if you do not care about supporting details
at this point.
Other context details:
# freebsd-version -ku; uname -aKU
11.0-CURRENT
11.0-CURRENT
FreeBSD rpi2 11.0-CURRENT FreeBSD 11.0-CURRENT #14 r295351M: Sun Feb 7
03:23:24 PST 2016
markmi at FreeBSDx64:/usr/obj/clang/arm.armv6/usr/src/sys/RPI2-NODBG arm 1100097
1100097
# svnlite info /usr/ports/misc/raspberrypi-userland
Path: misc/raspberrypi-userland
Working Copy Root Path: /usr/ports
URL: https://svn0.us-west.freebsd.org/ports/head/misc/raspberrypi-userland
Relative URL: ^/head/misc/raspberrypi-userland
Repository Root: https://svn0.us-west.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 408464
Node Kind: directory
Schedule: normal
Last Changed Author: amdmi3
Last Changed Rev: 408041
Last Changed Date: 2016-02-04 15:13:32 +0000 (Thu, 04 Feb 2016)
$ more /etc/make.conf
DEFAULT_VERSIONS+=perl5=5.22
WRKDIRPREFIX=/usr/obj/portswork
WITH_DEBUG=
WITH_DEBUG_FILES=
MALLOC_PRODUCTION=
#
TO_TYPE=armv6
VERSION_CONTEXT=11.0
CFLAGS+=-target ${TO_TYPE}--freebsd${VERSION_CONTEXT}-gnueabi -march=armv7-a
-mcpu=cortex-a7 -mfloat-abi=softfp -mno-unaligned-access
.if ${.MAKE.LEVEL} == 0
CC=/usr/bin/clang
CXX=/usr/bin/clang++
CPP=/usr/bin/clang-cpp
.export CC
.export CXX
.export CPP
.endif
(In case it is not clear: This is clang 3.8.0 that is in use. It was used for
buildworld and buildkernel as well.)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list