Results 1 to 3 of 3

Thread: Sycl installation on ubuntu 22.04.3 lts llvm package installation

  1. #1
    Join Date
    Sep 2023
    Beans
    1

    Sycl installation on ubuntu 22.04.3 lts llvm package installation

    Hi guys,

    I'm trying to install the install-llvm.sh package on Ubuntu, this is one of a 5 series of packages to run Gromacs under a RDNA AMD GPU over Gromacs, for molecular dynamics,

    1st. I tried with sudo sh install-llvm.sh getting,

    CMake Error at cmake/modules/CheckCompilerVersion.cmake:97 (message):
    libstdc++ version must be at least 5.1.
    Call Stack (most recent call first):
    cmake/config-ix.cmake:13 (include)
    CMakeLists.txt:655 (include)

    2nd. When using sudo sh install-llvm.sh I get install-llvm.sh: 16: read: Illegal option -n, now I'm trying with bash instead of sh after "install", like "install bash ...", and is letting me run the commands.

    Can anyone help me with the 1st item on the list?

  2. #2
    Join Date
    Nov 2010
    Location
    India
    Beans
    Hidden!

    Re: Sycl installation on ubuntu 22.04.3 lts llvm package installation

    Did you tried installing `libstdc++6`
    Code:
    sudo apt-get install libstdc++6

    Dont miss anything even it is small. one small pin is enough to bring down a man.


  3. #3
    Join Date
    Oct 2017
    Location
    /dev/sdx
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Sycl installation on ubuntu 22.04.3 lts llvm package installation

    The error message "libstdc++ version must be at least 5.1" means that the version of libstdc++ that is installed on your system is not new enough to support the build of LLVM. libstdc++ is a C++ standard library, and it provides the basic building blocks for C++ programs. The version 5.1 of libstdc++ was released in 2010 and it's quite old.

    There are a few things you can do to fix this error:

    Update your system's libstdc++ package. You can do this by running the following command:
    sudo apt update && sudo apt upgrade
    Install a newer version of libstdc++ manually. You can download the latest version of libstdc++ from the GNU website.

    Use a different C++ compiler that does not require a newer version of libstdc++. For example, you could use the Clang compiler.

    I would recommend trying to update your system's libstdc++ package first. If that does not work, then you can try installing a newer version of libstdc++ manually. If you are still having problems, then you can try using a different C++ compiler.

    As for the second item on your list, the error message "install-llvm.sh: 16: read: Illegal option -n" means that the install-llvm.sh script does not understand the option -n. This option is not documented in the script, so it is likely a typo. You can try removing the option -n from the command line and see if that fixes the problem.
    corn ubuntuforums community.
    Open Source platform where the real world of human is here. Click here for Solve thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •