|
[Sponsors] |
Error while compiling OpenFOAM on Redhat cluster |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 12, 2013, 06:39 |
Error while compiling OpenFOAM on Redhat cluster
|
#1 |
New Member
feiqunali
Join Date: Jul 2011
Posts: 13
Rep Power: 15 |
Hi all,
I met a problem while compiling OF2.1.1 on Redhat. The error information is as follows, I have no idea of the " Protocol error" at all. .. Can you guys help me? Thanks a lot. Code:
SOURCE=UPstream.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -IlnInclude -I. -I/lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/UPstream.o In file included from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UListIO.C:28, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UList.C:239, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UList.H:445, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/List.H:43, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/labelList.H:48, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UPstream.H:43, from UPstream.C:26: /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/token.H:49:36: error: /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/runTimeSelectionTables.H: Protocol error In file included from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLList.H:36, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/FixedListI.H:27, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/FixedList.H:363, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/List.C:29, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/List.H:259, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/labelList.H:48, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UPstream.H:43, from UPstream.C:26: /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBase.H:266:25: error: /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/SLListBaseI.H: Protocol error In file included from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UListIO.C:28, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UList.C:239, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UList.H:445, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/List.H:43, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/labelList.H:48, from /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/UPstream.H:43, from UPstream.C:26: /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/token.H:149: error: ‘autoPtr’ has not been declared /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/token.H:152: error: expected identifier before ‘(’ token /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/token.H:153: error: expected identifier before ‘(’ token /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/token.H:154: error: ISO C++ forbids declaration of ‘declareRunTimeSelectionTable’ with no type /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/token.H:169: error: ISO C++ forbids declaration of ‘autoPtr’ with no type /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/token.H:169: error: expected ‘;’ before ‘<’ token /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/token.H:147: error: cannot declare parameter ‘<anonymous>’ to be of abstract type ‘Foam::token::compound’ /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/token.H:125: note: because the following virtual functions are pure within ‘Foam::token::compound’: /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/token.H:193: note: virtual Foam::label Foam::token::compound::size() const /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/token.H:202: note: virtual void Foam::token::compound::write(Foam::Ostream&) const /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/token.H:147: error: cannot declare parameter ‘<anonymous>’ to be of abstract type ‘Foam::Istream’ /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Istream.H:61: note: because the following virtual functions are pure within ‘Foam::Istream’: /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/IOstream.H:463: note: virtual std::ios_base::fmtflags Foam::IOstream::flags() const /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/IOstream.H:498: note: virtual std::ios_base::fmtflags Foam::IOstream::flags(std::ios_base::fmtflags) /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Istream.H:111: note: virtual Foam::Istream& Foam::Istream::read(Foam::token&) /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Istream.H:114: note: virtual Foam::Istream& Foam::Istream::read(char&) /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Istream.H:117: note: virtual Foam::Istream& Foam::Istream::read(Foam::word&) /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Istream.H:120: note: virtual Foam::Istream& Foam::Istream::read(Foam::string&) /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Istream.H:123: note: virtual Foam::Istream& Foam::Istream::read(Foam::label&) /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Istream.H:126: note: virtual Foam::Istream& Foam::Istream::read(Foam::floatScalar&) /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Istream.H:129: note: virtual Foam::Istream& Foam::Istream::read(Foam::doubleScalar&) /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Istream.H:132: note: virtual Foam::Istream& Foam::Istream::read(char*, std::streamsize) /lustre/home/hpc-mhwen/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Istream.H:135: note: virtual Foam::Istream& Foam::Istream::rewind() Last edited by wyldckat; October 12, 2013 at 15:48. Reason: Added [CODE][/CODE] |
|
October 12, 2013, 15:57 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings feiqunali,
If my deduction is correct, what you're experiencing is a limitation on the Lustre installation your cluster is using. Because the problem is triggered on a file that is using a symbolic link, which OpenFOAM uses for compiling all library files, namely for symbolically linking to almost all source code files that OpenFOAM has got. In other words, in order to make it easier to compile OpenFOAM's libraries, it uses the "lnInclude" folder on each major library's source code folder, which contains links to all of the files relevant to that library. Then other libraries (and itself) can simply add to the search path a single directory path for each library. Anyway, there are two possible solutions that I can think of:
Bruno
__________________
|
|
October 13, 2013, 00:35 |
|
#3 |
New Member
feiqunali
Join Date: Jul 2011
Posts: 13
Rep Power: 15 |
Thanks.
Can you describe the first solution more detailly? What should I tell the administrator to do? |
|
October 13, 2013, 04:30 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
All you can do is describe the problem:
__________________
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFoam Cluster Hardware | ChrisA | Hardware | 3 | July 25, 2013 04:42 |
OpenFOAM-2.2.0 & CentOS / Redhat cluster | Aurelien Thinat | OpenFOAM Installation | 7 | June 28, 2013 17:05 |
Error compiling OpenFOAM 1.7.x | uli | OpenFOAM Installation | 6 | June 11, 2012 10:42 |
Error occurs when compiling OpenFoam 1.6.x with Icc | fs82 | OpenFOAM Bugs | 5 | January 20, 2010 04:08 |
Problem compiling OpenFOAM 1.6.x | deji | OpenFOAM Installation | 1 | October 8, 2009 00:00 |