Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  1 Nov 2010 19:58:44 +0100 (CET)
From:      Koop Mast <kwm@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/151874: devel/binutils : Allow build with clang.
Message-ID:  <20101101185844.361F6107CA36@mail.rainbow-runner.nl>
Resent-Message-ID: <201011011900.oA1J0GmA009010@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101101185844.361F6107CA36>