[Bug 1094222] New: gcc-8 on opensuse tumbleweed points to wrong location when displaying error
http://bugzilla.suse.com/show_bug.cgi?id=1094222 Bug ID: 1094222 Summary: gcc-8 on opensuse tumbleweed points to wrong location when displaying error Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: jmcdonough@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 770999 --> http://bugzilla.suse.com/attachment.cgi?id=770999&action=edit .i file from building lib/util/debug.c Compiling the latest upstream samba with -O3, -Werror, among other flags, fails but doesn't point to the correct error location. The line it's giving us doesn't make any sense for the error printed. Below is the failing command and error messages. I'll attach the .i as well. gcc-8 -O3 -DDEVELOPER -DDEBUG_PASSWORD -fPIC -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -fstack-protector -g -Wall -Wshadow -Wmissing-prototypes -Wcast-align -Wcast-qual -fno-common -Werror=address -Werror=strict-prototypes -Wstrict-prototypes -Werror=write-strings -Wwrite-strings -Werror-implicit-function-declaration -Werror=pointer-arith -Wpointer-arith -Werror=declaration-after-statement -Wdeclaration-after-statement -Werror=return-type -Wreturn-type -Werror=uninitialized -Wuninitialized -Wimplicit-fallthrough -Werror=strict-overflow -Wstrict-overflow=2 -Wformat=2 -Wno-format-y2k -Wno-format-zero-length -Werror=format-security -Wformat-security -Werror=format -Werror -Wno-error=deprecated-declarations -Wno-error=tautological-compare -DSTATIC_samba_debug_MODULES=NULL -DSTATIC_samba_debug_MODULES_PROTO="extern void __samba_debug_dummy_module_proto(void)" -MD -Idefault/include/public -I../include/public -Idefault/source4 -I../source4 -Idefault/lib -I../lib -Idefault/source4/lib -I../source4/lib -Idefault/source4/include -I../source4/include -Idefault/include -I../include -Idefault/lib/replace -I../lib/replace -Idefault -I.. -Idefault/lib/talloc -I../lib/talloc -I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../lib/util/debug.c -c -save-temps -o default/lib/util/debug_11.o ../lib/util/debug.c: In function 'debug_parse_levels': ../lib/util/debug.c:796:5: error: assuming pointer wraparound does not occur when comparing P +- C1 with P +- C2 [-Werror=strict-overflow] bool debug_parse_levels(const char *params_str) ^~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1094222
James McDonough
http://bugzilla.suse.com/show_bug.cgi?id=1094222
Chenzi Cao
http://bugzilla.suse.com/show_bug.cgi?id=1094222
http://bugzilla.suse.com/show_bug.cgi?id=1094222#c1
Richard Biener
http://bugzilla.suse.com/show_bug.cgi?id=1094222
http://bugzilla.suse.com/show_bug.cgi?id=1094222#c2
--- Comment #2 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1094222
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1094222
http://bugzilla.suse.com/show_bug.cgi?id=1094222#c4
--- Comment #4 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1094222
http://bugzilla.suse.com/show_bug.cgi?id=1094222#c5
--- Comment #5 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1094222
http://bugzilla.suse.com/show_bug.cgi?id=1094222#c6
--- Comment #6 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1094222
http://bugzilla.suse.com/show_bug.cgi?id=1094222#c7
--- Comment #7 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1094222
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1094222
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1094222
http://bugzilla.suse.com/show_bug.cgi?id=1094222#c8
--- Comment #8 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1094222
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1094222
http://bugzilla.suse.com/show_bug.cgi?id=1094222#c9
--- Comment #9 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1094222
http://bugzilla.suse.com/show_bug.cgi?id=1094222#c10
Richard Biener
http://bugzilla.suse.com/show_bug.cgi?id=1094222
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1094222
Swamp Workflow Management
https://bugzilla.suse.com/show_bug.cgi?id=1094222
https://bugzilla.suse.com/show_bug.cgi?id=1094222#c15
--- Comment #15 from Swamp Workflow Management
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com