Jack,

My Fink package clustalo has the ability to build using OpenMP.  When I 
set CC and CXX to mpicc and mpic++ on 10.7, the package builds fine and 
links to the openmpi and gcc48 libraries.  However, I have a bug report 
from a 10.9.1 user where omp.h is not found.  Here's the failed compiler 
command:

/bin/sh ../../libtool --tag=CC   --mode=compile mpicc -DHAVE_CONFIG_H 
-I. -I../../src   -I/sw/include -fopenmp  -O3 -g -O2 -MT ktuple_pair.lo 
-MD -MP -MF .deps/ktuple_pair.Tpo -c -o ktuple_pair.lo ktuple_pair.c
libtool: compile:  mpicc -DHAVE_CONFIG_H -I. -I../../src -I/sw/include 
-fopenmp -O3 -g -O2 -MT ktuple_pair.lo -MD -MP -MF .deps/ktuple_pair.Tpo 
-c ktuple_pair.c  -fno-common -DPIC -o .libs/ktuple_pair.o
clang: warning: argument unused during compilation: '-fopenmp'
ktuple_pair.c:41:10: fatal error: 'omp.h' file not found
#include <omp.h>
          ^
1 error generated.

And omp.h does exist for him:
$ ls -l /sw/lib/gcc4.8/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2/include/omp.h
-rw-r--r--  1 root  admin  3620 Oct 28 11:41 
/sw/lib/gcc4.8/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2/include/omp.h

Debian has seen this failure in their clang build farm, which makes 
sense since clang can't do OpenMPI yet.

<http://clang.debian.net/logs/2013-07-14/clustalo_1.2.0-1_unstable_clang.log>

It seems that mpicc on 10.9 is using clang as the compiler (openmpi-10.9 
sets CC and CXX to clang/clang++) and not gcc-fsf-4.8.  Is this usage 
correct?  And is this the cause of the clustalo build failure?

Thanks for your help,

Hanspeter

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to