inet-framework / inet

INET Framework for the OMNeT++ discrete event simulator
https://inet.omnetpp.org
Other
439 stars 486 forks source link

Error compiling last INET version #444

Closed shrit closed 5 years ago

shrit commented 5 years ago

I am trying to compile INET on arch linux, I am getting the following error:


inet/common/XMLUtils.cc:156:42: error: cannot pass object of non-trivial type 'std::string' (aka 'basic_string<char>') through variadic constructor; call will abort at runtime [-Wnon-pod-varargs]
                attr, node.getTagName(), node.getSourceLocation());
                                         ^
inet/common/XMLUtils.cc:165:42: error: cannot pass object of non-trivial type 'std::string' (aka 'basic_string<char>') through variadic constructor; call will abort at runtime [-Wnon-pod-varargs]
                attr, node.getTagName(), node.getSourceLocation());

The compiling command is:


*** COMPILING with:
clang++ -c -std=c++11 -O3 -DNDEBUG=1   -MMD -MP -MF .d  -fPIC  -Wno-deprecated-register -Wno-unused-function -fno-stack-protector -DHAVE_SWAPCONTEXT -DWITH_MPI -DPREFER_QTENV -DWITH_QTENV -DWITH_PARSIM -DWITH_NETBUILDER -DWITH_OSG -DWITH_OSGEARTH -Wno-overloaded-virtual -include inet/common/precompiled_release.h  -DINET_EXPORT -I. -I/meta/omnetpp/include
*** LINKING with:
clang++ -shared -fPIC -o ../out/clang-release/src/libINET.so -Wl,--no-as-needed -Wl,--whole-archive  -Wl,--no-whole-archive -loppenvir -loppsim -ldl -lstdc++  -losg -losgText -losgDB -losgGA -losgViewer -losgUtil -lOpenThreads  -losgEarth -losgEarthUtil    -Wl,-rpath,/meta/omnetpp/lib -Wl,-rpath,/lib -Wl,-rpath,.  -Wl,--export-dynamic -L/meta/omnetpp/lib
Building...

I have tried with clang++ version 5, 7 and 8. and I am getting the same error

rhornig commented 5 years ago

Well, OMNeT++ master is not guaranteed to work with any version of INET. It may broke temporarily. You have checked out an inconsistent version of INET and OMNET master. (inet was updated, but the corresponding change to OMNeT was not). It should work now with th enew omnet master.

shrit commented 5 years ago

Well, I am using the master version for OMNeT++. I have downloaded it yesterday.