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

extend-3.0 Installation problems

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 5 Post By wyldckat
  • 1 Post By Ola Widlund

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2014, 12:48
Default extend-3.0 Installation problems
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

I have a problem while compilate the new extend-3.0 version.

1. Installation in the default folder is okay (/home/name/foam/...)
2. Installation in my folder /home/name/OpenFOAM/OpenFOAM-extend-3.0 gives problems.

Third-Party is compiling well but after starting compiling the FOAM I have one problem at the beginning.

Code:
gcc -m64  -Wall -O3   -fPIC dirToString.c -o /home/shorty/OpenFOAM/OpenFOAM-extend-3.0/wmake/bin/linux64Gcc46/dirToString
flex wmkdep.l
gcc -m64  -Wall -O3   -fPIC lex.yy.c -o /home/shorty/OpenFOAM/OpenFOAM-extend-3.0/wmake/bin/linux64Gcc46/wmkdep
lex.yy.c:1391:17: warning: 'yyunput' defined but not used [-Wunused-function]
lex.yy.c:1432:16: warning: 'input' defined but not used [-Wunused-function]
+ wmakePrintBuild -check
same version as previous build
+ wmakeLnInclude foam
+ wmakeLnInclude meshTools
+ wmakeLnInclude OSspecific/POSIX
+ Pstream/Allwmake
+ wmake libso dummy
SOURCE=IPread.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40  -IlnInclude -I. -I/home/shorty/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude -I/home/shorty/OpenFOAM/OpenFOAM-extend-3.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/IPread.o
SOURCE=Pstream.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40  -IlnInclude -I. -I/home/shorty/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude -I/home/shorty/OpenFOAM/OpenFOAM-extend-3.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/Pstream.o
SOURCE=OPwrite.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40  -IlnInclude -I. -I/home/shorty/OpenFOAM/OpenFOAM-extend-3.0/src/OpenFOAM/lnInclude -I/home/shorty/OpenFOAM/OpenFOAM-extend-3.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64Gcc46DPOpt/OPwrite.o
OPwrite.C:29:19: fatal error: error.H: No such file or directory
compilation terminated.
Pstream.C:26:21: fatal error: Pstream.H: No such file or direct
It is not possible to find that files for the compiler - but I do not know how.
They are available.

I did exactly the same as in step 1. Only the folder is different. I changed the bashrc file to the correct location.


Any hints are appreciated
Regards
Tobi
Tobi is offline   Reply With Quote

Old   January 12, 2014, 13:31
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Tobi,
Quote:
Originally Posted by Tobi View Post
I did exactly the same as in step 1. Only the folder is different. I changed the bashrc file to the correct location.
What was the exact modification you've made?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 12, 2014, 13:36
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Oh sorry ... my fault.

I changed the bashrc:

Code:
export WM_PROJECT=OpenFOAM
export WM_FORK=extend
export WM_PROJECT_VERSION=3.0
that was all!
Tobi is offline   Reply With Quote

Old   January 12, 2014, 13:44
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Mmm... did you do these steps:
  1. A fresh git clone to the desired path.
  2. Modified the "bashrc" file as mentioned above.
  3. Sourced the "bashrc" file in a clean shell environment (aka: new terminal, without any OpenFOAM version ready to be used).
  4. Ran the build commands (Allwmake and so on).
Or is there any difference from the steps above and what you did?
wyldckat is offline   Reply With Quote

Old   January 12, 2014, 13:46
Default
  #5
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Quote:
Originally Posted by wyldckat View Post
Mmm... did you do these steps:
  1. A fresh git clone to the desired path.
  2. Modified the "bashrc" file as mentioned above.
  3. Sourced the "bashrc" file in a clean shell environment (aka: new terminal, without any OpenFOAM version ready to be used).
  4. Ran the build commands (Allwmake and so on).
Or is there any difference from the steps above and what you did?

I did exactly the steps you said.

  1. New git clone
  2. Modification of the "bashrc" as mentioned above
  3. Opened a new terminal
  4. Build thirdpartys (no error)
  5. Reload the bashrc
  6. Allwmake
Regards

PS: but it is not a very critical problem because I have the extend version working in the original directory!
Tobi is offline   Reply With Quote

Old   January 12, 2014, 15:04
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
OK, pretty simple issue... before running Allwmake, run this command:
Code:
ln -s foam src/OpenFOAM
and problem solved

edit: Nope, that alone did not solve the problem. You'll need to also run this command:
Code:
sed -i -e "s=libfoam=libOpenFOAM=" src/OpenFOAM/Make/files
edit 2: And to hack into the plug-in reader for ParaView 4:
Code:
sed -i -e 's=foam=OpenFOAM=' applications/utilities/postProcessing/graphics/PV4FoamReader/PV4FoamReader/CMakeLists.txt

Last edited by wyldckat; January 12, 2014 at 16:31. Reason: see "edit:" and "edit 2"
wyldckat is offline   Reply With Quote

Old   January 13, 2014, 02:27
Default
  #7
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Bruno thank you very much.

I will check it out today evening

You are the best supporter in that case !

Regards Tobi
Tobi is offline   Reply With Quote

Old   February 19, 2014, 05:06
Default
  #8
New Member
 
Ola Widlund
Join Date: Jun 2011
Location: Sweden
Posts: 13
Rep Power: 15
Ola Widlund is on a distinguished road
Hi Bruno and Tobias,

I had the same issue, and I was glad to find your thread here at the forum.

Has any of you reported this as a bug? Otherwise I can do it in the next few days.

Both names of subdirectories and lib names ought to have fixed names, rather than using the WM_PROJECT variable. The way it is now, the WM_PROJECT variable only has one valid value, "foam", otherwise the installation is broken.

Best regards,

Ola






Quote:
Originally Posted by wyldckat View Post
OK, pretty simple issue... before running Allwmake, run this command:
Code:
ln -s foam src/OpenFOAM
and problem solved

edit: Nope, that alone did not solve the problem. You'll need to also run this command:
Code:
sed -i -e "s=libfoam=libOpenFOAM=" src/OpenFOAM/Make/files
edit 2: And to hack into the plug-in reader for ParaView 4:
Code:
sed -i -e 's=foam=OpenFOAM=' applications/utilities/postProcessing/graphics/PV4FoamReader/PV4FoamReader/CMakeLists.txt
Ola Widlund is offline   Reply With Quote

Old   February 19, 2014, 09:22
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Ola,

Feel free to report the issue you're referring to.

A related bug report was this one: http://sourceforge.net/apps/mantisbt...iew.php?id=195 - but it only refers to linking issues with the plug-in for ParaView.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 20, 2014, 15:26
Default
  #10
New Member
 
Ola Widlund
Join Date: Jun 2011
Location: Sweden
Posts: 13
Rep Power: 15
Ola Widlund is on a distinguished road
Hi again,

I have looked at the code base, and reconsidered... The same issue is present also in the OpenCFD release. Since this is the way it has always been done, there's no point in proposing a change just because I think it should be different...

The fundamental thing is that the WM_PROJECT variable is used in many places to create the path to the src/foam subdirectory (src/OpenFOAM in the OpenCFD release). As a consequence, the WM_PROJECT variable should never be changed in etc/bashrc.

What I wanted, like Tobi, was to have a different name for the installation directory. This is for compatibility with the version selection in our cluster configuration. I can deal with this in other ways, so it's not a big problem.

/Ola



Quote:
Originally Posted by wyldckat View Post
Hi Ola,

Feel free to report the issue you're referring to.

A related bug report was this one: http://sourceforge.net/apps/mantisbt...iew.php?id=195 - but it only refers to linking issues with the plug-in for ParaView.

Best regards,
Bruno
wyldckat likes this.
Ola Widlund 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
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 12:12
OpenFoam 2.0.0 installation Jan_Peters OpenFOAM Installation 86 April 27, 2012 06:32
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
installation problems on upgrade from win 3.26 to mic Siemens 5 June 20, 2007 10:40
Problems on 64bit Installation Dietmar Schmidt Siemens 4 April 18, 2007 07:36


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