Date: Mon, 24 Feb 2014 21:36:39 -0800 (PST) From: Don Lewis <truckman@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/187018: [patch] multimedia/gstreamer-ffmpeg fails during configure with clang 3.4 Message-ID: <201402250536.s1P5adfv068992@mousie.catspoiler.org> Resent-Message-ID: <201402250540.s1P5e1XJ093930@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 187018 >Category: ports >Synopsis: [patch] multimedia/gstreamer-ffmpeg fails during configure with clang 3.4 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 25 05:40:01 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Don Lewis >Release: FreeBSD 11.0-CURRENT i386 >Organization: FreeBSD Project >Environment: System: FreeBSD scratch.catspoiler.org 11.0-CURRENT FreeBSD 11.0-CURRENT #70 r262340M: Sat Feb 22 15:58:39 PST 2014 dl@scratch.catspoiler.org:/usr/obj/usr/src/sys/GENERICSMB i386 Ports revision r345674 >Description: The multimedia/gstreamer-ffmpeg port fails during configuration if clang 3.4 is the system compiler. checking for gcc... cc checking whether the C compiler works... no configure: error: in `/usr/ports/multimedia/gstreamer-ffmpeg/work/gst-ffmpeg-0.10.13': configure: error: C compiler cannot create executables See `config.log' for more details ===> Script "configure" failed unexpectedly. The config.log file shows the actual reason for the failure: configure:3939: checking whether the C compiler works configure:3961: cc -O2 -pipe -march=athlon64 -fno-force-addr -msse -fno-strict-a liasing -Wl,-Bsymbolic conftest.c >&5 cc: error: unknown argument: '-fno-force-addr' configure:3965: $? = 1 configure:4003: result: no configure: failed program was: | /* confdefs.h */ >How-To-Repeat: Attempt to build multimedia/gstreamer-ffmpeg on a machine with clang version 3.4 as the system compiler. >Fix: The following patch allows the port build to succeed: Index: Makefile =================================================================== --- Makefile (revision 345674) +++ Makefile (working copy) @@ -30,7 +30,10 @@ --enable-runtime-cpudetect \ --enable-pic LDFLAGS+= -Wl,-Bsymbolic +_COMPILER_VERSION!= ${CC} --version +.if !${_COMPILER_VERSION:Mclang} CFLAGS+= -fno-force-addr +.endif CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG} PLIST_SUB= VERSION="${GST_VERSION}" >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402250536.s1P5adfv068992>