LeSanglier
Posts: 226
Joined: Fri Jan 11, 2013 8:11 pm
Location: In Hell with God
Contact: Website

Cray emulator

Thu Nov 28, 2013 8:50 pm

Hi,

I would like to know if someone has compiled the cray emulator with success ?

http://modularcircuits.tantosonline.com ... downloads/
Mon blog sur le Raspberry Pi : http://framboisepi.fr/
Pour avoir plus de chance d'avoir une réponse à votre question,
allez sur le forum français Rasberry Pi : http://forum.raspfr.org

User avatar
DougieLawson
Posts: 39799
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Cray emulator

Thu Nov 28, 2013 8:52 pm

Which version were you trying and how did it fail?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

LeSanglier
Posts: 226
Joined: Fri Jan 11, 2013 8:11 pm
Location: In Hell with God
Contact: Website

Re: Cray emulator

Thu Nov 28, 2013 11:18 pm

I use the latest version : cray_xmp_sim-0.92.zip
The compilation errors are very long !

Code: Select all

make[1]: entrant dans le répertoire « /home/pi/SIMULATEUR/CRAY/sw/sim_lib »
g++ -c -ffunction-sections -fdata-sections -g -Wall -Wno-unused-local-typedefs -Wno-reorder -gdwarf-2 -O3 -I. -I../sim_lib -I/usr/share/boost/include -D_FILE_OFFSET_BITS=64 cray_channels.cpp -c -g -o ../_obj/linux_release/cray_channels.o
In file included from cray_channels.h:7:0,
                 from cray_channels.cpp:10:
utils.h:35:1: warning: identifier ‘nullptr’ will become a keyword in C++0x [-Wc++0x-compat]
utils.h: In function ‘int FOpen(FILE**, const char*, const char*)’:
utils.h:35:127: error: ‘nullptr’ was not declared in this scope
In file included from cray_channels.h:7:0,
                 from cray_channels.cpp:10:
utils.h: At global scope:
utils.h:43:41: error: expected ‘;’ at end of member declaration
utils.h:43:43: error: ‘override’ does not name a type
utils.h:40:7: error: looser throw specifier for ‘virtual Generic_x::~Generic_x()’
/usr/include/c++/4.6/exception:65:13: error:   overriding ‘virtual std::exception::~exception() throw ()’
utils.h:51:41: error: expected ‘;’ at end of member declaration
utils.h:51:43: error: ‘override’ does not name a type
utils.h:48:7: error: looser throw specifier for ‘virtual Assert_x::~Assert_x()’
/usr/include/c++/4.6/exception:65:13: error:   overriding ‘virtual std::exception::~exception() throw ()’
In file included from cray_channels.h:7:0,
                 from cray_channels.cpp:10:
utils.h: In constructor ‘NullStrm_c::NullStrm_c()’:
utils.h:136:35: error: ‘nullptr’ was not declared in this scope
utils.h: At global scope:
utils.h:158:39: error: expected ‘;’ at end of member declaration
utils.h:158:45: error: ‘override’ does not name a type
utils.h: In function ‘uint64_t GetFileSize(const char*)’:
utils.h:324:15: error: ‘nullptr’ was not declared in this scope
utils.h: At global scope:
utils.h:490:41: error: expected ‘;’ at end of member declaration
utils.h:490:43: error: ‘override’ does not name a type
utils.h:483:7: error: looser throw specifier for ‘virtual InvalidConversion_x::~InvalidConversion_x()’
/usr/include/c++/4.6/exception:65:13: error:   overriding ‘virtual std::exception::~exception() throw ()’
utils.h:623:42: error: expected ‘;’ at end of member declaration
utils.h:623:44: error: ‘override’ does not name a type
utils.h:620:8: error: looser throw specifier for ‘virtual CommandLine_c::NoMoreArgs_x::~NoMoreArgs_x()’
/usr/include/c++/4.6/exception:65:13: error:   overriding ‘virtual std::exception::~exception() throw ()’
In file included from cray_logger.h:5:0,
                 from cray_channels.h:17,
                 from cray_channels.cpp:10:
logger.h: In constructor ‘LoggerBase_c::LoggerBase_c()’:
logger.h:28:11: error: ‘nullptr’ was not declared in this scope
In file included from cray_logger.h:5:0,
                 from cray_channels.h:17,
                 from cray_channels.cpp:10:
logger.h: In member function ‘void LoggerBase_c::SetDisplayLogLevel(size_t)’:
logger.h:77:7: warning: ‘auto’ will change meaning in C++0x; please remove it [-Wc++0x-compat]
logger.h:77:12: error: ‘ChildIt’ does not name a type
logger.h:77:41: error: expected ‘;’ before ‘ChildIt’
logger.h:77:41: error: ‘ChildIt’ was not declared in this scope
logger.h: In member function ‘void LoggerBase_c::PopDisplayLogLevel()’:
logger.h:93:7: warning: ‘auto’ will change meaning in C++0x; please remove it [-Wc++0x-compat]
logger.h:93:12: error: ‘ChildIt’ does not name a type
logger.h:93:41: error: expected ‘;’ before ‘ChildIt’
logger.h:93:41: error: ‘ChildIt’ was not declared in this scope
logger.h: In member function ‘void LoggerBase_c::NotifyChildren() const’:
logger.h:98:7: warning: ‘auto’ will change meaning in C++0x; please remove it [-Wc++0x-compat]
logger.h:98:12: error: ‘ChildIt’ does not name a type
logger.h:98:41: error: expected ‘;’ before ‘ChildIt’
logger.h:98:41: error: ‘ChildIt’ was not declared in this scope
logger.h: In member function ‘void LoggerBase_c::UnsetDisplayLogLevel()’:
logger.h:106:7: warning: ‘auto’ will change meaning in C++0x; please remove it [-Wc++0x-compat]
logger.h:106:12: error: ‘ChildIt’ does not name a type
logger.h:106:41: error: expected ‘;’ before ‘ChildIt’
logger.h:106:41: error: ‘ChildIt’ was not declared in this scope
logger.h: In member function ‘void LoggerBase_c::SetParent(LoggerBase_c*)’:
logger.h:113:18: error: ‘nullptr’ was not declared in this scope
logger.h:117:18: error: ‘nullptr’ was not declared in this scope
logger.h: In member function ‘bool LoggerBase_c::IsValid()’:
logger.h:133:42: error: ‘nullptr’ was not declared in this scope
logger.h: In member function ‘void LoggerBase_c::SetInheritedLogLevel(size_t)’:
logger.h:144:7: warning: ‘auto’ will change meaning in C++0x; please remove it [-Wc++0x-compat]
logger.h:144:12: error: ‘ChildIt’ does not name a type
logger.h:144:41: error: expected ‘;’ before ‘ChildIt’
logger.h:144:41: error: ‘ChildIt’ was not declared in this scope
logger.h: In member function ‘void LoggerBase_c::RemoveChild(LoggerBase_c&)’:
logger.h:149:3: warning: ‘auto’ will change meaning in C++0x; please remove it [-Wc++0x-compat]
logger.h:149:8: error: ‘ChildIt’ does not name a type
logger.h:150:7: error: ‘ChildIt’ was not declared in this scope
logger.h: In member function ‘void LoggerBase_c::AddChild(LoggerBase_c&)’:
logger.h:155:3: warning: ‘auto’ will change meaning in C++0x; please remove it [-Wc++0x-compat]
logger.h:155:8: error: ‘ChildIt’ does not name a type
logger.h:156:7: error: ‘ChildIt’ was not declared in this scope
logger.h: In constructor ‘SimpleLogger_c::SimpleLogger_c(const char*)’:
logger.h:189:56: error: ‘nullptr’ was not declared in this scope
logger.h: In member function ‘virtual void SimpleLogger_c::ParentChanged()’:
logger.h:196:22: error: ‘nullptr’ was not declared in this scope
logger.h: In constructor ‘StreamLogger_c::StreamLogger_c()’:
logger.h:207:25: error: ‘nullptr’ was not declared in this scope
logger.h: In constructor ‘StreamLogger_c::StreamLogger_c(const char*)’:
logger.h:208:78: error: ‘nullptr’ was not declared in this scope
logger.h: In member function ‘virtual void StreamLogger_c::ParentChanged()’:
logger.h:218:17: error: ‘nullptr’ was not declared in this scope
In file included from cray_channels.h:17:0,
                 from cray_channels.cpp:10:
cray_logger.h: At global scope:
cray_logger.h:43:30: error: expected ‘;’ at end of member declaration
cray_logger.h:43:32: error: ‘override’ does not name a type
cray_logger.h:61:36: error: expected ‘;’ at end of member declaration
cray_logger.h:61:38: error: ‘override’ does not name a type
cray_logger.h:80:29: error: expected ‘;’ at end of member declaration
cray_logger.h:80:31: error: ‘override’ does not name a type
In file included from cray_channels.h:17:0,
                 from cray_channels.cpp:10:
cray_logger.h: In static member function ‘static std::string CLogger_c::ModuleNameFormatter(const char*, size_t, size_t)’:
cray_logger.h:22:33: error: ‘_itoa’ was not declared in this scope
cray_logger.h: In constructor ‘CLogger_c::CLogger_c()’:
cray_logger.h:27:30: error: ‘nullptr’ was not declared in this scope
cray_logger.h: In constructor ‘CLogger_c::CLogger_c(const char*)’:
cray_logger.h:28:111: error: ‘nullptr’ was not declared in this scope
In file included from cray_channels.h:17:0,
                 from cray_channels.cpp:10:
cray_logger.h: In constructor ‘CLogger_c::CLogger_c(const char*, size_t, size_t)’:
cray_logger.h:29:182: error: ‘nullptr’ was not declared in this scope
cray_logger.h: In constructor ‘CLogger_c::CLogger_c(std::ostream&, const char*)’:
cray_logger.h:30:125: error: ‘nullptr’ was not declared in this scope
cray_logger.h: In constructor ‘CLogger_c::CLogger_c(std::ostream&, const char*, size_t, size_t)’:
cray_logger.h:31:205: error: ‘nullptr’ was not declared in this scope
cray_logger.h: In member function ‘void CLogger_c::UnsetTimeStampGenerator()’:
cray_logger.h:39:25: error: ‘nullptr’ was not declared in this scope
cray_logger.h: In member function ‘const TimeStampGenerator_i* CLogger_c::GetInheritedTimeStampGenerator() const’:
cray_logger.h:73:17: error: ‘nullptr’ was not declared in this scope
In file included from cray_channels.cpp:10:0:
cray_channels.h: In member function ‘virtual void FileInputChannel_c::MasterClear()’:
cray_channels.h:91:46: error: no matching function for call to ‘std::basic_ifstream<char>::open(std::string&, std::_Ios_Openmode)’
cray_channels.h:91:46: note: candidate is:
/usr/include/c++/4.6/fstream:531:7: note: void std::basic_ifstream<_CharT, _Traits>::open(const char*, std::ios_base::openmode) [with _CharT = char, _Traits = std::char_traits<char>, std::ios_base::openmode = std::_Ios_Openmode]
/usr/include/c++/4.6/fstream:531:7: note:   no known conversion for argument 1 from ‘std::string {aka std::basic_string<char>}’ to ‘const char*’
cray_channels.cpp: In member function ‘virtual void FileOutputChannel_c::Tick()’:
cray_channels.cpp:77:50: error: no matching function for call to ‘std::basic_ofstream<char>::basic_ofstream(std::string&, std::_Ios_Openmode)’
cray_channels.cpp:77:50: note: candidates are:
/usr/include/c++/4.6/fstream:629:7: note: std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*, std::ios_base::openmode) [with _CharT = char, _Traits = std::char_traits<char>, std::ios_base::openmode = std::_Ios_Openmode]
/usr/include/c++/4.6/fstream:629:7: note:   no known conversion for argument 1 from ‘std::string {aka std::basic_string<char>}’ to ‘const char*’
/usr/include/c++/4.6/fstream:614:7: note: std::basic_ofstream<_CharT, _Traits>::basic_ofstream() [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.6/fstream:614:7: note:   candidate expects 0 arguments, 2 provided
/usr/include/c++/4.6/fstream:588:11: note: std::basic_ofstream<char>::basic_ofstream(const std::basic_ofstream<char>&)
/usr/include/c++/4.6/fstream:588:11: note:   candidate expects 1 argument, 2 provided
logger.h: In member function ‘bool LoggerBase_c::IsValid()’:
logger.h:133:75: warning: control reaches end of non-void function [-Wreturn-type]
At global scope:
cc1plus: warning: unrecognized command line option "-Wno-unused-local-typedefs" [enabled by default]
make[1]: *** [../_obj/linux_release/cray_channels.o] Erreur 1
make[1]: quittant le répertoire « /home/pi/SIMULATEUR/CRAY/sw/sim_lib »
make: *** [sim_lib] Erreur 2
pi@raspberrypi ~/SIMULATEUR/CRAY/sw $ 
I have installed boost-dev 1.50 and remove "-std=c++11" in "engine.make" file.
Mon blog sur le Raspberry Pi : http://framboisepi.fr/
Pour avoir plus de chance d'avoir une réponse à votre question,
allez sur le forum français Rasberry Pi : http://forum.raspfr.org

LeSanglier
Posts: 226
Joined: Fri Jan 11, 2013 8:11 pm
Location: In Hell with God
Contact: Website

Re: Cray emulator

Wed Dec 04, 2013 7:30 am

Hi,

To avoid these errors, use gcc 4.7.
Mon blog sur le Raspberry Pi : http://framboisepi.fr/
Pour avoir plus de chance d'avoir une réponse à votre question,
allez sur le forum français Rasberry Pi : http://forum.raspfr.org

Return to “Other”