Opened 6 years ago

Last modified 3 years ago

#5026 new defect

C++ Runtime Static Linking is not working

Reported by: Martin Sjölund Owned by: somebody
Priority: high Milestone:
Component: Cpp Run-time Version:
Keywords: Cc: Marcus Walther, Rüdiger Franke

Description

I am disabling Modelica.Electrical.Analog.Examples.CauerLowPassSC_cpp_static.mos since it does not seem to work as expected. It seems to ignore the library path where sundials is installed (lib/.../omc) and only works if sundials is installed in the OS. And even when the test succeeds, it is linked against 25 dynamic libraries anyway, some which are listed below:

	libboost_filesystem.so.1.58.0 => /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0 (0x00007fb7ebefd000)
	libsundials_nvecserial.so.0 => /usr/lib/libsundials_nvecserial.so.0 (0x00007fb7eb412000)
	liblapack.so.3 => /usr/lib/liblapack.so.3 (0x00007fb7ea398000)
	libf77blas.so.3 => /usr/lib/libf77blas.so.3 (0x00007fb7ea178000)
	libatlas.so.3 => /usr/lib/libatlas.so.3 (0x00007fb7e9bda000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fb7e9858000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb7e954f000)
	libomp.so.5 => /usr/lib/x86_64-linux-gnu/libomp.so.5 (0x00007fb7e9283000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fb7e906d000)
	libblas.so.3 => /usr/lib/libblas.so.3 (0x00007fb7e8848000)
	libgfortran.so.3 => /usr/lib/x86_64-linux-gnu/libgfortran.so.3 (0x00007fb7e851d000)
	libcblas.so.3 => /usr/lib/libcblas.so.3 (0x00007fb7e82fb000)
	libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007fb7e80bc000)

The executable is clearly not statically linked and cannot easily be moved between computers.

Change History (5)

comment:1 by Francesco Casella, 6 years ago

Milestone: 1.13.01.14.0

Rescheduled to 1.14.0 after 1.13.0 releasee

comment:2 by Francesco Casella, 5 years ago

Milestone: 1.14.01.16.0

Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2. This issue is rescheduled to 1.16.0

comment:3 by Francesco Casella, 4 years ago

Milestone: 1.16.01.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:4 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:5 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.