Problems about installing OpenFoam-1.6
During the installation, when I try to compile the hoard in the ThirdParty-1.6, I meet an error like:
lnInclude/spinlock.h:253:2: error: #error "No spin lock implementation is available for this platform." I am using ia64 GNU/Linux platform and the GCC 4.3.3. This error will influence the following recompiling of OpenFoam-1.6, but now I have no idea about it. Any suggestion is appreciated. Best regards, Chiven |
Anyone knows the means of the following commands in ThirdParty-1.6/Allwmake?
set -x # export WM settings in a form that GNU configure recognizes [ -n "$WM_CC" ] && export CC="$WM_CC" [ -n "$WM_CXX" ] && export CXX="$WM_CXX" [ -n "$WM_CFLAGS" ] && export CFLAGS="$WM_CFLAGS" [ -n "$WM_CXXFLAGS" ] && export CXXFLAGS="$WM_CXXFLAGS" [ -n "$WM_LDFLAGS" ] && export LDFLAGS="$WM_LDFLAGS" In my platform, WM_CC, WM_CXX, WM_CFLAGS, WM_CXXFLAGS, WM_LDFLAGS are undefined variables. And when I try to run ./Allwmake, the terminal prompts "set: Variable name must begin with a letter.". Thanks in advance. Best regards, Chiven |
Done. The installation is finished.
|
still open questions?
Hi chiven,
It would be nice if you share your error solutions with the community! How did you solve the spinlock problem? Regards Jens |
Hi Jens,
He had to source ~/OpenFOAM/OpenFOAM-1.6.x/etc/cshrc or bashrc for the variables to be set. That fixes it. Hrv |
Hi Hrv,
my problem is little more complicated! I try to compile OF-1.5-dev (because of missing ggi in OF-1.6.x ?) in ia64 with intelcompiler 10.1. So I changed all my settings in etc/bashrc etc/settings.sh But with the compilation of the hoard library I run into some problems lnInclude/spinlock.h(140): warning #858: type qualifier on return type is meaningless inline static volatile unsigned long MyInterlockedExchange (unsigned long *,unsigned long); ^ lnInclude/spinlock.h(131): error: asm statements not supported in this environment asm volatile ("" : : : "memory"); and I have no idea how to solve it? Best regards Jens |
Hi, Jens, Hoard is not supported on IA64. It does not affect compilation/running in any way. Please continue.
Best regards, Chiven |
Hi chiven,
Thanks for the information I just took it out of ThirdParty/malloc/Allwmake Will see what the future brings! Jens |
Thank you for sorting this out. I am using Icc 11.1.046 and will have a go at recompiling the whole lot.
The hoard stuff was full of warning messages (ugh!), but compiles OK. Are you using the latest icc? Hrv |
Hi, Dear Prof. Jasak, I am using the gcc 4.3.3, attached in the Third Party software pack of OpenFOAM Version-1.6.
Yours respectfully, Chiven |
Quote:
Jens |
My icc version is 10.1 20071116.
best regards, Chiven |
Quote:
But I thought hoard helps only in memory allocation for multithreading?! Where is OF using multithreading? Is there an other reason for using hoard? Jens |
Hi,
I'm trying to compile OF 1.6 with Icc 11.1 and having problems. I get the following error: /home/flix/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/HashTable.C(459): error: argument list for class template "Foam::Hash" is missing const HashTable<AnyType, Key, Hash>& rhs ^ Any suggestions? Greetings Felix |
Quote:
I'm having the same problem with Icc 10.1.11. Did you find a solution? Is there anyone else who have solved this? Regards David |
Hi Felix, David,
Here's what I have suggested as a concept of what should be fixed when I was asked for help abut the compilation error by my colleague. Code:
namespace X { Takuya |
Many thanks!
I'll give it a try. David |
Hello David,
I get the same error but I am not able to find the code lines which Takuya suggested to fix. So how do you solve the problem? Error: /work/home6/fschleg/Source/OpenFoam/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/HashTable.C(459): error: argument list for class template "Foam::Hash" is missing const HashTable<AnyType, Key, Hash>& rhs ^ /work/home6/fschleg/Source/OpenFoam/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/HashTable.C(457): error: no instance of overloaded function "Foam::HashTable<T, Key, Hash>::erase" matches the specified type Foam::label Foam::HashTable<T, Key, Hash>::erase I try to compaile the OpenFoam 1.6.x version with Icc and a system specific MPI. thx Fabian |
All times are GMT -4. The time now is 05:58. |