Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2016 08:51:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 214601] gammu compile error due to unreachable code warning
Message-ID:  <bug-214601-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 214601
           Summary: gammu compile error due to unreachable code warning
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: gert@lynge.org

On my FreeBSD gammu fails compiling:
--
FreeBSD 9.3-RELEASE-p49 #0: Fri Oct 21 21:01:08 UTC 2016=20=20=20=20
root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
The C compiler identification is GNU 4.2.1
--
I use freebsd-update (for major freebsd upgrades and minor fixes) and
portsnap/portupgrade often.

This is the error:
--
[...]
[ 22%] Building C object libgammu/CMakeFiles/libGammu.dir/service/gsmdata.c=
.o
cd /usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc=20
-D_FILE_OFFSET_BITS=3D64 -D_FORTIFY_SOURCE=3D2 -D_LARGEFILE_SOURCE
-DlibGammu_EXPORTS -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include
-I/usr/ports/comms/gammu/work/.build/libgammu/../include
-I/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe
-march=3Dcore2 -fstack-protector -fno-strict-aliasing -Werror -Wall
-Werror-implicit-function-declaration -Wno-deprecated-declarations
-Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-=
cast
-Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow
-Wstrict-prototypes -Wsign-compare -Wunreachable-code
-Wno-error=3Dunreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant=
-decls
-Wshadow -Wformat=3D2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protec=
tor
-fPIC -O2 -pipe -march=3Dcore2 -fstack-protector -fno-strict-aliasing -fPIC=
=20=20=20
-fPIC -o CMakeFiles/libGammu.dir/service/gsmdata.c.o   -c
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmdata.c
cc1: warnings being treated as errors
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c: In
function 'GSM_DecodeVCAL_RRULE':
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1461:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1462:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1469:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1493:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1494:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1496:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1503:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1506:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1507:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1536:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1537:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1540:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1547:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1570:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1571:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1583:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1584:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1598:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1599:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1605:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1606:
warning: will never be executed
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmcal.c:1657:
warning: will never be executed
*** [libgammu/CMakeFiles/libGammu.dir/service/gsmcal.c.o] Error code 1
[ 22%] Building C object libgammu/CMakeFiles/libGammu.dir/service/gsmpbk.c.o
cd /usr/ports/comms/gammu/work/.build/libgammu && /usr/bin/cc=20
-D_FILE_OFFSET_BITS=3D64 -D_FORTIFY_SOURCE=3D2 -D_LARGEFILE_SOURCE
-DlibGammu_EXPORTS -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include
-I/usr/ports/comms/gammu/work/.build/libgammu/../include
-I/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/../common -O2 -pipe
-march=3Dcore2 -fstack-protector -fno-strict-aliasing -Werror -Wall
-Werror-implicit-function-declaration -Wno-deprecated-declarations
-Wdeclaration-after-statement -Wpointer-arith -Wfloat-equal -Wbad-function-=
cast
-Wmissing-format-attribute -Wmissing-noreturn -Wpointer-arith -Wshadow
-Wstrict-prototypes -Wsign-compare -Wunreachable-code
-Wno-error=3Dunreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant=
-decls
-Wshadow -Wformat=3D2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protec=
tor
-fPIC -O2 -pipe -march=3Dcore2 -fstack-protector -fno-strict-aliasing -fPIC=
=20=20=20
-fPIC -o CMakeFiles/libGammu.dir/service/gsmpbk.c.o   -c
/usr/ports/comms/gammu/work/gammu-1.37.91/libgammu/service/gsmpbk.c
1 error
*** [libgammu/CMakeFiles/libGammu.dir/all] Error code 2
1 error
*** [all] Error code 2
1 error
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure =
to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/comms/gammu.
*** [stage] Error code 1

Stop in /usr/ports/comms/gammu.
--

My workaround is to change /work/gammu-1.37.91/gammu-CMakeLists.txt to comm=
ent
this line out:
#MACRO_TUNE_COMPILER("-Wunreachable-code")

Met me know if I can provide further information (this is my first bug repo=
rt,
so have patience with me :-) )

--=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-214601-13>