Open-Systems-Pharmacology / OSPSuite.SimModel

Calculation engine for models built with PK-Sim® or MoBi®
Other
4 stars 3 forks source link

Use GCC 7 on Ubuntu 18 #144

Closed Yuri05 closed 2 years ago

Yuri05 commented 2 years ago

Seems that the AppVeyor configuration was upgraded and GCC 9 is used as per default now under Ubuntu, which is not part of 18.04 (so RE builds now fail on Ubuntu, e.g. https://github.com/Open-Systems-Pharmacology/OSPSuite.ReportingEngine/runs/6224408256?check_suite_focus=true)

msevestre commented 2 years ago

What's the problem?

Yuri05 commented 2 years ago

The problem is: Ubuntu18 build image on AppVeyor comes with different GCC versions: (https://www.appveyor.com/docs/linux-images-software/#compilers). Ubuntu 18.04 comes with GCC7 out of the box, and it was also the default GCC version on AppVeyor: grafik

But some time ago it apparently changed and they switched to GCC9 as default: grafik

Because of that SimModel was linked against newer C++ libs and was not running. The solution would be to upgrade Ubuntu to GCC9. This is not quite straight forward but possible (s. e.g. here)

However I failed to install it on my Ubuntu18-WSL (and ended up with completely destroyed Linux installation). So I decided to downgrade to the previous compiler before I invest more time in this. Unless SimModel is not using the newest C++ features, this is OK.

As soon as we get rid of rClr and can move to newer Ubuntu versions (20.04 at least) - all of that should not be a problem anyway.

msevestre commented 2 years ago

As soon as we get rid of rClr and can move to newer Ubuntu versions (20.04 at least) - all of that should not be a problem anyway

I might be retired then