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] Clang, GCC and Gfortran versions less than 9.x will be removed from images on March, 29 #2950

Closed
3 of 9 tasks
MaksimZhukov opened this issue Mar 16, 2021 · 7 comments
Assignees
Labels
Announcement awaiting-deployment Code complete; awaiting deployment and/or deployment in progress OS: Ubuntu

Comments

@MaksimZhukov
Copy link
Contributor

MaksimZhukov commented Mar 16, 2021

Breaking changes
Clang, GCC and Gfortran versions less than 9.x will be removed from Ubuntu images

Target date
Image deployment will start March, 29 and will take 3-4 days.

The motivation for the changes
We are going to deprecate these versions of the listed tools due to lack of free space on Ubuntu images

Possible impact
If your project depends on Clang, GCC or Gfortran versions that are less than 9.x — build will be broken.

Virtual environments affected

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.13
  • macOS 10.14
  • macOS 10.15
  • macOS 11.0
  • Windows Server 2016 R2
  • Windows Server 2019

Mitigation ways
If you need to continue using these versions in your build, please consider the following ways to install it in runtime:

  1. Clang
sudo apt-get update
sudo apt-get install -y "clang-<version>" "lldb-<version>" "lld-<version>" "clang-format-<version>"

# For example, use this command to install clang 8
sudo apt-get install -y "clang-8" "lldb-8" "lld-8" "clang-format-8"
  1. GCC
sudo apt-get update
sudo apt-get install g++-<version> -y

# For example, use this command to install gcc 8
sudo apt-get install g++-8 -y
  1. Gfortran
sudo apt-get update
sudo apt-get install gfortran-<version> -y

# For example, use this command to install gfortran 8
sudo apt-get install gfortran-8 -y
@vadi2
Copy link

vadi2 commented Mar 17, 2021

apt-get install <version> -y - this doesn't seem valid. Do you mean apt-get install gcc-<version> -y ?

@MaksimZhukov
Copy link
Contributor Author

@vadi2, thanks for the note! I have updated the examples

@miketimofeev miketimofeev self-assigned this Mar 25, 2021
@miketimofeev miketimofeev added the awaiting-deployment Code complete; awaiting deployment and/or deployment in progress label Mar 26, 2021
adam4813 added a commit to trillek-team/tec that referenced this issue Apr 1, 2021
svenklemm added a commit to svenklemm/timescaledb that referenced this issue Apr 1, 2021
clang-format-8 was removed from the Ubuntu image so we have to
install it explicitly for the code formatting check.

actions/runner-images#2950
svenklemm added a commit to timescale/timescaledb that referenced this issue Apr 1, 2021
clang-format-8 was removed from the Ubuntu image so we have to
install it explicitly for the code formatting check.

actions/runner-images#2950
bmario added a commit to tud-zih-energy/lo2s that referenced this issue Apr 1, 2021
halfflat pushed a commit to arbor-sim/arbor that referenced this issue Apr 1, 2021
* Install gcc-8 and clang-8 in GitHub Actions Ubuntu image, as these had been removed in an update 29.03.2021. See actions/runner-images#2950
@miketimofeev
Copy link
Contributor

The new images were deployed!

@derekbruening
Copy link

This change seems to have broken 32-bit building. We install g++-multilib and it is suddenly failing, starting ~3 hours ago, with build errors where it finds the wrong libraries, which seems like a toolchain installation problem:

https://github.com/DynamoRIO/dynamorio/pull/4829/checks?check_run_id=2247626216

2021-04-01T16:07:58.4961762Z [  2%] Linking C executable bin/linux.infinite
2021-04-01T16:07:58.4962874Z /usr/lib/x86_64-linux-gnu/libdl.so: error adding symbols: File in wrong format
2021-04-01T16:07:58.4964490Z suite/tests/CMakeFiles/linux.infinite.dir/build.make:98: recipe for target 'suite/tests/bin/linux.infinite' failed
2021-04-01T16:07:58.4966284Z CMakeFiles/Makefile2:7501: recipe for target 'suite/tests/CMakeFiles/linux.infinite.dir/all' failed
2021-04-01T16:07:58.4967132Z collect2: error: ld returned 1 exit status

2021-04-01T16:07:58.4971965Z [  2%] Linking C executable bin/client.mbr_instrumentation_segment
2021-04-01T16:07:58.4973167Z /usr/lib/x86_64-linux-gnu/libdl.so: error adding symbols: File in wrong format
2021-04-01T16:07:58.4974711Z suite/tests/CMakeFiles/client.mbr_instrumentation_segment.dir/build.make:98: recipe for target 'suite/tests/bin/client.mbr_instrumentation_segment' failed

2021-04-01T16:09:28.5436729Z [ 58%] Linking CXX executable ../bin32/prefetch_analyzer_launcher
2021-04-01T16:09:28.5438665Z /usr/lib/x86_64-linux-gnu/libz.so: error adding symbols: File in wrong format
2021-04-01T16:09:28.5440235Z clients/drcachesim/CMakeFiles/prefetch_analyzer_launcher.dir/build.make:120: recipe for target 'clients/bin32/prefetch_analyzer_launcher' failed
2021-04-01T16:09:28.5441277Z collect2: error: ld returned 1 exit status

@miketimofeev
Copy link
Contributor

@derekbruening looks like it's not related to the deprecation. I've tried to change CMake version to 3.19.7 using the following steps and the run passed:

    - name: Setup cmake
      uses: jwlawson/actions-setup-cmake@v1.8
      with:
        cmake-version: '3.19.7'

Related issue #3078

@derekbruening
Copy link

@derekbruening looks like it's not related to the deprecation. I've tried to change CMake version to 3.19.7 using the following steps and the run passed:

Thank you, @miketimofeev! That indeed seems to fix it, so it does seem to be cmake 3.20.

svenklemm added a commit to svenklemm/timescaledb that referenced this issue Apr 4, 2021
clang-8 is no longer installed by default in the ubuntu images so
we have to explicitly install it for any actions that require it.

actions/runner-images#2950
svenklemm added a commit to svenklemm/timescaledb that referenced this issue Apr 5, 2021
clang-8 is no longer installed by default in the ubuntu images so
we have to explicitly install it for any actions that require it.

actions/runner-images#2950
svenklemm added a commit to timescale/timescaledb that referenced this issue Apr 5, 2021
clang-8 is no longer installed by default in the ubuntu images so
we have to explicitly install it for any actions that require it.

actions/runner-images#2950
njzjz added a commit to amcadmus/deepmd-kit that referenced this issue Apr 5, 2021
bjorn added a commit to mapeditor/tiled that referenced this issue Apr 6, 2021
The image no longer includes GCC versions 7 and 8. Just use version 9
instead.

See actions/runner-images#2950.
@madmongo1
Copy link

Most unwelcome. It cost a day to fix my CI when this little bomb landed.

hriener added a commit to lsils/bill that referenced this issue Apr 7, 2021
* remove g++-7, g++-8, and clang++-8 from Ubuntu CI.
(see actions/runner-images#2950)

* update coverage CI.
EwoutH added a commit to EwoutH/brunsli that referenced this issue Apr 7, 2021
 - Removes the GCC 7 and GCC 8 build jobs on Ubuntu. They have been removed from the images (see actions/runner-images#2950).
- Adds Clang 10 and Clang 11 build jobs
- Disable fail-fast in the build matrix, no builds will be cancelled on failure
RobertPincus added a commit to earth-system-radiation/rte-rrtmgp that referenced this issue Apr 7, 2021
PerretB added a commit to PerretB/ImageProcessingLab that referenced this issue Apr 8, 2021
ajelinski added a commit to hdl/conda-eda that referenced this issue Apr 9, 2021
GitHub Actions virtual environments doesn't have gcc-8 preinstalled
anymore: actions/runner-images#2950
tueda added a commit to tueda/python-grace that referenced this issue Apr 22, 2021
fanghuaqi added a commit to riscv-mcu/riscv-gnu-toolchain that referenced this issue May 11, 2021
gzq942560379 pushed a commit to HPC-AI-Team/deepmd-kit that referenced this issue Sep 1, 2021
gzq942560379 pushed a commit to HPC-AI-Team/deepmd-kit that referenced this issue Sep 1, 2021
happyCoder92 pushed a commit to google/sandboxed-api that referenced this issue May 4, 2022
This changes the workflow definition so that we always try to install
compiler toolchains that we need.

See actions/runner-images#2950 for more
context.

Drive-by:
- Mini fix to enable compilation under Clang 6.0

Signed-off-by: Christian Blichmann <cblichmann@google.com>
runejuhl added a commit to runejuhl/pgp-packet-library that referenced this issue Jul 7, 2022
runejuhl added a commit to runejuhl/pgp-packet-library that referenced this issue Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Announcement awaiting-deployment Code complete; awaiting deployment and/or deployment in progress OS: Ubuntu
Projects
None yet
Development

No branches or pull requests

5 participants