Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Feb 2016 03:10:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 207097] misc/raspberrypi-userland: error: variable 'i' is incremented both in the loop header and in the loop body (stops the build)
Message-ID:  <bug-207097-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207097

            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@FreeBSD.org
          Reporter: markmi@dsl-only.net
                CC: mikael.urankar@gmail.com
                CC: mikael.urankar@gmail.com
             Flags: maintainer-feedback?(mikael.urankar@gmail.com)

[Context basics: projects/clang380-import -r295351 for buildworld/buildkern=
el
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-fcbf8a=
3/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-fcbf8a=
3/interface/mmal/util/mmal_param_convert.c:40:25:
note: incremented here
   for (i=3D0; 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] E=
rror
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-fcbf8a=
3/interface/mmal/core/mmal_clock.c:28:
In file included from
/usr/obj/portswork/usr/ports/misc/raspberrypi-userland/work/userland-fcbf8a=
3/build/inc/interface/vcos/vcos.h:185:
/usr/obj/portswork/usr/ports/misc/raspberrypi-userland/work/userland-fcbf8a=
3/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-fcbf8a=
3/interface/mmal/core/mmal_clock.c:190:12:
note: used here
   return (vcos_timer_create(timer, "mmal-clock timer", mmal_clock_timer_cb,
ctx) =3D=3D VCOS_SUCCESS);
           ^
(I will not list all of them.)

Stop reading the description here if you do not care about supporting detai=
ls
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=20=20=20=20
markmi@FreeBSDx64:/usr/obj/clang/arm.armv6/usr/src/sys/RPI2-NODBG  arm 1100=
097
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=20
DEFAULT_VERSIONS+=3Dperl5=3D5.22
WRKDIRPREFIX=3D/usr/obj/portswork
WITH_DEBUG=3D
WITH_DEBUG_FILES=3D
MALLOC_PRODUCTION=3D
#
TO_TYPE=3Darmv6
VERSION_CONTEXT=3D11.0
CFLAGS+=3D-target ${TO_TYPE}--freebsd${VERSION_CONTEXT}-gnueabi -march=3Dar=
mv7-a
-mcpu=3Dcortex-a7 -mfloat-abi=3Dsoftfp -mno-unaligned-access
.if ${.MAKE.LEVEL} =3D=3D 0
CC=3D/usr/bin/clang
CXX=3D/usr/bin/clang++
CPP=3D/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 f=
or
buildworld and buildkernel as well.)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207097-13>