Project using inet links libINET.so on every build

16 views
Skip to first unread message

S Cortesi

unread,
Jun 6, 2024, 9:49:05 AMJun 6
to OMNeT++ Users
Dear all,

I'm new to OMNeT and want to do a project using inet.

For this, I installed inet using the IDE installer.
Then I created my own project, and set the checkmark to include inet inside the Project References.

However now every run/build takes almost 5min, as the inet shared lib is relinked:
<code>

15:39:11 **** Incremental Build of configuration release for project inet4.5 ****

make MODE=release -j8 all

make[1]: Entering directory '/home/cortesis/.../omnet_workspace/inet4.5/src'

*** CCACHE not detected - using precompiled headers

*** COMPILING with:

clang++ -c -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/cortesis/.config/cache/paru/clone/omnetpp/src=/usr/src/debug/omnetpp -flto=auto -O3 -DNDEBUG=1 -ffp-contract=off -MMD -MP -MF .d -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/cortesis/.config/cache/paru/clone/omnetpp/src=/usr/src/debug/omnetpp -flto=auto -fPIC -Wno-deprecated-register -Wno-unused-function -fno-omit-frame-pointer -DHAVE_SWAPCONTEXT -DWITH_QTENV -DWITH_NETBUILDER -DWITH_OSG -fopenmp -Wno-overloaded-virtual -include inet/common/precompiled_release.h -DOMNETPPLIBS_IMPORT -DINET_EXPORT -I. -I/opt/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 -lstdc++ -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -fuse-ld=lld -Wl,-rpath,/opt/omnetpp/lib -Wl,-rpath,. -Wl,-rpath,/opt/omnetpp/tools/linux.x86_64/lib -Wl,--export-dynamic -L/opt/omnetpp/lib -fopenmp

Building...

Creating shared library: ../out/clang-release/src/libINET.so

Makefile:1847: warning: pattern recipe did not update peer target '../out/clang-release/src/libINET.dll.a'.

Makefile:1847: warning: pattern recipe did not update peer target '../out/clang-release/src/libINET.def'.

make[1]: Leaving directory '/home/cortesis/.../omnet_workspace/inet4.5/src'


15:43:00 Build Finished. 0 errors, 2 warnings. (took 3m:48s.421ms)

</code>

before actually building the project:
<code>

15:43:00 **** Incremental Build of configuration release for project infocom2024 ****

make MODE=release all

cd src && make

make[1]: Entering directory '/home/cortesis/.../omnet_workspace/infocom2024/src'

make[1]: Nothing to be done for 'all'.

make[1]: Leaving directory '/home/cortesis/.../omnet_workspace/infocom2024/src'


15:43:00 Build Finished. 0 errors, 0 warnings. (took 120ms)

</code>

Is there anything I did setup wrong?

For reference, my Makefile(s) are attached (no source files yet).

Best,
Silvano
Makefile
Makefile
Reply all
Reply to author
Forward
0 new messages