Opened 13 years ago

Closed 10 years ago

#28510 closed defect (worksforme)

valgrind 3.6.1 +mpich2 variant fails

Reported by: naromero@… Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: valgrind

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The mpich2 variant is failing. I installed as follows

sudo port install valgrind +mpich2

Looks like the construction of the libmpiwrap is failing. See attached log file.

Attachments (1)

main.log (265.1 KB) - added by naromero@… 13 years ago.

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by naromero@…

Attachment: main.log added

comment:1 Changed 13 years ago by naromero@…

Cc: naromero@… added

Cc Me!

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: naromero@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to raimue@…
Port: valgrind added
Summary: valgrind 3.6.1valgrind 3.6.1 +mpich2 variant fails

comment:3 Changed 13 years ago by raimue (Rainer Müller)

Status: newassigned

comment:4 Changed 13 years ago by raimue (Rainer Müller)

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

comment:5 Changed 11 years ago by jmroot (Joshua Root)

Is this still a problem with the current version?

comment:6 Changed 10 years ago by seanfarley (Sean Farley)

Resolution: worksforme
Status: assignedclosed
Note: See TracTickets for help on using tickets.