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-2.2.x failed to compile on OpenSUSE 12.3 (https://www.cfd-online.com/Forums/openfoam-installation/114988-openfoam-2-2-x-failed-compile-opensuse-12-3-a.html)

phsieh2005 March 21, 2013 04:49

OpenFOAM-2.2.x failed to compile on OpenSUSE 12.3
 
Dear OpenFOAMers,

I am wondering if anyone has compiled OpenFOAM-2.2.x successfully on OpenSUSE 12.3 64 bit?

I got the following errors. It will be appreciated if someone can shed some light on this.

Thanks!

Pei-Ying
--------------------------------

make[1]: Leaving directory `/home/phsieh/OpenFOAM/ThirdParty-2.2.x/scotch_6.0.0/src/check'
rm -f ../bin/* ../include/* ../lib/*
========================================
Build Tecio
optional component was not found

========================================
Done ThirdParty Allwmake
========================================

+ wmakePrintBuild -check
same version as previous build
+ wmakeLnInclude OpenFOAM
wmakeLnInclude: linking include files to OpenFOAM/lnInclude
+ wmakeLnInclude OSspecific/POSIX
wmakeLnInclude: linking include files to OSspecific/POSIX/lnInclude
+ Pstream/Allwmake
+ wmake libso dummy
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file UPstream.C
Making dependency list for source file UIPread.C
Making dependency list for source file UOPwrite.C
SOURCE=UPstream.C ; wmakeScheduler g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IlnInclude -I. -I/home/phsieh/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude -I/home/phsieh/OpenFOAM/OpenFOAM-2.2.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/UPstream.o
SOURCE=UIPread.C ; wmakeScheduler g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IlnInclude -I. -I/home/phsieh/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude -I/home/phsieh/OpenFOAM/OpenFOAM-2.2.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/UIPread.o
SOURCE=UOPwrite.C ; wmakeScheduler g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -IlnInclude -I. -I/home/phsieh/OpenFOAM/OpenFOAM-2.2.x/src/OpenFOAM/lnInclude -I/home/phsieh/OpenFOAM/OpenFOAM-2.2.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/UOPwrite.o
ssh: connect to host jali port 22: No route to host
make: *** [Make/linux64Gcc46DPOpt/UIPread.o] Error 255
make: *** Waiting for unfinished jobs....
^C
----------------------------

wyldckat March 24, 2013 13:57

Greetings Pei-Ying,

The only error I can see is:
Quote:

ssh: connect to host jali port 22: No route to host
which is a very strange error... it looks like you had something running in the background using &, such as:
Code:

ssh jali &
which was probably launched before Allwmake.

As for:
Quote:

Build Tecio
optional component was not found
That's normal and not an error :).

Best regards,
Bruno

phsieh2005 March 24, 2013 15:32

Hi, Bruno,

Thanks for the reply! You have been very kind to offer help, as always.

I have been fooling around the ssh stuffs in opensuse 12.3, but, no luck.

Both openFoam-2.1.x and 2.2.x compiled successfully on opensuse 12.2. But, both failed on opensuse 12.3 with the same issue. There is something different between opensuse 12.2 and 12.3.

Pei-Ying

wyldckat March 25, 2013 16:08

Hi Pei-Ying,

I think I now understand what's going on! You're using "wmakeScheduler"!
I suggest that instead of using something like this:
Code:

export WM_SCHEDULER=wmakeScheduler
export WM_HOSTS="aaa:1 bbb:4"
export WM_NCOMPPROCS=$($WM_SCHEDULER -count)
export WM_COLOURS="black blue green cyan red magenta yellow"

You use only this:
Code:

export WM_NCOMPPROCS=4
This way you specify that you only want to use a single machine for compiling, but with 4 parallel processes!
______

In the mean time, try to diagnose if ssh works locally:
Code:

ssh localhost
And to the target machine, first check if it can be found:
Code:

ping jali
Additionally, I think that for using wmakeScheduler, you'll need to configure your ssh keys for being able to use a key based (and without password) connection to the trusted machines: https://help.ubuntu.com/community/SSH/OpenSSH/Keys

Best regards,
Bruno

phsieh2005 March 25, 2013 18:18

Thanks a lot Bruno!

You are an angel. You were correct. WM_SCHEDULER is the cause of the issue.

Pei-Ying


All times are GMT -4. The time now is 11:07.