CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] problem in v1706 (https://www.cfd-online.com/Forums/openfoam-installation/190313-problem-v1706.html)

teofil July 10, 2017 10:45

problem in v1706
 
I foud touble in openFOAM compilation 1706 about lscotchDecomp. The error is:

/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lscotchDecomp
collect2: error: ld returned 1 exit status
make[2]: *** [/opt/OpenFOAM/OpenFOAM-v1706/platforms/linux64GccDPInt32Opt/bin/foamList] Error 1
make[2]: Leaving directory `/opt/OpenFOAM/OpenFOAM-v1706/applications/utilities/miscellaneous/foamList'
make[1]: *** [foamList] Error 2
make[1]: Leaving directory `/opt/OpenFOAM/OpenFOAM-v1706/applications/utilities/miscellaneous'
make: *** [miscellaneous] Error 2

anyone have some suggestion?
My gcc version is 4.8.1. Is it good or I must upgade it?
My Linux distro is suse.

Many thanks, Alex

wyldckat July 10, 2017 17:37

Greetings teofil,

GCC 4.8.1 should work without problems.

A few questions:
  1. Which installation instructions are you following?
  2. Do you know which Scotch version you are using in this installation?
    • Namely if it's the one provided with OpenFOAM v1706 or the one in your SUSE installation?
  3. If you can tell us, which specific SUSE version do you have installed?
Best regards,
Bruno

olesen July 11, 2017 05:05

Assuming you are using the OpenFOAM ThirdParty packs, the next thing to check is your mpi. If this is not being found, the ptscotch and other bits may not be built correctly.

By default OpenFOAM uses a system OpenMPI. Even if you have it installed (eg, via rpm or zypper) on OpenSuSE you may still need to use "mpi-selector" to activate it. Once it is activated, you'll generally need a new shell to have it take effect.

Let us know what how you manage. BTW: I use OpenSuSE Leap 42.2 with system openmpi. The only issue that I experience is that the library appears to have been compiled with IB support, so I get some warnings about them not being available.

/mark

teofil July 11, 2017 05:59

installation data
 
you are right these are important things:

1) I simply sourced .../etc/bashrc and exec ./Allwmake from openFOAM dir
2) scotch version: 6.0.4
3) openSUSE version 13.1

teofil July 11, 2017 06:03

openMPI
 
I have an old version of openMPI. Currently 1.10.2
I will update it to 2.1.1 and I let you know...

teofil July 12, 2017 10:58

I upgradet opnempi to the version 2.1.1

I set via mip-selector and the query said:

droCAE:/opt/OpenFOAM/OpenFOAM-v1706 # mpi-selector --query
default:openmpi-1.7.2
level:user
droCAE:/opt/OpenFOAM/OpenFOAM-v1706 #

but the OF installation still end up with the same error on lscotchDecomp!!!

Need help please...

teofil July 13, 2017 03:42

problem with foamList
 
I removed the:

-lscotchDecomp \

from the options file of the foamList application.

Now the compilation skipped the error but I think I will not have the scotch decomp avaible.

How is possible to told to OF installation where to found che lscotchDecomp?


All times are GMT -4. The time now is 00:47.