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

Test compilers on MacOs and Windows #53

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ArseniyKholod
Copy link
Collaborator

@ArseniyKholod ArseniyKholod commented Jun 26, 2024

#52 has an unexpected issue with compilation of openfhe-development v1.2.0 on MacOs and Windows, it seems to be a compiler issue. This PR is created only for test, whether older version of openfhe-development gets compilated with GCC v14.1 and Clang 15.0, in all successful PRs before was used older version of GCC v13.2. I want to know it the problem in new openfhe-development version or in new version of gcc

@ArseniyKholod ArseniyKholod marked this pull request as draft June 26, 2024 10:37
@ArseniyKholod
Copy link
Collaborator Author

Both windows CI using GCC 14.1 failed: https://github.com/hpsc-lab/openfhe-julia/actions/runs/9678185169/job/26701386296?pr=53

So probably problem in compiler, try to fix version of gcc

@ArseniyKholod
Copy link
Collaborator Author

ArseniyKholod commented Jun 26, 2024

Opened issue on openfhe-development openfheorg/openfhe-development#822

@sloede
Copy link
Member

sloede commented Jun 26, 2024

Great catch! Is it possible (and feasible) for you to downgrade our CI system to use an older, compatible version of the compilers on macOS/Windows, at least for the time being?

@@ -63,7 +63,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
- uses: msys2/setup-msys2@v2.22.0
Copy link
Collaborator Author

@ArseniyKholod ArseniyKholod Jun 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @sloede,
I try to downgrade setup-msys2 here to get older version of msys2, because it is not possible to choose gcc version within msys2, only by installing older version of msys2 itself. I'm not really good in CI stuff, I used msys2/[email protected], but it still uses newest version of gcc. If you have experience with downgrading GitHub Action version, am I doing it right? If you haven't, do not worry, I will find out this

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using msys2/[email protected] will only change the version of the GitHub action script, i.e., the version of https://github.com/msys2/setup-msys2. What you really want is a specific version of mingw-w64-x86_64-toolchain in line 70 below

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

older msys2/[email protected] installs older msys2 with older gcc, I recognized, that there is an update: true below, now I was able to install older version of msys with gcc 13.2, should work

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, if this only affects Windows testing, I'd be ok with accepting a failing windows test, if it only concerns the self-built version of openfhe and not the Yggdrasil-provided ones

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I right, that we are not choosing gcc version for Yggdrasil, is it done automatically?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

older msys2/[email protected] installs older msys2 with older gcc, I recognized, that there is an update: true below, now I was able to install older version of msys with gcc 13.2, should work

Wow, this is great! In that case, maybe just do not update for now, but add a TODO comment that we should fix this once OpenFHE 1.2.1 is available and hopefully fixes this issue.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I right, that we are not choosing gcc version for Yggdrasil, is it done automatically?

Yes. I think we specify a rather old version usually to ensure compatibility the greatest possible variety of GCC versions.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

older msys2/[email protected] installs older msys2 with older gcc, I recognized, that there is an update: true below, now I was able to install older version of msys with gcc 13.2, should work

Wow, this is great! In that case, maybe just do not update for now, but add a TODO comment that we should fix this once OpenFHE 1.2.1 is available and hopefully fixes this issue.

Okay! I'll do!

@sloede
Copy link
Member

sloede commented Nov 1, 2024

@ArseniyKholod Is this PR still relevant?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants