|
[Sponsors] |
April 8, 2010, 11:51 |
cmake error in PV3FoamReader
|
#1 | ||
New Member
Patrick Begou
Join Date: Mar 2009
Location: Grenoble, France
Posts: 17
Rep Power: 17 |
I'm trying to compile OpenFoam 1.6 on linux openSuse 11.1 x86_64.
I get an error with the cmake command in PV3FoamReader with cmake trying to use a directory which does not exist: Quote:
it is a link to an autofs mount point: Quote:
Any idea ? I'm not familliar with cmake and I do not success in finding where this broken path is built in cmake config files (nothing in CMakeLists.txt in PV3FoamReader) Thanks for your help Patrick |
|||
April 8, 2010, 16:16 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Patrick,
Well that's very odd... did you copy-paste the actual text or did you type it here? Because if cmake actually gave: Quote:
Code:
/HA/sources/pillonm/ Have you check if this folder exists: Code:
$HOME/OpenFOAM/OpenFOAM-1.6/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader Start a new terminal or source again OpenFOAM's bashrc script. Now (as you probably already know) run: Code:
cmake -v NOTE: if by any chance this cmake version won't run, you might need to install in OpenSUSE the package ia32libs for running 32bit executables in a x86_64 system. By the way, did you successfully build Paraview with the current version of cmake that you have installed? Best regards, Bruno
__________________
|
||
April 9, 2010, 11:17 |
|
#3 | |||
New Member
Patrick Begou
Join Date: Mar 2009
Location: Grenoble, France
Posts: 17
Rep Power: 17 |
yes, it's a copy/paste from the screen.
Quote:
Quote:
Quote:
I think it is a cmake bug because: 1) I've downloaded cmake-2.8.1 sources 2) i've run ./bootstrap to build cmake 2.8.1 and it fails with a similar message: CMake Error: Could not find cmake module file:/hasources/pillonm/OpenFOAM/cmake-2.8.1/CMakeFiles/CMakeCCompiler.cmake 3) I've check I can reproduce the probleme with and without loading OpenFoam environment. 4) I'v unpacked cmake-2.8.1 sources on a local partition (not a link to a NFS mount point) and on the same computer the bootstrap command and the build is successfull for cmake. 5) I've tried to compile again PV3FoamReader with this new cmake version and I get the same error than with 2.6-patch 1. I will try to put OpenFOAM sources on a local partition to build the binaries but has all users are on nfs mounted partitions with same configuration and some of them have to compile OpenFOAM.... |
||||
April 9, 2010, 13:11 |
|
#4 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Patrick,
Quote:
Quote:
My guess is that the actual problem isn't in cmake, but it is autofs that is giving a bad address to the files... for some weird reason... OK, first test I would do is running bootstrap directly on the NFS folder mount ( /tmp_mnt/hasources/pillonm/OpenFOAM/cmake-2.8.1 ), thus removing the autofs interpretation layer. If it still crashes, then it should be the NFS layer who's to blame. But if it works, then move on to the next two possibilities:
Best regards, Bruno
__________________
|
|||
April 20, 2010, 05:09 |
|
#5 |
New Member
Patrick Begou
Join Date: Mar 2009
Location: Grenoble, France
Posts: 17
Rep Power: 17 |
I'm back with the solution for this cmake problem !
It is not NFS nor autofs nor link related. The removing of the begining of my path is hardcoded in cmake . In cmake-2.8.1/Source/kwsys/SystemTools.cxx file line 4646. 4645 // Work-around an SGI problem by always adding this mapping: 4646 SystemTools::AddTranslationPath("/tmp_mnt/", "/"); I'm not on SGI but my home directory is nfs automounted on: /tmp_mnt/hasources Lack of chance. And ALL the computers of the team are using this Path to mount the home patition from a HA nfs server Removing this line, cmake works fine. And Allwmake too. |
|
April 20, 2010, 08:11 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hello Patrick,
Wow, then you were right! Indeed a weird bug... and by the look of it, it seems to be an old fix too... an incomplete fix. You should consider posting this bug to the CMake bug report system... I think they use a mailing list for bug reports. I'm glad you managed to solve the problem and thanks for posting the solution!! Best regards, Bruno
__________________
|
|
Tags |
1.6, cmake, openfoam, pv3foamreader |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PV3FoamReader compile error.... | PEM_GUY | OpenFOAM Installation | 6 | April 5, 2010 18:22 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
OpenFOAM-1.6.x PV3FoamReader build failure. | aunola | OpenFOAM Installation | 2 | September 5, 2009 09:22 |
Help PV3FoamReader compile error | zzli | OpenFOAM Bugs | 7 | June 30, 2009 16:57 |
OpenFOAM15 paraFoam bug | koen | OpenFOAM Bugs | 19 | June 30, 2009 11:46 |