CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Problems about installing OpenFoam-1.6 (https://www.cfd-online.com/Forums/openfoam-installation/67253-problems-about-installing-openfoam-1-6-a.html)

chiven August 9, 2009 08:14

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

chiven August 10, 2009 00:40

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

chiven August 10, 2009 19:10

Done. The installation is finished.

jens_klostermann August 28, 2009 04:39

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

hjasak August 28, 2009 05:18

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

jens_klostermann August 28, 2009 05:32

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

chiven August 28, 2009 05:37

Hi, Jens, Hoard is not supported on IA64. It does not affect compilation/running in any way. Please continue.
Best regards,
Chiven

jens_klostermann August 28, 2009 05:48

Hi chiven,
Thanks for the information I just took it out of ThirdParty/malloc/Allwmake

Will see what the future brings!

Jens

hjasak August 28, 2009 06:00

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

chiven August 28, 2009 06:15

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

jens_klostermann August 28, 2009 06:41

Quote:

Originally Posted by hjasak (Post 227787)
Are you using the latest icc?
Hrv

My icc version is 10.1.015.

Jens

chiven August 28, 2009 06:49

My icc version is 10.1 20071116.

best regards,
Chiven

jens_klostermann August 29, 2009 01:31

Quote:

Originally Posted by jens_klostermann (Post 227784)
Hi chiven,
Thanks for the information I just took it out of ThirdParty/malloc/Allwmake

Will see what the future brings!

Jens

After taking out wmake libso hoard in ThirdParty/malloc/Allwmake the compilation with my old icc version has succeeded. I hope there will be no loss in performance without the hoard?
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

Don456 October 27, 2009 14:14

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

segersson October 28, 2009 04:52

Quote:

Originally Posted by Don456 (Post 234236)
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

Hi,
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

7islands October 31, 2009 23:15

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 {
  template<class T1, class T2> class A
  { template<class T3> void func(const A<T3, T2>&); };

  template<class T4> class T2 {};
}

// error - current OF code
template<class T1, class T2> template<class T3>
void X::A<T1, T2>::func(const A<T3, T2>&) {}

// ok - suggested fix
template<class T1, class T5> template<class T3>
void X::A<T1, T5>::func(const A<T3, T5>&) {}

I heard from him that this concept worked, but some compiler options had to be tweaked furthermore (a couple of preprocessor symbol definitions were required) in wmake rules in order to get everything compiled.

Takuya

segersson November 1, 2009 10:11

Many thanks!
I'll give it a try.

David

fs82 November 24, 2009 03:10

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.