ports/151874: devel/binutils : Allow build with clang.
Koop Mast
kwm at FreeBSD.org
Mon Nov 1 19:00:17 UTC 2010
>Number: 151874
>Category: ports
>Synopsis: devel/binutils : Allow build with clang.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Nov 01 19:00:16 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Koop Mast
>Release: FreeBSD 8.1-RELEASE-p1 amd64
>Organization:
>Environment:
System: FreeBSD hermes.rainbow-runner.nl 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #3 r212995: Wed Sep 22 14:19:30 CEST 2010 root at hermes.rainbow-runner.nl:/var/obj/usr/src/sys/Hermes amd64
>Description:
The Clang compiler has a different set of warnings then the GCC
compiler in base. Since -Werror is enabled the build fails.
>How-To-Repeat:
>Fix:
Disable -Werror, so it doesn't see warnings anymore as fatal.
--- binutils-clang.diff begins here ---
? devel/binutils/binutils-clang.diff
Index: devel/binutils/Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/binutils/Makefile,v
retrieving revision 1.11
diff -a -u -r1.11 Makefile
--- devel/binutils/Makefile 11 Jun 2010 15:09:41 -0000 1.11
+++ devel/binutils/Makefile 1 Nov 2010 16:27:02 -0000
@@ -29,6 +29,7 @@
CFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+= --with-system-zlib \
+ --disable-werror \
--with-gmp=${LOCALBASE} \
--with-mpfr=${LOCALBASE}
--- binutils-clang.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list