|
[Sponsors] |
December 13, 2013, 16:12 |
error compiling v 2.2.2 on a Cray system
|
#1 |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 12 |
Can any one suggest what might be the problem? The first sign of trouble is at line 338 of the log file, showing that the scotch library file cannot be found. But compilation before that point appears to be all successful and error-free. I've truncated the second half of the log file in order not to exceed the limit of upload file size.
The hardware is a Cray XC30 and I am using the GNU compiler v 4.8. |
|
December 15, 2013, 13:28 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Greetings macelee,
From what I can figure out, the problem is likely to be related to a problem with the parallel file system being used by the cluster/supercomputer. In other words: the library files are not being picked by the linker for linking to the applications that need those libraries, as if those library file did not exist or simply cannot be found. If you run this command, what do you see? Code:
ls -l /work/u001/u001/lining/openfoam/parallel/OpenFOAM/OpenFOAM-2.2.2/platforms/crayxeGccDPOpt/lib/libOpenFOAM* On the other hand, it could be a problem with permissions, therefore knowing the permissions that the file "libOpenFOAM.so" has got, should help ascertain what's going on. Best regards, Bruno
__________________
|
|
December 20, 2013, 05:49 |
|
#3 |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 12 |
This still puzzles me after a few more days work. When I check the library files such as "libOpenFOAM.so", they are indeed there in the correct directory with the correct permissions.
On the other hand, the first error in the log file suggests something wrong with the scotch library. When I check the directory where the compiled scotch library should be located, Code:
/work/u001/u001/lining/openfoam/parallel/OpenFOAM/ThirdParty-2.2.2/platforms/crayxeGccDPOpt/lib Code:
scotchDecomp.C:132:20: fatal error: scotch.h: No such file or directory #include "scotch.h" ^ compilation terminated. make: *** [Make/crayxeGccDPOpt/scotchDecomp.o] Error 1 |
|
December 25, 2013, 07:51 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Hi macelee,
This is one of those weird issues that without direct access to the machine, it's a bit of a guessing game... although I do like a good guessing game about installing OpenFOAM! So, let's address one detail at a time:
Bruno
__________________
|
|
January 8, 2014, 08:31 |
|
#5 |
New Member
Join Date: Nov 2013
Posts: 13
Rep Power: 12 |
Hi Bruno,
Thanks for your very detailed explanation and sorry for the long delay! I followed your advise to first try to build some applications and libraries on my hardware in order to learn the correct options. I then managed to build the 'scotch' library outside OpenFOAM. I used the 'Makefile.inc' file as supplied in the OpenFOAM ThirdParty download package and did not have to change anything. Now I can see a way to move forward. Is that possible to use this external scotch installation to build OpenFOAM? If that is not possible, I will try to 'make install' scotch into the required location (ThirdParty-2.2.x/platforms/...) before invoking OpenFOAM's Allwmake script. But I guess there might be an easier way. Thanks again for your help. macelee |
|
January 10, 2014, 15:06 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Hi macelee,
If you look at the file "etc/config/scotch.sh" - online link: https://github.com/OpenFOAM/OpenFOAM...nfig/scotch.sh - you'll see that it can be configured to point to your installation of the Scotch toolbox. To get a sense of where it's currently pointing to, run: Code:
echo $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$SCOTCH_VERSION Best regards, Bruno
__________________
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
Need ideas-fuel discharge system | Jan | FLUENT | 1 | October 11, 2006 00:05 |
Need ideas-fuel discharge system | Jan | CFX | 1 | October 9, 2006 09:16 |
Need ideas-fuel delivery system | Jan | Fidelity CFD | 0 | October 9, 2006 05:30 |
Need ideas-fuel discharge system | Jan | Main CFD Forum | 0 | October 9, 2006 05:27 |