OVP Forums - A community of assistance, help, questions, and answers.
  FAQFAQ    SearchSearch      RegisterRegister  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Log inLog in
errors when execute some examples

 
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> Getting started
View previous topic :: View next topic  
Author Message
JungMin



Joined: 25 Jun 2017
Posts: 2

PostPosted: Mon Jul 03, 2017 8:36 am    Post subject: errors when execute some examples Reply with quote

Hi, I am trying to compile the some examples described in the Installation and Getting Started document. I am using the 20170511 release on a Ubuntu 16 64-bit host.
i got some error messages when trying to Examples/HelloWorld/usingCPP and usingSystemC (other examples are well executed except these 2 examples)
How can i fix it?


Code:


make: Entering directory '/root/Workplace/OVPsim/Examples/HelloWorld/usingCPP/application'
make: Nothing to be done for 'all'.
make: Leaving directory '/root/Workplace/OVPsim/Examples/HelloWorld/usingCPP/application'
make: Entering directory '/root/Workplace/OVPsim/Examples/HelloWorld/usingCPP/harness'
# Host Compiling Harness obj/Linux32/harness.o
# Host Linking Harness harness.Linux32.exe
obj/Linux32/harness.o: In function `or1k::or1k(op::module&, char const*, op::params)':
/root/Workplace/OVPsim/Examples/HelloWorld/usingCPP/harness/or1k_generic.hpp:27: undefined reference to `op::processor::processor(op::module&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, op::params)'
obj/Linux32/harness.o: In function `top::top(char const*)':
/root/Workplace/OVPsim/Examples/HelloWorld/usingCPP/harness/harness.cpp:52: undefined reference to `op::memory::memory(op::module&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long long, optPrivE)'
/root/Workplace/OVPsim/Examples/HelloWorld/usingCPP/harness/harness.cpp:52: undefined reference to `op::bus::bus(op::module&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int)'
/root/Workplace/OVPsim/Examples/HelloWorld/usingCPP/harness/harness.cpp:54: undefined reference to `op::bus::connect(op::processor&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/root/Workplace/OVPsim/Examples/HelloWorld/usingCPP/harness/harness.cpp:55: undefined reference to `op::bus::connect(op::processor&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/root/Workplace/OVPsim/Examples/HelloWorld/usingCPP/harness/harness.cpp:56: undefined reference to `op::bus::connect(op::memory&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long long, unsigned long long)'
collect2: error: ld returned 1 exit status
/root/Workplace/OVPsim/ImperasLib/buildutils/Makefile.harness:102: recipe for target 'harness.Linux32.exe' failed
make: *** [harness.Linux32.exe] Error 1
make: Leaving directory '/root/Workplace/OVPsim/Examples/HelloWorld/usingCPP/harness'
./example.sh: 15: ./example.sh: ./harness/harness.Linux32.exe: not found
Back to top
View user's profile Send private message
DuncGrah
OVP Technologist
OVP Technologist


Joined: 27 Feb 2008
Posts: 1656
Location: United Kingdom

PostPosted: Thu Jul 06, 2017 3:31 am    Post subject: Reply with quote

This is a duplicate of this post
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> Getting started All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Information regarding OVP © 2008-2022 Imperas Software