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

Build error in simu5g ver1.2.1 for windows 11 #117

Open
yuvan257 opened this issue Feb 23, 2023 · 11 comments
Open

Build error in simu5g ver1.2.1 for windows 11 #117

yuvan257 opened this issue Feb 23, 2023 · 11 comments

Comments

@yuvan257
Copy link

hi all,
i want to make work simu5g with inet (4.4.1)..
the same error which u guys all got, is same for me.

C:/omnetpp-6.0.1/tools/win32.x86_64/mingw64/bin/llvm-ar.exe: error: unable to load '../out/gcc-debug/src/libsimu5g_dbg.dll.a': No such file or directory
make[1]: *** [Makefile:424: ../out/gcc-debug/src/libsimu5g_dbg.dll] Error 1
make[1]: Leaving directory '/c/omnetpp-6.0.1/git/Simu5G/src'
make: *** [Makefile:2: all] Error 2
"make MODE=debug -j12 all" terminated with exit code 2. Build might be incomplete.

my specs -
windows 11
omnetpp - 6.0.1
inet - 4.4.1
simu5g - 1.2.1
is it the windows 11 not supporting for simu5g 1.2.1?

@Ali-K-Abbas
Copy link

Dear ,
I faced the same Problem with win 11 then every things worked just fine after I applied Solution in #65 , try it and use omnetpp - 6.0

@Dead0utside
Copy link

I encountered the exact same problem here. @Ali-K-Abbas 's advice does not help unfortunately.

@Dead0utside
Copy link

Went back to windows 10 but the issue is still there. That's a bummer, idk what else to do

@qiaox123
Copy link

I also met this problem, how to solve it? The version I use is as follows:
windows 11;
omnet++ 6.0
inet 4.4.0
simu5g 1.2.1

@giovanninardini
Copy link
Collaborator

Could you please try to use the latest Simu5G release 1.2.2 and INET 4.5?

You can download and install both of them directly from the OMNeT+ +IDE: click on "Help" -> "Install simulation models..." and select INET 4.5 and Simu5G 1.2.2.

@qiaox123
Copy link

Could you please try to use the latest Simu5G release 1.2.2 and INET 4.5?

You can download and install both of them directly from the OMNeT+ +IDE: click on "Help" -> "Install simulation models..." and select INET 4.5 and Simu5G 1.2.2.

But when I upgraded everything to the following versions:
windows 11
omnet++ 6.0.1
inet 4.5
simu5g 1.2.2
There are still the same problems as before
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
D:/software/simulation/omnetpp-6.0.1-windows-x86_64/omnetpp-6.0.1/tools/win32.x86_64/mingw64/bin/llvm-ar.exe: error: unable to load '../out/clang-debug/src/libsimu5g_dbg.dll.a': No such file or directory
make[1]: *** [Makefile:424: ../out/clang-debug/src/libsimu5g_dbg.dll] Error 1
make[1]: Leaving directory '/d/simulation_workspace/project1/simu5g/src'
make: *** [Makefile:2: all] Error 2
"make MODE=debug -j16 all" terminated with exit code 2. Build might be incomplete.

what should I do?

@Dead0utside
Copy link

@qiaox123 Try reinstalling Omnet++ from scratch but whan unpacking it, run your archive manager with admin rights. Also, do not use the default windows archive manager. It turns out, that without admin rights the archiver cannot create some symbolic links when unpacking, therefore Omnet works incorrectly. Might sound like a joke, but that's what helped me at least. After reinstalling Omnet you can download Simu5G directly from the IDE. Should work, wish you best of luck

@qiaox123
Copy link

@qiaox123 Try reinstalling Omnet++ from scratch but whan unpacking it, run your archive manager with admin rights. Also, do not use the default windows archive manager. It turns out, that without admin rights the archiver cannot create some symbolic links when unpacking, therefore Omnet works incorrectly. Might sound like a joke, but that's what helped me at least. After reinstalling Omnet you can download Simu5G directly from the IDE. Should work, wish you best of luck

Hello, are you also running on windows11? I have used admin privileges to unzip omnet++, but my error still seems to be unresolved?

@Dead0utside
Copy link

@qiaox123 Try reinstalling Omnet++ from scratch but whan unpacking it, run your archive manager with admin rights. Also, do not use the default windows archive manager. It turns out, that without admin rights the archiver cannot create some symbolic links when unpacking, therefore Omnet works incorrectly. Might sound like a joke, but that's what helped me at least. After reinstalling Omnet you can download Simu5G directly from the IDE. Should work, wish you best of luck

Hello, are you also running on windows11? I have used admin privileges to unzip omnet++, but my error still seems to be unresolved?

I've been using windows 11 for some time before the issue first appeared. Now that I think about it, it probably appeared after I reinstalled omnet++ on windows 11. Unable to fix it, I had no choice but to go back to windows 10. The issue persisted though. Then I've been trying different things to fix it but nothing helped until I noticed some errors 7-zip was spitting out, something like "unable to create symbolic links, no privilege", though I don't remember precisely. So I changed 7-zip to WinRar, unpacked and installed everything as always and quite surprisingly, everything started working again. So you might as well try using winrar if you aren't. I hope it helps

@qiaox123
Copy link

@qiaox123 Try reinstalling Omnet++ from scratch but whan unpacking it, run your archive manager with admin rights. Also, do not use the default windows archive manager. It turns out, that without admin rights the archiver cannot create some symbolic links when unpacking, therefore Omnet works incorrectly. Might sound like a joke, but that's what helped me at least. After reinstalling Omnet you can download Simu5G directly from the IDE. Should work, wish you best of luck

Hello, are you also running on windows11? I have used admin privileges to unzip omnet++, but my error still seems to be unresolved?

I've been using windows 11 for some time before the issue first appeared. Now that I think about it, it probably appeared after I reinstalled omnet++ on windows 11. Unable to fix it, I had no choice but to go back to windows 10. The issue persisted though. Then I've been trying different things to fix it but nothing helped until I noticed some errors 7-zip was spitting out, something like "unable to create symbolic links, no privilege", though I don't remember precisely. So I changed 7-zip to WinRar, unpacked and installed everything as always and quite surprisingly, everything started working again. So you might as well try using winrar if you aren't. I hope it helps

Thank you for your advice.But I still have not solved, I originally used winRAR, and then I changed to 7z, are not very good, now I guess this problem should be caused by the windows11 system, and after I change the system to try it. Thank you again

@shashini-w
Copy link

Could you please try to use the latest Simu5G release 1.2.2 and INET 4.5?

You can download and install both of them directly from the OMNeT+ +IDE: click on "Help" -> "Install simulation models..." and select INET 4.5 and Simu5G 1.2.2.

@giovanninardini I tried installing Simu5G 1.2.2 and I am getting a similar error. I have worked with the previous versions of simu5G and they all compiled without any error.

My specs :

  • Windows 10
  • OMNeT ++ 6.0.1
  • INET 4.5
  • Simu5G 1.2.2

I installed both INET and Simu5G directly from OMNeT. I even tried all the solutions already suggested in issues #6 , #54 and #65 . I tried changing the compiler to gcc as well. I even tried adding the line LDFLAGS:= $(LDFLAGS) -Wl,--allow-multiple-definition under properties->makemake->src->custom but still I keep getting the following error:

ld.lld: error: duplicate symbol: non-virtual thunk to inet::Packet::~Packet() defined at ../../inet4.5/src/inet/common/packet/Packet.h:101
 ../out/gcc-debug/src/stack/packetFlowManager/PacketFlowManagerEnb.o defined at libINET_dbg.dll

ld.lld: error: duplicate symbol: non-virtual thunk to inet::SctpClient::socketAvailable(inet::SctpSocket*, inet::Indication*) defined at ../../inet4.5/src/inet/applications/sctpapp/SctpClient.h:83
 ../out/gcc-debug/src/x2/X2AppClient.o defined at libINET_dbg.dll

ld.lld: error: duplicate symbol: non-virtual thunk to inet::MovingMobilityBase::getCurrentAcceleration() defined at ../../inet4.5/src/inet/mobility/base/MovingMobilityBase.h:79
 ../out/gcc-debug/src/mobility/trafficLightMobility/TrafficLightMobility.o defined at libINET_dbg.dll

ld.lld: error: duplicate symbol: non-virtual thunk to inet::MovingMobilityBase::getCurrentAngularAcceleration()  defined at ../../inet4.5/src/inet/mobility/base/MovingMobilityBase.h:83
 ../out/gcc-debug/src/mobility/trafficLightMobility/TrafficLightMobility.o  defined at libINET_dbg.dll

ld.lld: error: duplicate symbol: non-virtual thunk to inet::MobilityBase::getConstraintAreaMax() const defined at ../../inet4.5/src/inet/mobility/base/MobilityBase.h:168
  ../out/gcc-debug/src/mobility/trafficLightMobility/TrafficLightMobility.o  defined at libINET_dbg.dll

ld.lld: error: duplicate symbol: non-virtual thunk to inet::MobilityBase::getConstraintAreaMin() const defined at ../../inet4.5/src/inet/mobility/base/MobilityBase.h:169
 ../out/gcc-debug/src/mobility/trafficLightMobility/TrafficLightMobility.o  defined at libINET_dbg.dll

ld.lld: error: duplicate symbol: non-virtual thunk to inet::MobilityBase::getId() const defined at ../../inet4.5/src/inet/mobility/base/MobilityBase.h:83
 ../out/gcc-debug/src/mobility/trafficLightMobility/TrafficLightMobility.o defined at libINET_dbg.dll

ld.lld: error: duplicate symbol: non-virtual thunk to inet::LinearMobility::getMaxSpeed() const  defined at ../../inet4.5/src/inet/mobility/single/LinearMobility.h:38
../out/gcc-debug/src/mobility/trafficLightMobility/TrafficLightMobility.o defined at libINET_dbg.dll

ld.lld: error: duplicate symbol: non-virtual thunk to inet::Chunk::getRegionTags()  defined at ../../inet4.5/src/inet/common/packet/chunk/Chunk.h:691
 ../out/gcc-debug/src/apps/mecRequestResponseApp/MecRequestApp.o  defined at libINET_dbg.dll
collect2.exe: error: ld returned 1 exit status
C:/Users/ultras/Desktop/omnetpp-6.0.1/tools/win32.x86_64/mingw64/bin/llvm-ar.exe: error: unable to load '../out/gcc-debug/src/libsimu5g_dbg.dll.a': No such file or directory
make[1]: *** [Makefile:424: ../out/gcc-debug/src/libsimu5g_dbg.dll] Error 1
make[1]: Leaving directory '/c/Users/ultras/Desktop/omnetpp-6.0.1/samples/simu5g/src'
make: *** [Makefile:2: all] Error 2
"make MODE=debug -j8 all" terminated with exit code 2. Build might be incomplete.

13:35:48 Build Failed. 2 errors, 85 warnings. (took 2m:28s.652ms)

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

6 participants