CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   NEW failure to compile redistributeMeshPar (https://www.cfd-online.com/Forums/openfoam-bugs/62516-new-failure-compile-redistributemeshpar.html)

pasinari December 27, 2007 12:31

Hi, I experienced a failure
 
Hi,

I experienced a failure in recompiling redistributeMeshPar. I already cheched my ./Allwmake, as suggested in a previous message, but this is not the problem.

Compilation of redistributeMeshPar failed due to an unresolved reference.

The failure occured with the following:
Ubuntu 7.10
OF 1.4.1
HP nw8440
gcc version 4.1.3

~/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/parallelProcessing/redistribute MeshPar$ wmake

g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/asinari/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/parallelProcessin g/decompositionMethods/decompositionMethods/lnInclude -I/home/asinari/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/parallelProcessin g/decompositionMethods/metis-5.0pre2/libmetis/lnInclude -I/home/asinari/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/asinari/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -I/home/asinari/OpenFOAM/OpenFOAM-1.4.1/src/dynamicMesh/lnInclude -IlnInclude -I. -I/home/asinari/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread Make/linuxGccDPOpt/redistributeMeshPar.o -L/home/asinari/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt \
-lfiniteVolume -ldecompositionMethods -lmeshTools -ldynamicMesh -lparMetisDecompositionMethod -lOpenFOAM -ldl -lm -o /home/asinari/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/redistribut eMeshPar
/home/asinari/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libmetis.so: undefined reference to `ComputeFillIn2'
/home/asinari/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt/libparmetis.so: undefined reference to `METIS_mCPartGraphRecursive2'
collect2: ld returned 1 exit status
make: *** [/home/asinari/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/redistribu teMeshPar] Error 1

It seems that the problem is due to `METIS_mCPartGraphRecursive2' in particular.

Thank you in advance,
Pietro

mattijs December 28, 2007 10:03

ParMetis seems to come with it
 
ParMetis seems to come with its own version of the Metis library which overwrites the Metis library from Metis-5.0.

Rebuild the one that comes with the ParMetis. Try something like

cd decompositionMethods/parMetisDecomp
rmoall
./Allwmake

If this doesn't help do the opposite: build the metis-5.0 one last.

pasinari December 31, 2007 04:56

Hi Mattijs, thank you for y
 
Hi Mattijs,

thank you for your suggestions. Actually I fixed the problem. I was trying to use a different version of gcc. Instead I tried again using the version included in the OF 1.4.1 package and in the architecture folder and it worked.

Thank you,
Pietro


All times are GMT -4. The time now is 04:39.