Simu5g-> lld-link: error

34 views
Skip to first unread message

sh.t w

unread,
Nov 10, 2022, 11:38:22 AM11/10/22
to omn...@googlegroups.com
Hello everyone,

I am working on a project that contains aerial 5g UE nodes. In the project we include both INeT and simu5g frameworks as project references. And then create nodes by extending the NRUe module of simu5g. I also created a new channel model by extending the NRChannelModel of simu5g. Earlier I worked with OMNeT 5.6.2, INeT 4.2.2. and simu5g 1.1.0.  And everything worked properly.

Now we want to migrate to OMNeT 6, hence I tried creating a new project (created from scratch without copying the project directly) in OMNeT 6.0 and I use INET 4.4.1 and Simu5g 1.2.1. INET was installed from Help > Install Simulation Models and simu5g was added by cloning the master branch from https://github.com/Unipisa/Simu5G. Both INET 4.4.1 and Simu5g 1.2.1 are in OMNeT/samples folder.

Now when both INeT 4.4 and Simu5g are added as project references, building the project result in many errors including :

lld-link: error: duplicate symbol: __NULL_IMPORT_DESCRIPTOR
>>> defined at libINET_dbg.dll.a(libINET_dbg.dll)
>>> defined at libsimu5g_dbg.dll.a(libsimu5g_dbg.dll)


1. However, by including only simu5g as a project reference this error goes away. 
Does anybody know why it is different from the previous simu5g version? Because when working with simu5g 1.1.0 and INET 4.2.2 both were used as project references and it works.

2. The other errors I'm getting are also lld-link errors and show errors associated with the sender app, receiver app, channel model, and the packet I created to send data. Literally, all the files that link to simu5g. Examples of such errors:

lld-link: error: duplicate symbol: LtePhyBase::getCoord()
>>> defined at C:/st/omnetpp-6.0/samples/Simu5G/src/stack/phy/layer/LtePhyBase.h:335
>>>            ../out/clang-debug/src/communication/ChannelModel.o
>>> defined at libsimu5g_dbg.dll

lld-link: error: duplicate symbol: LteAirFrame::LteAirFrame(char const*, int)
>>> defined at C:/st/omnetpp-6.0/samples/Simu5G/src/stack/phy/packet/LteAirFrame.h:21
>>>            ../out/clang-debug/src/communication/ChannelModel.o
>>> defined at libsimu5g_dbg.dll

lld-link: error: duplicate symbol: LteAirFrame::LteAirFrame(LteAirFrame const&)
>>> defined at C:/st/omnetpp-6.0/samples/Simu5G/src/stack/phy/packet/LteAirFrame.h:21
>>>            ../out/clang-debug/src/communication/ChannelModel.o
>>> defined at libsimu5g_dbg.dll

Does anyone know what could have possibly gone wrong when I am using the latest simu5g version? Or any suggestion on how to solve this lld-link: errors

Appreciate any help. 

Thank you,
Best Regards,
Sh.Tw
Reply all
Reply to author
Forward
0 new messages