From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Nov 22 14:40:13 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DD811065674 for ; Mon, 22 Nov 2010 14:40:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CA03B8FC1C for ; Mon, 22 Nov 2010 14:40:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oAMEeCFO074766 for ; Mon, 22 Nov 2010 14:40:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oAMEeC9t074765; Mon, 22 Nov 2010 14:40:12 GMT (envelope-from gnats) Resent-Date: Mon, 22 Nov 2010 14:40:12 GMT Resent-Message-Id: <201011221440.oAMEeC9t074765@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Koop Mast Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCD27106566C for ; Mon, 22 Nov 2010 14:38:57 +0000 (UTC) (envelope-from kwm@rainbow-runner.nl) Received: from fep13.mx.upcmail.net (fep13.mx.upcmail.net [62.179.121.33]) by mx1.freebsd.org (Postfix) with ESMTP id 359E78FC1F for ; Mon, 22 Nov 2010 14:38:56 +0000 (UTC) Received: from edge03.upcmail.net ([192.168.13.238]) by viefep13-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20101122143854.RJBD1429.viefep13-int.chello.at@edge03.upcmail.net> for ; Mon, 22 Nov 2010 15:38:54 +0100 Received: from mail.rainbow-runner.nl ([77.250.185.191]) by edge03.upcmail.net with edge id aEet1f02L48Bq8D03Eeudq; Mon, 22 Nov 2010 15:38:54 +0100 Received: from hermes.rainbow-runner.nl (localhost [127.0.0.1]) by mail.rainbow-runner.nl (Postfix) with ESMTP id 430D2107CEE6 for ; Mon, 22 Nov 2010 15:38:53 +0100 (CET) Received: from mail.rainbow-runner.nl ([127.0.0.1]) by hermes.rainbow-runner.nl (hermes.rainbow-runner.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5eDSzPk5uuYX for ; Mon, 22 Nov 2010 15:38:51 +0100 (CET) Received: by mail.rainbow-runner.nl (Postfix, from userid 1001) id EDDA7107CE65; Mon, 22 Nov 2010 15:38:50 +0100 (CET) Message-Id: <20101122143850.EDDA7107CE65@mail.rainbow-runner.nl> Date: Mon, 22 Nov 2010 15:38:50 +0100 (CET) From: Koop Mast To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/152480: [Patch] fix build of libffi with clang on amd64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Koop Mast List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2010 14:40:13 -0000 >Number: 152480 >Category: ports >Synopsis: [Patch] fix build of libffi with clang on amd64 >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 22 14:40:12 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: $CFLAGS are redundant for compiling .s files. GCC stays quiet, but Clang gives a warning of unused arguments. The configure check greps for warning, so the check fails. Remove $CFLAGS to clang doesn't emit the warnings. Patch by Dimitry Andric >How-To-Repeat: >Fix: --- libffi-clang.diff begins here --- Index: devel/libffi/files/patch-configure =================================================================== RCS file: /home/pcvs/ports/devel/libffi/files/patch-configure,v retrieving revision 1.1 diff -a -u -r1.1 patch-configure --- devel/libffi/files/patch-configure 18 Jul 2010 21:43:19 -0000 1.1 +++ devel/libffi/files/patch-configure 22 Nov 2010 14:07:36 -0000 @@ -1,5 +1,5 @@ ---- configure.orig 2010-06-03 20:49:28.000000000 +0000 -+++ configure 2010-06-03 20:50:18.000000000 +0000 +--- configure.orig 2010-11-22 12:53:14.000000000 +0100 ++++ configure 2010-11-22 12:53:26.000000000 +0100 @@ -12231,6 +12231,9 @@ powerpc-*-freebsd*) TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc @@ -10,5 +10,12 @@ powerpc*-*-rtems*) TARGET=POWERPC; TARGETDIR=powerpc ;; - - +@@ -14484,7 +14487,7 @@ + + libffi_cv_as_x86_pcrel=yes + echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s +- if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then ++ if $CC -c conftest.s 2>&1 | grep -i warning > /dev/null; then + libffi_cv_as_x86_pcrel=no + fi + --- libffi-clang.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: