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
cannot declare field 'icmTLMPlatform::m_timeAdvance'

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



Joined: 05 Dec 2017
Posts: 11

PostPosted: Thu Dec 14, 2017 4:26 am    Post subject: cannot declare field 'icmTLMPlatform::m_timeAdvance' Reply with quote

Hi all,

I'm trying to compile a virtual platform with icmAPI, but it said there is an error in tlmPlatform.hpp

[img]https://1drv.ms/i/s!ArWGg3EEfbFlkjjApOflYu0_zkin[/img]

In file included from /usr/local/imperas.20170919//ImperasLib/source/ovpworld.org/modelSupport/tlmPlatform/1.0/tlm2.0/tlmPlatform.cpp:30:0:
/usr/local/imperas.20170919//ImperasLib/source/ovpworld.org/modelSupport/tlmPlatform/1.0/tlm2.0/tlmPlatform.hpp:114:16: error: cannot declare field ‘icmTLMPlatform::m_timeAdvance’ to be of abstract type ‘time_advance’
time_advance m_timeAdvance;


i tried both to "make" in Makefile.TLM.Platform and Makefile in the platform itself. both of them show the same error about m_timeAdvance.
Am i missing here? Thank you
Back to top
View user's profile Send private message
DuncGrah
OVP Technologist
OVP Technologist


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

PostPosted: Fri Dec 15, 2017 2:23 am    Post subject: Reply with quote

Can you give a bit more information about what you are compiling and how you are compiling it?
Back to top
View user's profile Send private message Visit poster's website
VinsKrw



Joined: 05 Dec 2017
Posts: 11

PostPosted: Fri Dec 15, 2017 5:48 am    Post subject: Reply with quote

Hi, Thank you for the reply

yeah sure, I have a virtual platform MPSoC using ARM Cortex-M0 processor model, with SystemC, TLM 2.0, and ICM API for configurable feature of number processor that want to be used in simulation.

I'm using VirtualBox with CentOS 7 64 bit and OVPSim for Linux-32bit. I also have got the OVPSim license.
Back to top
View user's profile Send private message
DuncGrah
OVP Technologist
OVP Technologist


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

PostPosted: Fri Dec 15, 2017 6:11 am    Post subject: Reply with quote

Sorry, I need info of the source files you are trying to compile.

For example, are they based upon an OVP example?

Can you provide some more information on the source?
Back to top
View user's profile Send private message Visit poster's website
VinsKrw



Joined: 05 Dec 2017
Posts: 11

PostPosted: Wed Jan 17, 2018 10:39 pm    Post subject: Reply with quote

Hi, i'm sorry it took time

I'm trying to compile the example file from /Example/PlatformsICM/SystemC_TLM2.0

I've just realize there is an problem when OVP trying to compile tlmPlatform.o from Build/Linux32/sys/tlmPlatform.o
Back to top
View user's profile Send private message
DuncGrah
OVP Technologist
OVP Technologist


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

PostPosted: Thu Jan 18, 2018 12:34 am    Post subject: Reply with quote

In another post we have seen an issue compiling with GCC 5.3.1, the suggestion was to go back to GCC 4.9.1 and/or to add -D_GLIBCXX_USE_CXX11_ABI=1 to the CXXFLAGS
Back to top
View user's profile Send private message Visit poster's website
VinsKrw



Joined: 05 Dec 2017
Posts: 11

PostPosted: Thu Jan 18, 2018 7:17 am    Post subject: Reply with quote

Actually I'm using GCC 4.8.5, then i tried to install and compile using GCC 4.9.1. it does not work.
and also I've tried to change -D_GLIBCXX_USE_CXX11_ABI=1 in the Makefile. It still does not work either with the same problem.
Back to top
View user's profile Send private message
DuncGrah
OVP Technologist
OVP Technologist


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

PostPosted: Thu Jan 18, 2018 9:20 am    Post subject: Reply with quote

Should have asked earlier. Are you using SystemC v2.3.0 ?
Back to top
View user's profile Send private message Visit poster's website
VinsKrw



Joined: 05 Dec 2017
Posts: 11

PostPosted: Thu Jan 18, 2018 4:15 pm    Post subject: Reply with quote

I'm using the latest one, SystemC v 2.3.2
Back to top
View user's profile Send private message
DuncGrah
OVP Technologist
OVP Technologist


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

PostPosted: Fri Jan 19, 2018 1:19 am    Post subject: Reply with quote

I have not tried changing the version of SystemC used .. any chance you could use v2.3.0 just to make sure this is not the problem?
Back to top
View user's profile Send private message Visit poster's website
VinsKrw



Joined: 05 Dec 2017
Posts: 11

PostPosted: Fri Jan 19, 2018 5:48 am    Post subject: Reply with quote

Quote:
I have not tried changing the version of SystemC used .. any chance you could use v2.3.0 just to make sure this is not the problem?


It worked. I changed back to v2.3.0. Thank you
Back to top
View user's profile Send private message
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-2020 Imperas Software