From owner-freebsd-ports@freebsd.org Mon Nov 14 22:56:38 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7FE3FC41E56 for ; Mon, 14 Nov 2016 22:56:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6DF81E42 for ; Mon, 14 Nov 2016 22:56:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uAEMucdR028010 for ; Mon, 14 Nov 2016 22:56:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports@FreeBSD.org Subject: [Bug 214456] lang/gcc6: -r424540: FreeBSD's WITH_DEBUG= and full bootstrap are incompatible and the build stops (powerpc 32-bit anyway) Date: Mon, 14 Nov 2016 22:56:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markmi@dsl-only.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2016 22:56:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214456 --- Comment #4 from Mark Millard --- (In reply to Gerald Pfeifer from comment #3) Below gives the evidence from the script log file. But the summary is that, while both stage 2 and stage 3 list -g in the powerpc xg++ command, stage 2's xg++ com= mand has -gtoggle and stage 3's xg++ command does not. -gtoggle is described in https://gcc.gnu.org/onlinedocs/gcc/Developer-Options.html as: -gtoggle Turn off generation of debug info, if leaving out this option generates it,= or turn it on at level 2 otherwise. The position of this argument in the command line = does not matter; it takes effect after all other options are processed, and it does = so only once, no matter how many times it is given. This is mainly intended to be used wi= th -fcompare-debug. I'll note that so far I've only seen the mismatched comparison on powerpc, = not even powerpc64. amd64 and armv6 have not had a mismatch. The detailed evidence using read-rtl.c and its read-rtl.o as an example . .= . The first compile (stage 1) of read-rtl.o from the log (just shown for reference): c++ -std=3Dgnu++98 -c -g -DIN_GCC -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-stri= ngs -Wcast-qual -Wno-format -Wmissing-format-attrib ute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-= PIE -I. -Ibuild -I/usr/obj/portswork/usr/ports/lang/gc c6/work/gcc-6.2.0/gcc -I/usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/gcc/build -I/usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/gcc/../include=20 -I/usr/obj/portswork/usr/ports/lang/gcc6 /work/gcc-6.2.0/gcc/../libcpp/include -DLIBICONV_PLUG \ -o build/read-rtl.o /usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/gcc/read-rtl.c c++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated The 2nd stage (the first compile by xg++): (formatted to isolate the later difference with the 3rd as single option on= its own line) /usr/obj/portswork/usr/ports/lang/gcc6/work/.build/./prev-gcc/xg++ -B/usr/obj/portswork/usr/ports/lang/gcc6/work/.build/./prev-gcc/ -B/usr/local/powerpc-portbld-freebsd12.0/bin/ -nostdinc++ -B/usr/obj /portswork/usr/ports/lang/gcc6/work/.build/prev-powerpc-portbld-freebsd12.0= /libstdc++-v3/src/.libs -B/usr/obj/portswork/usr/ports/lang/gcc6/work/.build/prev-powerpc-portbld-f= reebsd12.0/libstdc++-v3/li bsupc++/.libs -isystem /usr/obj/portswork/usr/ports/lang/gcc6/work/.build/prev-powerpc-portbld-fre= ebsd12.0/libstdc++-v3/include/powerpc-portbld-freebsd12.0 -isystem /usr/obj/portswork/usr/ports/lang /gcc6/work/.build/prev-powerpc-portbld-freebsd12.0/libstdc++-v3/include=20 -isystem /usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/libstdc++-v3/libsupc++ -L/usr/obj/portswork/usr/ports/lang/gcc6/ work/.build/prev-powerpc-portbld-freebsd12.0/libstdc++-v3/src/.libs -L/usr/obj/portswork/usr/ports/lang/gcc6/work/.build/prev-powerpc-portbld-f= reebsd12.0/libstdc++-v3/libsupc++/.libs -c -g -O2 -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_= FILE -fno-PIE -I. -Ibuild -I/usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/gcc -I/usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/gcc/build -I/usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/gcc/../include -I/usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/gcc/../libcpp/inclu= de -DLIBICONV_PLUG \ -o build/read-rtl.o /usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/gcc/read-rtl.c The 3rd stage (the 2nd compile by xg++) does not have -gtoggle: (blank line for the lack of the -gtoggle) /usr/obj/portswork/usr/ports/lang/gcc6/work/.build/./prev-gcc/xg++ -B/usr/obj/portswork/usr/ports/lang/gcc6/work/.build/./prev-gcc/ -B/usr/local/powerpc-portbld-freebsd12.0/bin/ -nostdinc++ -B/usr/obj /portswork/usr/ports/lang/gcc6/work/.build/prev-powerpc-portbld-freebsd12.0= /libstdc++-v3/src/.libs -B/usr/obj/portswork/usr/ports/lang/gcc6/work/.build/prev-powerpc-portbld-f= reebsd12.0/libstdc++-v3/li bsupc++/.libs -isystem /usr/obj/portswork/usr/ports/lang/gcc6/work/.build/prev-powerpc-portbld-fre= ebsd12.0/libstdc++-v3/include/powerpc-portbld-freebsd12.0 -isystem /usr/obj/portswork/usr/ports/lang /gcc6/work/.build/prev-powerpc-portbld-freebsd12.0/libstdc++-v3/include=20 -isystem /usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/libstdc++-v3/libsupc++ -L/usr/obj/portswork/usr/ports/lang/gcc6/ work/.build/prev-powerpc-portbld-freebsd12.0/libstdc++-v3/src/.libs -L/usr/obj/portswork/usr/ports/lang/gcc6/work/.build/prev-powerpc-portbld-f= reebsd12.0/libstdc++-v3/libsupc++/.libs -c -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_= FILE -fno-PIE -I. -Ibuild -I/usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/gcc -I/usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/gcc/build -I/usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/gcc/../include -I/usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/gcc/../libcpp/inclu= de -DLIBICONV_PLUG \ -o build/read-rtl.o /usr/obj/portswork/usr/ports/lang/gcc6/work/gcc-6.2.0/gcc/read-rtl.c -gtoggle is the only difference that I find between the commands. --=20 You are receiving this mail because: You are the assignee for the bug.=