CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   - needed for DPOpt (

flowris April 11, 2012 11:20 needed for DPOpt

I am followig the Chalmers method for installing OF2.0.x ( When I come to the compilation command

./Allwmake 2>&1 | tee log_Allwmake_0
I get the following error

ake[1]: Entering directory `/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/applications/utilities/parallelProcessing'
make[2]: Entering directory `/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/applications/utilities/parallelProcessing/decomposePar'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/src/parallel/decompose/decompositionMethods/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/src/finiteVolume/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/src/lagrangian/basic/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/src/meshTools/lnInclude -IlnInclude -I. -I/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude -I/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/decomposePar.o Make/linux64GccDPOpt/domainDecomposition.o Make/linux64GccDPOpt/domainDecompositionMesh.o Make/linux64GccDPOpt/domainDecompositionDistribute.o Make/linux64GccDPOpt/dimFieldDecomposer.o Make/linux64GccDPOpt/fvFieldDecomposer.o Make/linux64GccDPOpt/pointFieldDecomposer.o Make/linux64GccDPOpt/lagrangianFieldDecomposer.o -L/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib \
        -lfiniteVolume -lgenericPatchFields -ldecompositionMethods -L/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/dummy -lmetisDecomp -lscotchDecomp -llagrangian -lmeshTools -lOpenFOAM -ldl  -lm -o /home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/bin/decomposePar
/usr/bin/ld: warning:, needed by /home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning:, needed by /home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/, not found (try using -rpath or -rpath-link)
/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/ undefined reference to `SCOTCH_stratExit'
/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/ undefined reference to `SCOTCH_graphCheck'
/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/ undefined reference to `SCOTCH_archCmpltw'
/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/ undefined reference to `SCOTCH_stratInit'
/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/ undefined reference to `SCOTCH_graphBuild'
/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/ undefined reference to `SCOTCH_archInit'
/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/ undefined reference to `SCOTCH_stratGraphMap'
/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/ undefined reference to `SCOTCH_graphExit'
/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/ undefined reference to `SCOTCH_graphMap'
/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/ undefined reference to `SCOTCH_archExit'
/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/ undefined reference to `SCOTCH_archCmplt'
/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/ undefined reference to `SCOTCH_graphInit'
collect2: ld returned 1 exit status
make[2]: *** [/home/jmatthei/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/bin/decomposePar] Error 1

In the directory /home/jmatthei/OpenFOAM/ThirdParty-2.0.x/platforms/linux64Gcc, I do have the folder scotch_5.1.11, but this folder is not in /home/jmatthei/OpenFOAM/ThirdParty-2.0.x/platforms/linux64GccDPOpt/
Would that be the problem and how do I solve it?

wyldckat April 11, 2012 16:30

Greetings flowris,

Insufficient information... please run:

tar -czf log.tar.gz log_Allwmake_0
And attach "log.tar.gz" to your next post.

I ask this because apparently Scotch didn't build. The weird thing is why on earth is it asking for libscotch-5.1 and not plain and simple libscotch?

WAaaait, scratch that above. Those instructions are ooooooutdated as hell. Get the more recent ThirdParty package:
There was a dumb bug in the 2.0.0 3rdP package.

Best regards,

flowris April 13, 2012 02:51

Dear Bruno,

I downloaded the newer ThirdParty and compiled everything successfully. Thanks a lot!

flowris April 13, 2012 04:24

1 Attachment(s)
Dear Bruno (and others),

I am now also trying 1.6-ext, and following your short tutorial ( While compiling the ThirdParty, I got an error in Stage 3 at 49%:


../../../../bin/ undefined reference to `glReadBuffer'
../../../../bin/ undefined reference to `glTexCoord1iv'
collect2: ld returned 1 exit status
make[2]: *** [bin/GenericFilteringCxxTests] Error 1
make[1]: *** [VTK/GenericFiltering/Testing/Cxx/CMakeFiles/GenericFilteringCxxTests.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 49%] Building CXX object VTK/Parallel/CMakeFiles/vtkParallel.dir/vtkPImageWriter.cxx.o
[ 49%] Building CXX object VTK/Parallel/CMakeFiles/vtkParallel.dir/vtkPipelineSize.cxx.o
[ 49%] Building CXX object VTK/Parallel/CMakeFiles/vtkParallel.dir/vtkSynchronizedRenderers.cxx.o
[ 49%] Building CXX object VTK/Parallel/CMakeFiles/vtkParallel.dir/vtkSynchronizedRenderWindows.cxx.o
[ 49%] Building CXX object VTK/Parallel/CMakeFiles/vtkParallel.dir/vtkTreeCompositer.cxx.o
[ 49%] Building CXX object VTK/Parallel/CMakeFiles/vtkParallel.dir/vtkExodusIIWriter.cxx.o
[ 49%] Building CXX object VTK/Parallel/CMakeFiles/vtkParallel.dir/vtkCompositeZPassShader_fs.cxx.o
[ 49%] Building CXX object VTK/Parallel/CMakeFiles/vtkParallel.dir/vtkParallelInstantiator.cxx.o
Linking CXX shared library ../../bin/
[ 49%] Built target vtkParallel
make: *** [all] Error 2
error: Bad exit status from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.gPd7Hl (%build)

RPM build errors:
    Bad exit status from /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/tmp/rpm-tmp.gPd7Hl (%build)
Installing package: ParaView-3.10.1
  Uninstalling ParaView-3.10.1 using RPM: ParaView-3.10.1-linux64GccDPOpt.x86_64
  Installing ParaView-3.10.1 using RPM file: /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.10.1-linux64GccDPOpt.x86_64.rpm
error: open of /home/jmatthei/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.10.1-linux64GccDPOpt.x86_64.rpm failed: No such file or directory
Done installing package

Done ThirdParty AllMake: Stage4

Done ThirdParty Allwmake

This one goes beyond my skills. The complete log file is attached. Any tips?

wyldckat April 13, 2012 16:34

Hi flowris,

Make sure to install the packages mentioned in the section "System Requirements":

Best regards,

flowris May 2, 2012 07:49

1 Attachment(s)
Thanks Bruno,

I have all of these packages installed, I updated them and still the same error occurs. However, I am able to compile the main OpenFOAM-1.6-ext folder (running Allwmake).

Attached is the log file for the compilation of the ThirdParty direction. Any tips are still appreciated, because not all functionalities will work for me.

wyldckat May 2, 2012 16:46

Hi flowris,

Since it's 1.6-ext, I don't know. All I know is that there is a more lengthy explanation about installing 1.6-ext here:

The other possibility is to report this on Extend's bug tracker:

There is also another possibility, partially described here:

Originally Posted by wyldckat (Post 358657)
Maybe it's best to do it the other way around: disable the ParaView version you are trying to build and then use the old one instead.

By the looks of it, it seems that you can do this:
  1. Start a new terminal.
  2. Do not run startOF16ext that was assigned to the deb version you had.
  3. When building the new version of 1.6-ext, run it like this:

    export PARAVIEW_SYSTEM=1

    This way it will skip the step for building ParaView.
When the new version is properly built... well, for now, the easiest thing to do would be to have two terminals:
  1. One where you have working the new 1.6-ext, perhaps in Debug mode already.
  2. Another where you have the old deb version of 1.6-ext, from which you can run ParaView.

The idea is that the other ParaView is the one from the the deb packages provided here:

edit: You can also try the answer I gave here:

Best regards,

All times are GMT -4. The time now is 15:38.