Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jun 2015 11:11:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 201148] lang/gcc6-devel building with -Werror
Message-ID:  <bug-201148-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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 <malloc.h> 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 <malloc.h> which
is deprecated, use <stdlib.h> instead" [-Werror=cpp]
 #warning "this file includes <malloc.h> which is deprecated, use <stdlib.h>
instead"







I can commit the fix if you approve.

-- 
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-201148-13>