|
[Sponsors] |
[OpenFOAM.org] openfoam debug error --Warn: WM_COMPILER_TYPE='Debug' is unsupported |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 30, 2018, 02:19 |
openfoam debug error --Warn: WM_COMPILER_TYPE='Debug' is unsupported
|
#1 |
Member
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8 |
Hi, I would like to install the debug version of OF. I tried using OF5 and OF-dev, but both were failed. I followed the steps as in the post OpenFOAM Screencast - How to program with OpenFOAM
I add following line to my system bash.bashrc alias ofdebug='source /opt/openfoam-dev/etc/bashrc export WM_COMPILE_OPTION=Debug' Before compilation, i ran ofdebug to set the environment to the debug version, the error came out: Warn: WM_COMPILER_TYPE='Debug' is unsupported treating as 'system' instead Do I need to add some steps in between? I hope I can get some suggestions to solve this Your help will be greatly appreciated. Thanks for your time |
|
May 31, 2018, 08:33 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: You need to remove the "export" word from the alias command, namely change this:
Code:
alias ofdebug='source /opt/openfoam-dev/etc/bashrc export WM_COMPILE_OPTION=Debug' Code:
alias ofdebug='source /opt/openfoam-dev/etc/bashrc WM_COMPILE_OPTION=Debug' For more details about shell environment, variables, aliases and activating OpenFOAM's environment, read this page: https://openfoamwiki.net/index.php/I...with_the_Shell
__________________
|
|
May 31, 2018, 09:56 |
|
#3 | |
Member
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8 |
Quote:
Btw, do the debug version of OF has to be installed separately with the working OF? If I combine both Opt and Debug mode in 1 OF and switch to Debug mode by using alias method (add the line "WM_COMPILER_OPTION = Debug" after source OF), the OFdebug has to be recompiled everytime i change the environment by using alias method, is it so? I will be grateful if can get some advice on this. Have a nice day. Thanks |
||
May 31, 2018, 15:59 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: I guess that either you didn't read the wiki page or did understand what was written there...
The idea is that once the Debug build is built, you will have 2 builds available for the same exact OpenFOAM versions, at least while the source code you have isn't changed or updated (i.e. the same folder "/opt/openfoam-dev" is used for both builds). Having 1 or 2 aliases for each mode (Debug and Opt) allows you to switch between the two or to have each build on separate terminal tabs/windows. |
|
May 31, 2018, 21:07 |
|
#5 | |
Member
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8 |
Quote:
|
||
May 31, 2018, 23:49 |
|
#7 | |
Member
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8 |
Quote:
Code:
ang@jingke-PowerEdge-R710:/opt/openfoam-dev$ ./Allwmake Allwmake /opt/openfoam-dev make: Nothing to be done for 'all'. Allwmake: no ThirdParty directory found - skipping Allwmake src no git description found Allwmake src/Pstream wmake dummy mkdir: cannot create directory ‘/opt/openfoam-dev/platforms/linux64GccDPInt32Debug’: Permission denied /bin/sh: 1: cannot create /opt/openfoam-dev/platforms/linux64GccDPInt32Debug/src/Pstream/dummy/options: Directory nonexistent make: *** No rule to make target '/opt/openfoam-dev/platforms/linux64GccDPInt32Debug/src/Pstream/dummy/options'. Stop. /bin/sh: 1: cannot create /opt/openfoam-dev/platforms/linux64GccDPInt32Debug/src/Pstream/dummy/options: Directory nonexistent make: *** No rule to make target '/opt/openfoam-dev/platforms/linux64GccDPInt32Debug/src/Pstream/dummy/options', needed by 'all'. Stop. wmake error: file '/opt/openfoam-dev/platforms/linux64GccDPInt32Debug/src/Pstream/dummy/sourceFiles' could not be created in /opt/openfoam-dev/src/Pstream/dummy Last edited by wyldckat; June 1, 2018 at 14:01. Reason: merged posts a few minutes apart |
||
June 1, 2018, 09:24 |
|
#8 | |
Member
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8 |
Quote:
log_make.txt |
||
June 1, 2018, 16:51 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: I've taken a look just now and it seems that you cannot do a complete build the complete of OpenFOAM from source code, when only using the provided Deb packages for either OpenFOAM 5 or OpenFOAM-dev.
The simplest way to build the Debug option is to follow the instructions on how to compile it from source code:
|
|
June 2, 2018, 02:04 |
|
#10 | |
Member
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8 |
Quote:
http://openfoamwiki.net/index.php/In...OAM-5.x/Ubuntu Should I use the OpenFOAM-dev if I would like to build hybrid mode with both opt and debug mode? Thanks Last edited by jiahui_93; June 2, 2018 at 03:19. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 05:29 |
OpenFOAM 4.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 2 | October 6, 2017 05:40 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 14:24 |
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days | joegi.geo | OpenFOAM Announcements from Other Sources | 0 | October 1, 2016 19:20 |
[OpenFOAM.org] Use OpenFOAM 2.3.0 in debug mode | upuli | OpenFOAM Installation | 0 | June 1, 2016 02:28 |