OVP Forums - A community of assistance, help, questions, and answers.
|
View previous topic :: View next topic |
Author |
Message |
VinsKrw
Joined: 05 Dec 2017 Posts: 11
|
Posted: Thu Dec 14, 2017 4:26 am Post subject: cannot declare field 'icmTLMPlatform::m_timeAdvance' |
|
|
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 |
|
 |
DuncGrah OVP Technologist

Joined: 27 Feb 2008 Posts: 1646 Location: United Kingdom
|
Posted: Fri Dec 15, 2017 2:23 am Post subject: |
|
|
Can you give a bit more information about what you are compiling and how you are compiling it? |
|
Back to top |
|
 |
VinsKrw
Joined: 05 Dec 2017 Posts: 11
|
Posted: Fri Dec 15, 2017 5:48 am Post subject: |
|
|
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 |
|
 |
DuncGrah OVP Technologist

Joined: 27 Feb 2008 Posts: 1646 Location: United Kingdom
|
Posted: Fri Dec 15, 2017 6:11 am Post subject: |
|
|
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 |
|
 |
VinsKrw
Joined: 05 Dec 2017 Posts: 11
|
Posted: Wed Jan 17, 2018 10:39 pm Post subject: |
|
|
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 |
|
 |
DuncGrah OVP Technologist

Joined: 27 Feb 2008 Posts: 1646 Location: United Kingdom
|
Posted: Thu Jan 18, 2018 12:34 am Post subject: |
|
|
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 |
|
 |
VinsKrw
Joined: 05 Dec 2017 Posts: 11
|
Posted: Thu Jan 18, 2018 7:17 am Post subject: |
|
|
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 |
|
 |
DuncGrah OVP Technologist

Joined: 27 Feb 2008 Posts: 1646 Location: United Kingdom
|
Posted: Thu Jan 18, 2018 9:20 am Post subject: |
|
|
Should have asked earlier. Are you using SystemC v2.3.0 ? |
|
Back to top |
|
 |
VinsKrw
Joined: 05 Dec 2017 Posts: 11
|
Posted: Thu Jan 18, 2018 4:15 pm Post subject: |
|
|
I'm using the latest one, SystemC v 2.3.2 |
|
Back to top |
|
 |
DuncGrah OVP Technologist

Joined: 27 Feb 2008 Posts: 1646 Location: United Kingdom
|
Posted: Fri Jan 19, 2018 1:19 am Post subject: |
|
|
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 |
|
 |
VinsKrw
Joined: 05 Dec 2017 Posts: 11
|
Posted: Fri Jan 19, 2018 5:48 am Post subject: |
|
|
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 |
|
 |
|
|
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
|