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

CI: Update toolchain to ARC 2023.09-release #154

Merged
merged 2 commits into from
Jun 3, 2024
Merged

Conversation

abrodkin
Copy link
Member

@abrodkin abrodkin commented Jan 8, 2024

Use ARC GNU Toolchain 2023.09-release for CI

Use ARC GNU Toolchain 2023.09 release for CI

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
@qwersem
Copy link

qwersem commented Jan 9, 2024

Hi @abrodkin, please check

@abrodkin
Copy link
Member Author

abrodkin commented Jan 9, 2024

@qwersem so it seems to work now, right? Could you please explain what was the problem and why it gets fixed with Ubuntu version update? Why did it use to work before with an older version of the host OS image?

@qwersem
Copy link

qwersem commented Jan 9, 2024

@abrodkin yes, linux is built inside ubuntu 22.04. It was a dependency problem.
Here I ran the simple gcc test inside a Ubuntu_20.04 container and got the next error:

# ./${toolchain_prefix}-gcc -v
./arc-elf32-gcc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./arc-elf32-gcc)
./arc-elf32-gcc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./arc-elf32-gcc)
./arc-elf32-gcc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./arc-elf32-gcc)

@abrodkin
Copy link
Member Author

Ah, OK I see now. So sometime in 2022 ubuntu-latest image got switched from 20.04 to 22.04, see actions/runner-images#6399. And so unexpectedly for us https://github.com/foss-for-synopsys-dwc-arc-processors/arc-gnu-toolchain/actions started to use newer Ubuntu, because indeed we use ubuntu-latest in both the workflows, see:

We didn't notice that because the last build from there we use here was made a year ago and apparently back in the day ubuntu-latest was till 20.04. So the mystery is now solved.

And I guess now we need to align build environments here and in https://github.com/foss-for-synopsys-dwc-arc-processors/arc-gnu-toolchain with one of the solutions:

  • Standardize on ubuntu-latest in both workflows
  • Use explicit version like 22.04

@qwersem @yaroslavsadin what's your take on that? Anyway, whatever you decide, please submit a separate PR with the fix where necessary and then I'll rebase my branch on top of your change.

@qwersem qwersem merged commit 613326e into arc64 Jun 3, 2024
21 checks passed
@qwersem qwersem deleted the abrodkin-ci-2023.09 branch June 3, 2024 14:40
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