From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Feb 24 06:10:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 83368A73 for ; Mon, 24 Feb 2014 06:10:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 56F95167A for ; Mon, 24 Feb 2014 06:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1O6A0L3011892 for ; Mon, 24 Feb 2014 06:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1O6A0OE011891; Mon, 24 Feb 2014 06:10:00 GMT (envelope-from gnats) Resent-Date: Mon, 24 Feb 2014 06:10:00 GMT Resent-Message-Id: <201402240610.s1O6A0OE011891@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, Don Lewis Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9B4F2A4E for ; Mon, 24 Feb 2014 06:06:00 +0000 (UTC) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 671601660 for ; Mon, 24 Feb 2014 06:06:00 +0000 (UTC) Received: from mousie.catspoiler.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id s1O65xY3073427 for ; Sun, 23 Feb 2014 22:05:59 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: from mousie.catspoiler.org (localhost.catspoiler.org [127.0.0.1]) by mousie.catspoiler.org (8.14.7/8.14.7) with ESMTP id s1O65xuk064534 for ; Sun, 23 Feb 2014 22:05:59 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: (from dl@localhost) by mousie.catspoiler.org (8.14.7/8.14.7/Submit) id s1O65xIn064533; Sun, 23 Feb 2014 22:05:59 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201402240605.s1O65xIn064533@mousie.catspoiler.org> Date: Sun, 23 Feb 2014 22:05:59 -0800 (PST) From: Don Lewis To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/186998: [patch] math/fftw3 port fails during configure on i386 with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Don Lewis List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Feb 2014 06:10:00 -0000 >Number: 186998 >Category: ports >Synopsis: [patch] math/fftw3 port fails during configure on i386 with clang >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 24 06:10:00 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 345674 clang version 3.4 >Description: When attempting to build the math/fftw3 port, it fails during the configure step: checking for gcc... cc checking whether the C compiler works... no configure: error: in `/usr/ports/math/fftw3/work/fftw-3.3.3': configure: error: C compiler cannot create executables See `config.log' for more details ===> Script "configure" failed unexpectedly. Please report the problem to bf@FreeBSD.org [maintainer] and attach the "/usr/ports/math/fftw3/work/fftw-3.3.3/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. a /usr/local/sbin/pkg-static info -g -Ea). *** Error code 1 Stop. make[1]: stopped in /usr/ports/math/fftw3 *** Error code 1 Stop. make: stopped in /usr/ports/math/fftw3 The following snippet of config.log shows that the cause of the problem is that clang rejects the -malign-double command line option: configure:4046: checking whether the C compiler works configure:4068: cc -O2 -pipe -march=athlon64 -O3 -ffast-math -fstrict-aliasing -efomit-frame-pointer -malign-double conftest.c >&5 cc: error: unknown argument: '-malign-double' configure:4072: $? = 1 configure:4110: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "fftw" | #define PACKAGE_TARNAME "fftw" | #define PACKAGE_VERSION "3.3.3" | #define PACKAGE_STRING "fftw 3.3.3" | #define PACKAGE_BUGREPORT "fftw@fftw.org" | #define PACKAGE_URL "" | #define PACKAGE "fftw" | #define VERSION "3.3.3" | #define FFTW_ENABLE_ALLOCA 1 | #define HAVE_SSE2 1 | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:4115: error: in `/usr/ports/math/fftw3/work/fftw-3.3.3': configure:4118: error: C compiler cannot create executables See `config.log' for more details >How-To-Repeat: Attempt to build the port on an i386 with clang version 3.4. >Fix: The following Makefile patch fixes the problem for me. It is untested on a machine with gcc. Index: Makefile =================================================================== --- Makefile (revision 345674) +++ Makefile (working copy) @@ -62,7 +62,10 @@ CFLAGS+= -fomit-frame-pointer . endif . if ${ARCH} == "i386" +_COMPILER_VERSION!= ${CC} --version +. if !${_COMPILER_VERSION:Mclang} CFLAGS+= -malign-double +. endif . endif WITHOUT_NO_STRICT_ALIASING= yes .endif # end OPTIMIZED_CFLAGS >Release-Note: >Audit-Trail: >Unformatted: