Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while building opendsme in omnetpp #4

Open
iEdgeSys opened this issue Aug 24, 2020 · 2 comments
Open

Error while building opendsme in omnetpp #4

iEdgeSys opened this issue Aug 24, 2020 · 2 comments

Comments

@iEdgeSys
Copy link

./DSMEPlatform.h:153:18: error: 'signalPacketsTXPerSlot' marked 'override' but does not override any member functions
virtual void signalPacketsTXPerSlot(uint32_t packets) override;
^
./DSMEPlatform.h:155:18: error: 'signalPacketsRXPerSlot' marked 'override' but does not override any member functions
virtual void signalPacketsRXPerSlot(uint32_t packets) override;
^
./DSMEPlatform.h:104:18: warning: 'dsme::DSMEPlatform::receiveSignal' hides overloaded virtual function [-Woverloaded-virtual]
virtual void receiveSignal(cComponent *source, omnetpp::simsignal_t signalID, intval_t l, cObject *details) override;
^
../../inet/src\inet/linklayer/base/MacProtocolBase.h:87:18: note: hidden overloaded virtual function 'inet::MacProtocolBase::receiveSignal' declared here: type mismatch at 3rd parameter ('omnetpp::cObject *' vs 'intval_t' (aka 'long'))
virtual void receiveSignal(cComponent *source, simsignal_t signalID, cObject *obj, cObject *details) override;
^
17 warnings and 9 errors generated.
make[1]: *** [Makefile:160: ../out/clang-debug/src/DSMEMessage.o] Error 1
make[1]: Leaving directory '/e/omnetpp-5.6-src-windows/omnetpp-5.6/opendsme_workspace/inet-dsme/src'
make: *** [Makefile:2: all] Error 2
"make MODE=debug all" terminated with exit code 2. Build might be incomplete.

17:00:57 Build Failed. 11 errors, 17 warnings. (took 11s.600ms)

image

@iEdgeSys
Copy link
Author

18:01:58 **** Incremental Build of configuration debug for project inet-dsme ****
make MODE=debug all
cd src && make
make[1]: Entering directory '/home/nikumani/opendsme_workspace/inet-dsme/src'
DSMEMessage.cc
In file included from openDSME/dsmeAdaptionLayer/./GTSHelper.h:51,
from openDSME/dsmeAdaptionLayer/DSMEAdaptionLayer.h:51,
from DSMEPlatform.h:57,
from dsme_platform.h:96,
from DSMEMessage.cc:44:
openDSME/dsmeAdaptionLayer/././scheduling/GTSScheduling.h: In member function ‘uint16_t dsme::GTSSchedulingImpl<SchedulingData, RxData>::getPriorityLink()’:
openDSME/dsmeAdaptionLayer/././scheduling/GTSScheduling.h:196:36: warning: invalid use of incomplete type ‘class dsme::DSMEAdaptionLayer’
196 | uint16_t slots = this->dsmeAdaptionLayer.getMAC_PIB().macDSMEACT.getNumAllocatedGTS(d.address, Direction::TX);
| ~~~~~~^~~~~~~~~~~~~~~~~
In file included from openDSME/dsmeAdaptionLayer/DSMEAdaptionLayer.h:50,
from DSMEPlatform.h:57,
from dsme_platform.h:96,
from DSMEMessage.cc:44:
openDSME/dsmeAdaptionLayer/./AssociationHelper.h:51:7: note: forward declaration of ‘class dsme::DSMEAdaptionLayer’
51 | class DSMEAdaptionLayer;
| ^~~~~~~~~~~~~~~~~
In file included from openDSME/dsmeAdaptionLayer/./GTSHelper.h:51,
from openDSME/dsmeAdaptionLayer/DSMEAdaptionLayer.h:51,
from DSMEPlatform.h:57,
from dsme_platform.h:96,
from DSMEMessage.cc:44:
openDSME/dsmeAdaptionLayer/././scheduling/GTSScheduling.h: In member function ‘virtual dsme::GTSSchedulingDecision dsme::GTSSchedulingImpl<SchedulingData, RxData>::getNextSchedulingAction(uint16_t)’:
openDSME/dsmeAdaptionLayer/././scheduling/GTSScheduling.h:207:44: warning: invalid use of incomplete type ‘class dsme::DSMEAdaptionLayer’
207 | uint16_t numAllocatedSlots = this->dsmeAdaptionLayer.getMAC_PIB().macDSMEACT.getNumAllocatedGTS(address, Direction::TX);
| ~~~~~~^~~~~~~~~~~~~~~~~
In file included from openDSME/dsmeAdaptionLayer/DSMEAdaptionLayer.h:50,
from DSMEPlatform.h:57,
from dsme_platform.h:96,
from DSMEMessage.cc:44:
openDSME/dsmeAdaptionLayer/./AssociationHelper.h:51:7: note: forward declaration of ‘class dsme::DSMEAdaptionLayer’
51 | class DSMEAdaptionLayer;
| ^~~~~~~~~~~~~~~~~
In file included from openDSME/dsmeAdaptionLayer/./GTSHelper.h:51,
from openDSME/dsmeAdaptionLayer/DSMEAdaptionLayer.h:51,
from DSMEPlatform.h:57,
from dsme_platform.h:96,
from DSMEMessage.cc:44:
openDSME/dsmeAdaptionLayer/././scheduling/GTSScheduling.h:212:62: warning: invalid use of incomplete type ‘class dsme::DSMEAdaptionLayer’
212 | uint8_t numSuperFramesPerMultiSuperframe = this->dsmeAdaptionLayer.getMAC_PIB().helper.getNumberSuperframesPerMultiSuperframe();
| ~~~~~~^~~~~~~~~~~~~~~~~
In file included from openDSME/dsmeAdaptionLayer/DSMEAdaptionLayer.h:50,
from DSMEPlatform.h:57,
from dsme_platform.h:96,
from DSMEMessage.cc:44:
openDSME/dsmeAdaptionLayer/./AssociationHelper.h:51:7: note: forward declaration of ‘class dsme::DSMEAdaptionLayer’
51 | class DSMEAdaptionLayer;
| ^~~~~~~~~~~~~~~~~
In file included from openDSME/dsmeAdaptionLayer/./GTSHelper.h:51,
from openDSME/dsmeAdaptionLayer/DSMEAdaptionLayer.h:51,
from DSMEPlatform.h:57,
from dsme_platform.h:96,
from DSMEMessage.cc:44:
openDSME/dsmeAdaptionLayer/././scheduling/GTSScheduling.h:213:48: warning: invalid use of incomplete type ‘class dsme::DSMEAdaptionLayer’
213 | uint8_t randomSuperframeID = this->dsmeAdaptionLayer.getRandom() % numSuperFramesPerMultiSuperframe;
| ~~~~~~^~~~~~~~~~~~~~~~~
In file included from openDSME/dsmeAdaptionLayer/DSMEAdaptionLayer.h:50,
from DSMEPlatform.h:57,
from dsme_platform.h:96,
from DSMEMessage.cc:44:
openDSME/dsmeAdaptionLayer/./AssociationHelper.h:51:7: note: forward declaration of ‘class dsme::DSMEAdaptionLayer’
51 | class DSMEAdaptionLayer;
| ^~~~~~~~~~~~~~~~~
In file included from openDSME/dsmeAdaptionLayer/./GTSHelper.h:51,
from openDSME/dsmeAdaptionLayer/DSMEAdaptionLayer.h:51,
from DSMEPlatform.h:57,
from dsme_platform.h:96,
from DSMEMessage.cc:44:
openDSME/dsmeAdaptionLayer/././scheduling/GTSScheduling.h:214:40: warning: invalid use of incomplete type ‘class dsme::DSMEAdaptionLayer’
214 | uint8_t numGTSlots = this->dsmeAdaptionLayer.getMAC_PIB().helper.getNumGTSlots(randomSuperframeID);
| ~~~~~~^~~~~~~~~~~~~~~~~
In file included from openDSME/dsmeAdaptionLayer/DSMEAdaptionLayer.h:50,
from DSMEPlatform.h:57,
from dsme_platform.h:96,
from DSMEMessage.cc:44:
openDSME/dsmeAdaptionLayer/./AssociationHelper.h:51:7: note: forward declaration of ‘class dsme::DSMEAdaptionLayer’
51 | class DSMEAdaptionLayer;
| ^~~~~~~~~~~~~~~~~
In file included from openDSME/dsmeAdaptionLayer/./GTSHelper.h:51,
from openDSME/dsmeAdaptionLayer/DSMEAdaptionLayer.h:51,
from DSMEPlatform.h:57,
from dsme_platform.h:96,
from DSMEMessage.cc:44:
openDSME/dsmeAdaptionLayer/././scheduling/GTSScheduling.h:215:42: warning: invalid use of incomplete type ‘class dsme::DSMEAdaptionLayer’
215 | uint8_t randomSlotID = this->dsmeAdaptionLayer.getRandom() % numGTSlots;
| ~~~~~~^~~~~~~~~~~~~~~~~
In file included from openDSME/dsmeAdaptionLayer/DSMEAdaptionLayer.h:50,
from DSMEPlatform.h:57,
from dsme_platform.h:96,
from DSMEMessage.cc:44:
openDSME/dsmeAdaptionLayer/./AssociationHelper.h:51:7: note: forward declaration of ‘class dsme::DSMEAdaptionLayer’
51 | class DSMEAdaptionLayer;
| ^~~~~~~~~~~~~~~~~
In file included from openDSME/dsmeAdaptionLayer/./GTSHelper.h:51,
from openDSME/dsmeAdaptionLayer/DSMEAdaptionLayer.h:51,
from DSMEPlatform.h:57,
from dsme_platform.h:96,
from DSMEMessage.cc:44:
openDSME/dsmeAdaptionLayer/././scheduling/GTSScheduling.h:226:57: warning: invalid use of incomplete type ‘class dsme::DSMEAdaptionLayer’
226 | randomSlotID = randomSlotID % this->dsmeAdaptionLayer.getMAC_PIB().helper.getNumGTSlots(0);
| ~~~~~~^~~~~~~~~~~~~~~~~
In file included from openDSME/dsmeAdaptionLayer/DSMEAdaptionLayer.h:50,
from DSMEPlatform.h:57,
from dsme_platform.h:96,
from DSMEMessage.cc:44:
openDSME/dsmeAdaptionLayer/./AssociationHelper.h:51:7: note: forward declaration of ‘class dsme::DSMEAdaptionLayer’
51 | class DSMEAdaptionLayer;
| ^~~~~~~~~~~~~~~~~
In file included from dsme_platform.h:96,
from DSMEMessage.cc:44:
DSMEPlatform.h: At global scope:
DSMEPlatform.h:153:18: error: ‘virtual void dsme::DSMEPlatform::signalPacketsTXPerSlot(uint32_t)’ marked ‘override’, but does not override
153 | virtual void signalPacketsTXPerSlot(uint32_t packets) override;
| ^~~~~~~~~~~~~~~~~~~~~~
DSMEPlatform.h:155:18: error: ‘virtual void dsme::DSMEPlatform::signalPacketsRXPerSlot(uint32_t)’ marked ‘override’, but does not override
155 | virtual void signalPacketsRXPerSlot(uint32_t packets) override;
| ^~~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/home/nikumani/opendsme_workspace/inet-dsme/src'
make[1]: *** [Makefile:160: ../out/gcc-debug/src/DSMEMessage.o] Error 1
make: *** [Makefile:2: all] Error 2
"make MODE=debug all" terminated with exit code 2. Build might be incomplete.

18:02:00 Build Failed. 4 errors, 7 warnings. (took 2s.281ms)

@nicklf3nick
Copy link

Hi,
did you fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants