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

gfortran in Ubuntu images broken because of added -gdwarf-5 flag #6274

Closed
2 of 10 tasks
rgommers opened this issue Sep 20, 2022 · 5 comments
Closed
2 of 10 tasks

gfortran in Ubuntu images broken because of added -gdwarf-5 flag #6274

rgommers opened this issue Sep 20, 2022 · 5 comments
Assignees
Labels
awaiting-deployment Code complete; awaiting deployment and/or deployment in progress bug report investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu

Comments

@rgommers
Copy link

Description

Today all Ubuntu jobs in the SciPy CI on Azure DevOps started breaking because gfortran is no longer able to compile anything. The way this shows up is:

as: unrecognized option '--gdwarf-5'
/home/linuxbrew/.linuxbrew/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC

We are not installing Linuxbrew explicitly, nor are adding a -gdwarf-5 flag. This is likely to be a mixup in GCC specs caused by gh-6258.

See scipy/scipy#17058 for more details on the SciPy build failures in CI.

Platforms affected

  • Azure DevOps
  • GitHub Actions

Runner images affected

  • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 10.15
  • macOS 11
  • macOS 12
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

I'll note that the Ubuntu 22.04 image should also be affected, however we don't have any CI jobs using that image so I can't be sure that it is affected.

Images affected:

Image: ubuntu-20.04
Version: 20220919.1
Image: ubuntu-18.04
Version: 20220919.2

Is it regression?

Yes. The problem started about 6 hours ago. The previous image was 20220905.1, that worked fine.

Expected behavior

gfortran should not be passed a flag -gdwarf-5, and compiling Fortran code with gfortran should work.

Actual behavior

See issue description.

Repro steps

Here is a CI job that fails: https://github.com/scipy/scipy/blob/main/azure-pipelines.yml#L58.

Compiling any Fortran code with gfortran -g should reproduce the issue.

@al-cheb
Copy link
Contributor

al-cheb commented Sep 20, 2022

Hey @rgommers.
We will take a look at it.

@al-cheb al-cheb added OS: Ubuntu investigate Collect additional information, like space on disk, other tool incompatibilities etc. and removed needs triage labels Sep 20, 2022
@dawidd6
Copy link

dawidd6 commented Sep 20, 2022

Ubuntu 22.04 should not be affected as Homebrew does not need to install newer gcc there.

@mikhailkoliada mikhailkoliada added the awaiting-deployment Code complete; awaiting deployment and/or deployment in progress label Sep 21, 2022
@mikhailkoliada
Copy link
Contributor

gfortran symlink removed, changes will be released this week.

@rgommers
Copy link
Author

Thanks @mikhailkoliada! It looks like in the meantime the default image got reverted to an older build, so our CI is working again.

@mikhailkoliada
Copy link
Contributor

homebrew has been removed from $PATH so it will not affect you anymore (though we still remove gfortran symlink too, so if you add homebrew back to PATH it should work too).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-deployment Code complete; awaiting deployment and/or deployment in progress bug report investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu
Projects
None yet
Development

No branches or pull requests

4 participants