Bug 961 - Problem with MPI activation
Problem with MPI activation
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: build system
ns-3-dev
Other Linux
: P5 normal
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-23 06:24 UTC by jframos45
Modified: 2010-07-23 13:23 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jframos45 2010-07-23 06:24:52 UTC
I want enable MPI. It detected correctly mpic++ but it show an error:
    > ./waf distclean
    > ./waf -d debug configure --enable-mpi

......
Checking for program mpic++                     /bin/mpich/bin/mpic++
c++: unrecognized option '-showme:compile'
/usr/lib/crt1.o: In function `_start':
init.c:(.text+0x41): undefined reference to `main'
collect2: ld returned 1 exit status
c++: unrecognized option '-showme:link'
/usr/lib/crt1.o: In function `_start':
init.c:(.text+0x41): undefined reference to `main'
collect2: ld returned 1 exit status
.....

I have been watching the wscript file:

.....
    # for MPI
    conf.find_program('mpic++', var='MPI')
    if Options.options.enable_mpi and conf.env['MPI']:
        p = subprocess.Popen([conf.env['MPI'], '-showme:compile'], stdout=subprocess.PIPE) ////// Problem here, g++ don´t recognized this option
        flags = p.stdout.read().rstrip().split()
        p.wait()
        env.append_value("CXXFLAGS_MPI", flags)

.....

Thanks.
Comment 1 jframos45 2010-07-23 13:23:42 UTC
I had installed MPICH interface for MPI. I have just install OpenMPI and builded without problems. 
The mpic++ of MPICH doesn´t accept "-showme:compile" parameter...