CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] OpenFOAM 6 compilation - Pstream target directory missing

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2018, 13:29
Default OpenFOAM 6 compilation - Pstream target directory missing
  #1
Senior Member
 
Artur's Avatar
 
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 20
Artur will become famous soon enough
Hi All,

I've just finished compiling OF6 on our supercomputer and encountered a strange issue: when compiling the Pstream/mpi and parallel/decompose shared objects the compilation script complained that it could not find the build directories for them, namely:

Code:
$WM_PROJECT_DIR/platforms/linux64IccDPInt32OptSYSTEMOPENMPI/src/Pstream/mpi
$WM_PROJECT_DIR/platforms/linux64IccDPInt32OptSYSTEMOPENMPI/src/parallel/decompose/ptscotchDecomp
When I created the directories manually and resumed compilation it completed without any issues and works just fine now that it's done. I had a look through the Allwmake scripts for the two libraries but could not see any obvious issues there. Thought I'd flag it up here in case someone else encounters this problem. If you have any ideas what I could have potentially messed up, I'd be happy to hear those as well.

All the best,

Artur
Artur is offline   Reply With Quote

Old   August 17, 2018, 15:49
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Artur,

I'm a bit late to answer to your question, but I am curious as to what happened.

From what I can figure out, there may have been a breaking point in communication between shells, namely:
  1. The Allwmake scripts use "/bin/sh", which can be anything that was defined by default on your supercomputer, e.g. dash, bash or even maybe csh?
  2. The wmake script uses "/bin/bash", which is possibly not the same as "/bin/sh", hence the miscommunication.
One way to diagnose what happened is to get a complete output of wmake's run when called from either one of those two Allwmake scripts. So if still have a chance to diagnose this, then follow these steps:
  1. Edit the file "OpenFOAM-6/wmake/wmake".
  2. In the very first line, append the option "-x":
    Code:
    #!/bin/bash -x
  3. Save and close the file.
  4. Go to the folder for "Pstream" and rebuild:
    Code:
    cd $FOAM_SRC/Pstream
    ./Allwclean
    ./Allwmake > log.make 2>&1
  5. The log file "log.make" should now contain a full trace of what wmake tried to do.
My best guess is that the variable "WM_OPTIONS" had two identities within wmake:
  • The exported one, has the old value "linux64IccDPInt32Opt".
  • The non-exported one, that was set by Allwmake, has "linux64IccDPInt32OptSYSTEMOPENMPI".
If somehow the "mkdir" command used the old name instead of the new one, that would explain the problem.


Beyond this, if you are no longer able to try and reproduce this issue, please let us know which Linux Distribution and version you are using the supercomputer, because with luck we can reproduce this issue with a virtual machine.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[waves2Foam] waves2Foam on an Ubuntu 18.04 with OpenFOAM 1712 JGadelho OpenFOAM Community Contributions 36 April 27, 2024 17:46
[swak4Foam] swak4Foam in OpenFoam 2.4.0 avigrod OpenFOAM Community Contributions 8 May 30, 2016 14:56
[OpenFOAM.com] Problems with OpenFOAM 1.7.1 on Ubuntu 14.10 (utopic unicorn) alfa_8C OpenFOAM Installation 2 February 3, 2015 04:16
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
Compiling OpenFOAM13 on AMD64 with Redhat Enterprise mbeaudoin OpenFOAM Installation 20 June 17, 2008 07:43


All times are GMT -4. The time now is 01:21.