Bug 168804

Summary: [PATCH] math/fftw3 with openmp option fails to build with clang
Product: Ports & Packages Reporter: meyer.arne83
Component: Individual Port(s)Assignee: Brendan Fabeny <bf>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description meyer.arne83 2012-06-07 15:20:07 UTC
checking for OpenMP flag of C compiler... unknown
configure: error: don't know how to enable OpenMP
===>  Script "configure" failed unexpectedly.

Fix: If you chose the openmp option, build fftw3 either with gcc from base or ports.
IIRC base gcc has openmp, gcc46 has it for sure.

Patch attached with submission follows:
How-To-Repeat: try to build fftw3 with openmp support using clang
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-06-08 00:34:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bf

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-06-08 23:38:44 UTC
bf          2012-06-08 22:38:32 UTC

  FreeBSD ports repository

  Modified files:
    math/fftw3           Makefile 
  Log:
  exit earlier, and with a more helpful error message, when attempting to
  build the OpenMP libraries with clang [1]; shorten a long line
  
  PR:             168804 [1]
  
  Revision  Changes    Path
  1.73      +6 -2      ports/math/fftw3/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 b. f. 2012-06-08 23:55:01 UTC
I thought that it was well-known that clang doesn't support OpenMP (in
fact, I disabled the OPENMP option by default as a concession to those
who were experimenting with clang), but I should have known that
someone would try to do this.  I will make builds exit earlier, with a
more helpful message, but I am not willing to dictate that users use a
certain compiler.  Those users that are using a custom compiler
(clang) with a non-default option (OPENMP) should be prepared to make
this selection themselves, either in the environment, or on the
command-line, or in a number of included Makefiles that are available.

b.
Comment 4 Brendan Fabeny freebsd_committer freebsd_triage 2012-06-09 00:05:39 UTC
State Changed
From-To: open->closed

The port has been changed to exit earlier, and with a more helpful error 
message, in this case. The user should specify a suitable compiler when 
using this option.