[MacPorts] #28510: valgrind 3.6.1 +mpich2 variant fails

MacPorts noreply at macports.org
Fri Feb 25 16:20:16 PST 2011


#28510: valgrind 3.6.1 +mpich2 variant fails
--------------------------------+-------------------------------------------
 Reporter:  naromero@…          |       Owner:  raimue@…           
     Type:  defect              |      Status:  assigned           
 Priority:  Normal              |   Milestone:                     
Component:  ports               |     Version:  1.9.2              
 Keywords:                      |        Port:  valgrind           
--------------------------------+-------------------------------------------

Comment(by raimue@…):

 Quoting the relevant part from the log:
 {{{
 :info:build Making all in mpi
 :info:build /opt/local/bin/mpicc    -I../include  -g -O -fno-omit-frame-
 pointer -Wall -dynamic -arch x86_64  -MT libmpiwrap_amd64_darwin_so-
 libmpiwrap.o -MD -MP -MF .deps/libmpiwrap_amd64_darwin_so-libmpiwrap.Tpo
 -c -o libmpiwrap_amd64_darwin_so-libmpiwrap.o `test -f 'libmpiwrap.c' ||
 echo './'`libmpiwrap.c
 :info:build cc1: error: unrecognized command line option "-arch"
 :info:build make[2]: *** [libmpiwrap_amd64_darwin_so-libmpiwrap.o] Error 1
 }}}

 Apparently you are using mpich2 with the +gcc45 variant. The compilers in
 the gcc45 port do not support `-arch` flags as these are specific to gcc
 provided by Apple. Indeed, this is a combination I didn't test or even
 thought of.

 As a workaround, the build works if you use the default variant set for
 mpich2. But that means mpicc will use Apple provided compilers (i.e.
 `/usr/bin/gcc`).

 You can remove the +gcc45 variant with the following commands:
 {{{
 sudo port -n upgrade --e mpich2 -gcc45
 sudo port install valgrind +mpich2
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/28510#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list