Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ubuntu] Install default version of Clang last #3506

Merged
merged 1 commit into from
Jun 4, 2021
Merged

[Ubuntu] Install default version of Clang last #3506

merged 1 commit into from
Jun 4, 2021

Commits on Jun 3, 2021

  1. [Ubuntu] Install default version of Clang last

    The libomp package provides the OpenMP runtime for Clang. Only one
    version of libomp may be installed at a time:
    
      $ dpkg -s libomp5-12 | grep Conflicts
      Conflicts: libomp-x.y
    
    The clang.sh installer script installs clang versions in the order that
    they are listed in the configuration file. When clang is installed, APT
    also installs the matching version of libomp, which removes the
    previously installed version of libomp. This means that the image ends
    up with libomp for the last version (currently 12), which is not
    necessarily the same as the default version (currently 11).
    
    As a result, even though libomp is installed, `clang -fopenmp` doesn't
    work out of the box because the installed version of libomp does not
    match the default clang binary.
    
    Fix this by installing the default version last.
    osandov committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    6f03ad5 View commit details
    Browse the repository at this point in the history