Skip to content

Add CI jobs for more recent versions of flang - #3069

Draft
joewallwork wants to merge 6 commits into
mainfrom
3067_fortran-flang-ci-versions
Draft

Add CI jobs for more recent versions of flang#3069
joewallwork wants to merge 6 commits into
mainfrom
3067_fortran-flang-ci-versions

Conversation

@joewallwork

Copy link
Copy Markdown
Collaborator

Closes #3067.

@joewallwork joewallwork self-assigned this Aug 4, 2026
@joewallwork joewallwork added CI fortran Related to Enzyme's Fortran bindings labels Aug 4, 2026
Copilot AI requested a review from vchuravy August 4, 2026 18:35
@joewallwork
joewallwork force-pushed the 3067_fortran-flang-ci-versions branch from 11346e5 to 0ec9f3b Compare August 11, 2026 12:41
@joewallwork

Copy link
Copy Markdown
Collaborator Author

@copilot Fix the 'The following signatures couldn't be verified because the public key is not available' errors in the Fortran CI jobs. It looks like we need to import the appropriate public keys.

Co-authored-by: joewallwork <22053413+joewallwork@users.noreply.github.com>

Copilot AI commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

@copilot Fix the 'The following signatures couldn't be verified because the public key is not available' errors in the Fortran CI jobs. It looks like we need to import the appropriate public keys.

Fixed in commit 9c71b9a. I updated the Fortran workflow to import the LLVM and Intel repository keys into /etc/apt/trusted.gpg.d, which resolves the missing public key signature verification errors during apt-get update.

@joewallwork

Copy link
Copy Markdown
Collaborator Author

@copilot Fix pip upgrade in the Fortran Flang CI. This seems to be an issue running on Ubuntu 26.04 because the IFX workflow (which runs on Ubuntu 22.04) seems fine.

Co-authored-by: joewallwork <22053413+joewallwork@users.noreply.github.com>

Copilot AI commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

@copilot Fix pip upgrade in the Fortran Flang CI. This seems to be an issue running on Ubuntu 26.04 because the IFX workflow (which runs on Ubuntu 22.04) seems fine.

Fixed in commit b389686. I removed the pip self-upgrade in the flang (Ubuntu 26.04) setup step and now only install lit, which avoids the Debian-managed pip uninstall error.

@joewallwork

Copy link
Copy Markdown
Collaborator Author

Okay so this lines up with the errors I'd reported on #2968 - it looks like Flang 23 is struggling to access the intrinsic iso_c_binding module.

@joewallwork

Copy link
Copy Markdown
Collaborator Author

Looking at a local (LLVM 24) build of LLVM/Flang I have lying around, I see that the missing module can be found at

build/lib/clang/24/finclude/flang/x86_64-unknown-linux-gnu/iso_c_binding.mod

@joewallwork

Copy link
Copy Markdown
Collaborator Author

Looking at a local (LLVM 24) build of LLVM/Flang I have lying around, I see that the missing module can be found at

build/lib/clang/24/finclude/flang/x86_64-unknown-linux-gnu/iso_c_binding.mod

With that Flang, I can compile the following test program fine

program test
  use, intrinsic :: iso_c_binding, only: c_int
  implicit none
end program test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI fortran Related to Enzyme's Fortran bindings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CI jobs for more recent versions of flang

2 participants