From owner-freebsd-ports-bugs@freebsd.org Sat Jun 27 11:11:04 2015 Return-Path: Delivered-To: freebsd-ports-bugs@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 C24CC98E890 for ; Sat, 27 Jun 2015 11:11:04 +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 AE3A118AE for ; Sat, 27 Jun 2015 11:11:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t5RBB4Ba098887 for ; Sat, 27 Jun 2015 11:11:04 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 201148] lang/gcc6-devel building with -Werror Date: Sat, 27 Jun 2015 11:11:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: marino@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gerald@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jun 2015 11:11:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201148 Bug ID: 201148 Summary: lang/gcc6-devel building with -Werror Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: gerald@FreeBSD.org Reporter: marino@FreeBSD.org Assignee: gerald@FreeBSD.org Flags: maintainer-feedback?(gerald@FreeBSD.org) Hi Gerald, Development snapshots of gcc build with -Werror (this is turned off for releases), but we are not supposed to build with -Werror in ports. The fix: --- lang/gcc6-devel/Makefile +++ lang/gcc6-devel/Makefile @@ -96,6 +96,7 @@ CONFIGURE_ARGS+=--disable-nls \ --with-gxx-include-dir=${TARGLIB}/include/c++/ \ --with-ld=${LOCALBASE}/bin/ld \ ${ICONV_CONFIGURE_ARG} \ + --disable-werror \ --with-pkgversion="FreeBSD Ports Collection" \ --with-system-zlib MAKE_ARGS+= MAKEINFOFLAGS="--no-split" FYI, I hit this on dragonfly because gcc wrongly uses include in at least 3 places: -o build/genchecksum.o .././../gcc-6-20150621/gcc/genchecksum.c /wrkdirs/lang/gcc6-devel/work/build/./prev-gcc/xg++ -B/wrkdirs/lang/gcc6-devel/work/build/./prev-gcc/ -B/usr/local/x86_64-portbld-dragonfly4.3/bin/ -nostdinc++ -B/wrkdirs/lang/gcc6-devel/work/build/prev-x86_64-portbld-dragonfly4.3/libstdc++-v3/src/.libs -B/wrkdirs/lang/gcc6-devel/work/build/prev-x86_64-portbld-dragonfly4.3/libstdc++-v3/libsupc++/.libs -isystem /wrkdirs/lang/gcc6-devel/work/build/prev-x86_64-portbld-dragonfly4.3/libstdc++-v3/include/x86_64-portbld-dragonfly4.3 -isystem /wrkdirs/lang/gcc6-devel/work/build/prev-x86_64-portbld-dragonfly4.3/libstdc++-v3/include -isystem /wrkdirs/lang/gcc6-devel/work/gcc-6-20150621/libstdc++-v3/libsupc++ -L/wrkdirs/lang/gcc6-devel/work/build/prev-x86_64-portbld-dragonfly4.3/libstdc++-v3/src/.libs -L/wrkdirs/lang/gcc6-devel/work/build/prev-x86_64-portbld-dragonfly4.3/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 -Werror -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I.././../gcc-6-20150621/gcc -I.././../gcc-6-20150621/gcc/build -I.././../gcc-6-20150621/gcc/../include -I.././../gcc-6-20150621/gcc/../libcpp/include -DLIBICONV_PLUG \ -o build/inchash.o .././../gcc-6-20150621/gcc/inchash.c In file included from .././../gcc-6-20150621/gcc/system.h:481:0, from .././../gcc-6-20150621/gcc/genhooks.c:21: /usr/include/malloc.h:2:2: error: #warning "this file includes which is deprecated, use instead" [-Werror=cpp] #warning "this file includes which is deprecated, use instead" I can commit the fix if you approve. -- You are receiving this mail because: You are the assignee for the bug.