Specifying MPI folder in make files

I am sure the answer is fairly straightforward, but I have struggled to find the specific method of specifying the location of the MPI executables for parallel compilation.

I am using a virtual Ubuntu 15.04 machine for compilation, with the standard python compilation route. The verbose output is below, but the general issue is I am not sure of the syntax of pointing Python in the right direction.

Thank you in advance for any help

Make file used:

##########################################################################

Makefile.

The present Makefile is a pure configuration file, in which

you can select compilation options. Compilation dependencies

are managed automatically through the Python library SConstruct.

If you don’t have Python, or if compilation doesn’t work for other

reasons, consult the Palabos user’s guide for instructions on manual

compilation.

##########################################################################

USE: multiple arguments are separated by spaces.

For example: projectFiles = file1.cpp file2.cpp

optimFlags = -O -finline-functions

Leading directory of the Palabos source code

palabosRoot = …/…/…

Name of source files in current directory to compile and link with Palabos

projectFiles = damBreak3d.cpp

projectFiles = fallingDroplet.cpp

Set optimization flags on/off

optimize = true

Set debug mode and debug flags on/off

debug = true

Set profiling flags on/off

profile = false

Set MPI-parallel mode on/off (parallelism in cluster-like environment)

MPIparallel = true

Set SMP-parallel mode on/off (shared-memory parallelism)

SMPparallel = true

Decide whether to include calls to the POSIX API. On non-POSIX systems,

including Windows, this flag must be false, unless a POSIX environment is

emulated (such as with Cygwin).

usePOSIX = true

Path to external libraries (other than Palabos)

libraryPaths = “/usr/bin/”

Path to inlude directories (other than Palabos)

includePaths = “/usr/bin/”

Dynamic and static libraries (other than Palabos)

libraries = “/usr/bin/”

Compiler to use without MPI parallelism

serialCXX = g++

Compiler to use with MPI parallelism

parallelCXX = mpiexec

General compiler flags (e.g. -Wall to turn on all warnings on g++)

compileFlags = -Wall -Wnon-virtual-dtor

General linker flags (don’t put library includes into this flag)

linkFlags =

Compiler flags to use when optimization mode is on

optimFlags = -O

Compiler flags to use when debug mode is on

debugFlags = -g

Compiler flags to use when profile mode is on

profileFlags = -pg

##########################################################################

All code below this line is just about forwarding the options

to SConstruct. It is recommended not to modify anything there.

##########################################################################

SCons = $(palabosRoot)/scons/scons.py -j 6 -f $(palabosRoot)/SConstruct

SConsArgs = palabosRoot=$(palabosRoot)
projectFiles="$(projectFiles)"
optimize=$(optimize)
debug=$(debug)
profile=$(profile)
MPIparallel=$(MPIparallel)
SMPparallel=$(SMPparallel)
usePOSIX=$(usePOSIX)
serialCXX=$(serialCXX)
parallelCXX=$(parallelCXX)
compileFlags="$(compileFlags)"
linkFlags="$(linkFlags)"
optimFlags="$(optimFlags)"
debugFlags="$(debugFlags)"
profileFlags="$(profileFlags)"
libraryPaths="$(libraryPaths)"
includePaths="$(includePaths)"
libraries="$(libraries)"

compile:
python $(SCons) $(SConsArgs)

clean:
python $(SCons) -c $(SConsArgs)
/bin/rm -vf find $(palabosRoot) -name '*~'

Command line errors:

nicholas@nicholas-VirtualBox:~/Documents/Palabos/palabos-v1.5r1/examples/showCases/vofMultiPhase$ make
python …/…/…/scons/scons.py -j 6 -f …/…/…/SConstruct palabosRoot=…/…/… projectFiles=“fallingDroplet.cpp” optimize=true debug=true profile=false MPIparallel=true SMPparallel=true usePOSIX=true serialCXX=g++ parallelCXX=mpicxx compileFlags="-Wall -Wnon-virtual-dtor" linkFlags="" optimFlags="-O" debugFlags="-g" profileFlags="-pg" libraryPaths="" includePaths="" libraries=""
scons: Reading SConscript files …
scons: done reading SConscript files.
scons: Building targets …
mpicxx -o fallingDroplet.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries fallingDroplet.cpp
sh: 1: mpicxx: not found
mpicxx -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.cpp
sh: 1: mpicxx: not found
mpicxx -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.cpp
sh: 1: mpicxx: not found
mpicxx -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.cpp
sh: 1: mpicxx: not found
mpicxx -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.cpp
sh: 1: mpicxx: not found
mpicxx -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -

sh: 1: mpicxx: not found
mpicxx -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/home/nicholas/Documents/oPENmpi /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.cpp
sh: 1: mpicxx: not found
mpicxx -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/home/nicholas/Documents/oPENmpi /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.cpp
sh: 1: mpicxx: not found
mpicxx -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/home/nicholas/Documents/oPENmpi /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.cpp
sh: 1: mpicxx: not found
mpicxx -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/home/nicholas/Documents/oPENmpi /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.cpp
scons: *** [damBreak3d.o] Error 127
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.o] Error 127
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.o] Error 127
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.o] Error 127
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.o] Error 127
sh: 1: mpicxx: not found
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.o] Error 127
scons: building terminated because of errors.
Makefile:88: recipe for target ‘compile’ failed
make: *** [compile] Error 2
nicholas@nicholas-VirtualBox:~/Documents/Palabos/palabos-v1.5r1/examples/showCases/vofMultiPhase$ make
python …/…/…/scons/scons.py -j 6 -f …/…/…/SConstruct palabosRoot=…/…/… projectFiles=“damBreak3d.cpp” optimize=true debug=true profile=false MPIparallel=true SMPparallel=true usePOSIX=true serialCXX=g++ parallelCXX=mpicxx compileFlags="-Wall -Wnon-virtual-dtor" linkFlags="" optimFlags="-O" debugFlags="-g" profileFlags="-pg" libraryPaths="/home/nicholas/Documents/oPENmpi/openmpi-1.8.5" includePaths="/home/nicholas/Documents/oPENmpi/openmpi-1.8.5" libraries="//home/nicholas/Documents/oPENmpi/openmpi-1.8.5"
scons: Reading SConscript files …
scons: done reading SConscript files.
scons: Building targets …
mpicxx -o damBreak3d.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/home/nicholas/Documents/oPENmpi/openmpi-1.8.5 damBreak3d.cpp
sh: 1: mpicxx: not found
mpicxx -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/home/nicholas/Documents/oPENmpi/openmpi-1.8.5 /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.cpp
sh: 1: mpicxx: not found
mpicxx -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/home/nicholas/Documents/oPENmpi/openmpi-1.8.5 /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.cpp
sh: 1: mpicxx: not found
mpicxx -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/home/nicholas/Documents/oPENmpi/openmpi-1.8.5 /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.cpp
sh: 1: mpicxx: not found
mpicxx -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/home/nicholas/Documents/oPENmpi/openmpi-1.8.5 /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.cpp
sh: 1: mpicxx: not found
mpicxx -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/home/nicholas/Documents/oPENmpi/openmpi-1.8.5 /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.cpp
scons: *** [damBreak3d.o] Error 127
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.o] Error 127
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.o] Error 127
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.o] Error 127
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.o] Error 127
sh: 1: mpicxx: not found
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.o] Error 127
scons: building terminated because of errors.
Makefile:88: recipe for target ‘compile’ failed
make: *** [compile] Error 2
nicholas@nicholas-VirtualBox:~/Documents/Palabos/palabos-v1.5r1/examples/showCases/vofMultiPhase$ make
python …/…/…/scons/scons.py -j 6 -f …/…/…/SConstruct palabosRoot=…/…/… projectFiles=“damBreak3d.cpp” optimize=true debug=true profile=false MPIparallel=true SMPparallel=true usePOSIX=true serialCXX=g++ parallelCXX=mpiexec compileFlags="-Wall -Wnon-virtual-dtor" linkFlags="" optimFlags="-O" debugFlags="-g" profileFlags="-pg" libraryPaths="/etc/alternatives/mpiexec" includePaths="/etc/alternatives/mpiexec" libraries="/etc/alternatives/mpiexec"
scons: Reading SConscript files …
scons: done reading SConscript files.
scons: Building targets …
scons: *** [damBreak3d] TypeError File /etc/alternatives/mpiexec found where directory expected.' trying to evaluate${_concat(LIBDIRPREFIX, LIBPATH, LIBDIRSUFFIX, env, RDirs, TARGET, SOURCE)}’
scons: building terminated because of errors.
Makefile:88: recipe for target ‘compile’ failed
make: *** [compile] Error 2
nicholas@nicholas-VirtualBox:~/Documents/Palabos/palabos-v1.5r1/examples/showCases/vofMultiPhase$ clc
No command ‘clc’ found, but there are 21 similar ones
clc: command not found
nicholas@nicholas-VirtualBox:~/Documents/Palabos/palabos-v1.5r1/examples/showCases/vofMultiPhase$ clear
[3;J
nicholas@nicholas-VirtualBox:~/Documents/Palabos/palabos-v1.5r1/examples/showCases/vofMultiPhase$ make
python …/…/…/scons/scons.py -j 6 -f …/…/…/SConstruct palabosRoot=…/…/… projectFiles=“damBreak3d.cpp” optimize=true debug=true profile=false MPIparallel=true SMPparallel=true usePOSIX=true serialCXX=g++ parallelCXX=mpiexec compileFlags="-Wall -Wnon-virtual-dtor" linkFlags="" optimFlags="-O" debugFlags="-g" profileFlags="-pg" libraryPaths="/etc/alternatives/mpiexec" includePaths="/etc/alternatives/mpiexec" libraries="/etc/alternatives/mpiexec"
scons: Reading SConscript files …
scons: done reading SConscript files.
scons: Building targets …
scons: *** [damBreak3d] TypeError File /etc/alternatives/mpiexec found where directory expected.' trying to evaluate${_concat(LIBDIRPREFIX, LIBPATH, LIBDIRSUFFIX, env, RDirs, TARGET, SOURCE)}’
scons: building terminated because of errors.
Makefile:88: recipe for target ‘compile’ failed
make: *** [compile] Error 2
nicholas@nicholas-VirtualBox:~/Documents/Palabos/palabos-v1.5r1/examples/showCases/vofMultiPhase$ clear
[3;J

nicholas@nicholas-VirtualBox:~/Documents/Palabos/palabos-v1.5r1/examples/showCases/vofMultiPhase$ make
python …/…/…/scons/scons.py -j 6 -f …/…/…/SConstruct palabosRoot=…/…/… projectFiles=“damBreak3d.cpp” optimize=true debug=true profile=false MPIparallel=true SMPparallel=true usePOSIX=true serialCXX=g++ parallelCXX=mpiexec compileFlags="-Wall -Wnon-virtual-dtor" linkFlags="" optimFlags="-O" debugFlags="-g" profileFlags="-pg" libraryPaths="/etc/alternatives/" includePaths="/etc/alternatives/" libraries="/etc/alternatives/"
scons: Reading SConscript files …
scons: done reading SConscript files.
scons: Building targets …
mpiexec -o damBreak3d.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/etc/alternatives damBreak3d.cpp
mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/etc/alternatives /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.cpp
mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/etc/alternatives /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.cpp
mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/etc/alternatives /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.cpp
mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/etc/alternatives /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.cpp
mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/etc/alternatives /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.cpp

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.o] Error 133

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.o] Error 133

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.o] Error 133

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.


mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

scons: *** [damBreak3d.o] Error 133
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.o] Error 133

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.o] Error 133
scons: building terminated because of errors.
Makefile:88: recipe for target ‘compile’ failed
make: *** [compile] Error 2
nicholas@nicholas-VirtualBox:~/Documents/Palabos/palabos-v1.5r1/examples/showCases/vofMultiPhase$ clear
[3;J
nicholas@nicholas-VirtualBox:~/Documents/Palabos/palabos-v1.5r1/examples/showCases/vofMultiPhase$ make
python …/…/…/scons/scons.py -j 6 -f …/…/…/SConstruct palabosRoot=…/…/… projectFiles=“damBreak3d.cpp” optimize=true debug=true profile=false MPIparallel=true SMPparallel=true usePOSIX=true serialCXX=g++ parallelCXX=mpiexec compileFlags="-Wall -Wnon-virtual-dtor" linkFlags="" optimFlags="-O" debugFlags="-g" profileFlags="-pg" libraryPaths="/usr/bin/" includePaths="/usr/bin/" libraries="/usr/bin/"
scons: Reading SConscript files …
scons: done reading SConscript files.
scons: Building targets …
mpiexec -o damBreak3d.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/usr/bin damBreak3d.cpp

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/usr/bin /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.cpp
mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/usr/bin /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.cpp

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/usr/bin /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.cpp

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/usr/bin /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.cpp
mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/usr/bin /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.cpp
scons: *** [damBreak3d.o] Error 133
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.o] Error 133
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.o] Error 133

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.o] Error 133

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.o] Error 133

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.o] Error 133
scons: building terminated because of errors.
Makefile:88: recipe for target ‘compile’ failed
make: *** [compile] Error 2
nicholas@nicholas-VirtualBox:~/Documents/Palabos/palabos-v1.5r1/examples/showCases/vofMultiPhase$ clear
[3;J
nicholas@nicholas-VirtualBox:~/Documents/Palabos/palabos-v1.5r1/examples/showCases/vofMultiPhase$ make
python …/…/…/scons/scons.py -j 6 -f …/…/…/SConstruct palabosRoot=…/…/… projectFiles=“damBreak3d.cpp” optimize=true debug=true profile=false MPIparallel=true SMPparallel=true usePOSIX=true serialCXX=g++ parallelCXX=mpiexec compileFlags="-Wall -Wnon-virtual-dtor" linkFlags="" optimFlags="-O" debugFlags="-g" profileFlags="-pg" libraryPaths=""/usr/bin/"" includePaths=""/usr/bin/"" libraries=""/usr/bin/""
scons: Reading SConscript files …
scons: done reading SConscript files.
scons: Building targets …
mpiexec -o damBreak3d.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/usr/bin damBreak3d.cpp

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/usr/bin /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.cpp
mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/usr/bin /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.cpp

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/usr/bin /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.cpp

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/usr/bin /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.cpp

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

mpiexec -o /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.o -c -Wall -Wnon-virtual-dtor -O -g -DPLB_DEBUG -DPLB_MPI_PARALLEL -DPLB_SMP_PARALLEL -DPLB_USE_POSIX -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/src -I/home/nicholas/Documents/Palabos/palabos-v1.5r1/externalLibraries -I/usr/bin /home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.cpp
scons: *** [damBreak3d.o] Error 133
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/utilIO_2D.o] Error 133
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/multiBlockReader2D.o] Error 133
scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_2D.o] Error 133

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/serializerIO_3D.o] Error 133

mpiexec was unable to launch the specified application as it could not find an executable:

Executable: -o
Node: nicholas-VirtualBox

while attempting to start process rank 0.

scons: *** [/home/nicholas/Documents/Palabos/palabos-v1.5r1/src/io/parallelIO.o] Error 133
scons: building terminated because of errors.
Makefile:88: recipe for target ‘compile’ failed
make: *** [compile] Error 2
nicholas@nicholas-VirtualBox:~/Documents/Palabos/palabos-v1.5r1/examples/showCases/vofMultiPhase$

Hello,

I would suggest that you leave the Makefile as it is in the Palabos distribution without changing anything. You need to install MPI in your Ubuntu virtual machine:

sudo apt-get install mpi-default-bin
sudo apt-get install mpi-default-dev

Then you try make again.

Cheers,
d

Thank you very much, despite installing OpenMPI packages through the package manager, your suggestion has sorted all the problems. Now I just either have to organise my work computer into dual booting, or I need to cross compile for Windows.

Cheers

P.S. I thought I had posted this in the Palabos>General forum but that doesn’t seem to be the case. Any admins are free to move this if required.