lowRISC / opentitan

OpenTitan: Open source silicon root of trust
https://www.opentitan.org
Apache License 2.0
2.58k stars 777 forks source link

[Getting Started - Installing dependencies using the package manager] libncursesw5 cannot be installed on Ubuntu 24.04 #24589

Open Ebed-melech opened 2 months ago

Ebed-melech commented 2 months ago

Description

Hi there,

It seems libncursesw5 is unavailable for use on ubuntu 24.04 so I changed the code on apt-requirements.txt (on my device) to use libncursesw6 instead.

Would this cause any problems in using the platform for verilator simulations?

Thanks

jwnrt commented 2 months ago

Hi, we're still working on 24.04 support but it mostly works fine.

If you installed Verilator from source (see these docs) then it will be statically linked and should work fine.

Unfortunately our Clang toolchain for building RISC-V software is dynamically linked against libncursesw5 and won't work out of the box. You could work around this by creating a symlink from v5 to v6, but please do so at your own risk (v6 seems to contain all the symbols from v5...):

sudo ln -s libncursesw.so.6 /usr/lib/x86_64-linux-gnu/libncursesw.so.5

We'll try fix the toolchain issue. Version 6 is supported back to Ubuntu 20.04 so it shouldn't cause breakages there.

jwnrt commented 2 months ago

CC @AlexJones0