[Bug 214601] gammu compile error due to unreachable code warning
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Nov 17 08:51:33 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214601
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 at FreeBSD.org
Reporter: gert at lynge.org
On my FreeBSD gammu fails compiling:
--
FreeBSD 9.3-RELEASE-p49 #0: Fri Oct 21 21:01:08 UTC 2016
root at 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
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -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=core2 -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=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls
-Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector
-fPIC -O2 -pipe -march=core2 -fstack-protector -fno-strict-aliasing -fPIC
-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
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -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=core2 -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=unreachable-code -Wno-pointer-sign -Wwrite-strings -Wredundant-decls
-Wshadow -Wformat=2 -Wno-format-y2k -Wno-format-nonliteral -fstack-protector
-fPIC -O2 -pipe -march=core2 -fstack-protector -fno-strict-aliasing -fPIC
-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
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes 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 comment
this line out:
#MACRO_TUNE_COMPILER("-Wunreachable-code")
Met me know if I can provide further information (this is my first bug report,
so have patience with me :-) )
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list