Hi Giovanni, Thanks for reaching out and jumping into using the new toolchain.
I am a rather surprised (and a little concerned) you are getting this issue with a fresh Ubuntu 18.04.4LTS installation as this should be a very supported configuration. These errors however are expected using Ubuntu 20.04 and there are pre-installation steps that need to be done first. For Ubuntu 20.04 do the following before installing Matlab and Vivado: Install the QT4 libraries from the rock-core ppa e.g., ``` sudo add-apt-repository ppa:rock-core/qt4 sudo apt install libqtcore4 libqtgui4 ``` The above are dependencies needed for simulink and working with Vivado/Vitis system generator/model composer libraries. The QT4 libraries will resolve issues related to `sysgensockgui` timeout errors and not being able to open graphical parameter windows. I have also had issues in the past getting Vivado to complete installation as it will hang on final installation steps. To overcome this I also recommend an apt install for libtinfo-dev if not already present. Next, create the following symbolic links (this is because ubuntu comes with gcc7-9 and these vendor tools are using the older gcc 6) sudo ln -s /usr/include/asm-generic /usr/include/asm sudo ln -s /usr/include/x86_64-linux-gnu/sys /usr/include/sys sudo ln -s /usr/include/x86_64-linux-gnu/bits /usr/include/bits sudo ln -s /usr/include/x86_64-linux-gnu/gnu /usr/include/gnu Then, if not already done, because ubuntu is default using the dash shell, make the switch to bash using `sudo dpkg-reconfigure dash` At this point install Matlab R2021a and Vivado/Vitis 2021.1 It is recommend doing as minimal install as possible of Matlab 2021a. I would not recommend adding all the toolboxes even if they come with your license. It has been determined that there are toolboxes that interferer with system generator that cause system generator processes to hang and not terminate. The minimal toolboxes are the 'Signal Processing' and ‘DSP' Toolboxes. Anything beyond this should not be necessary. For much of this same information see here for more details: https://docs.xilinx.com/r/2021.2-English/ug1483-model-composer-sys-gen-user-guide/Supported-MATLAB-Versions-and-Operating-Systems For Ubuntu 18.04, I will create a vm and try to duplicate this through the day. But some thoughts… Your first set of Matlab errors are similar but something about them is a little off. For example, the error `undefined symbol: __gmpn_cnd_sub_n` from `libhogweed.so.4` is typically because a dependency is pointing to a library packaged with the vivado installation but conflicts what is with your Ubuntu configuration. So if you did (from your matlab prompt) after getting this error >> ! ldd >> /home/casper/.XILINX_MATLAB_RUNTIME/XMC_2021.1_R2021a/Ubuntu/18/libhogweed.so.4 It should return something where the list of dependencies has a mix of system and vivado libraries. But the strange thing to me here is that it is using the `XILINX_MATLAB_RUNTIME` and so some sort of a cached environment is being used. I have seen this runtime created but have never seen it interfere in this way. Then your second error with timeouts and not being able to open the windows is again related to the wrong QT libraries. But again, 18.04 I thought had QT4 and so your system either was updated or those were removed. And so again if you were to do (from the matlab prompt) >> ! ldd $XILINX_PATH/bin/unwrapped/lnx64.o/sysgensockgui I would be curious to know what your QT libraries are pointing to. Hope this helps, Mitch > On Sep 14, 2022, at 8:46 AM, Giovanni Comoretto <[email protected]> > wrote: > > I am now trying to install the new toolchain (R2021). > - start with a blank standard installation of Ubuntu 18.04.4-desktop. > - add just the packages git, virtualenv and python3-pip. > - install Xilinx Vitis 2021.1 and Matlab R2021a, > - install mlib_devel from github.com/casper-astro/mlib_devel > - create a virtual environment, activate it and install packages in > requirements.txt > - edit startsg.local to point to the correct directories for vitis and > matlab. > > Starting startsg I get: > gtk message: failed to load module "canberra-gtk-module" > (in Matlab): Error loading > /opt/MATLAB/R2021a/bin/glnxa64/builtins/sl_main/mwlibmwsimulink_builtinimpl.so. > > /home/casper/.XILINX_MATLAB_RUNTIME/XMC_2021.1_R2021a/Ubuntu/18/libhogweed.so.4: > undefined symbol: __gmpn_cnd_sub_n > Then I cannot connect to the System Generator GUI: The System Generator GUI > socket server timedout while waiting for an incoming socket connection. > I can import blocks from the Xilinx blockset but I cannot open the associate > paramenter window (same timeout error each time). > > I get the same error on Ubuntu 20.4, using different versions of Matlab and > of the Xilinx tools, using Vitis or Vivado as backend (in export > JASPER_BACKEND). > I tried to install libcanberra-gtk-module, but the first error stays there. > > Running the model generator outside the casper environment seems to work > > -- > You received this message because you are subscribed to the Google Groups > "[email protected]" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/26deffe2-a93a-46ed-a5fe-ee73d2abb7cfn%40lists.berkeley.edu. -- You received this message because you are subscribed to the Google Groups "[email protected]" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/18A4CA52-8AF9-40A7-BAAB-0A2011003F9E%40byu.edu.

