-
Notifications
You must be signed in to change notification settings - Fork 87
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
Add ability to choose ubuntu version for llvm upstream repository #380
Comments
Tracing through the linked recipe script, I think I understand the issue. Here's a short reproducer:
Running this recipe through The logic to set the Linux distribution type and version is in In the reproducer, if you exchange the first two lines, you get the expected focal repo. I recommend moving the call to the baseimage primitive ( |
Thanks for the tip, I'll see that we rework our script then! |
I did rework the GROMACS script, but Sam's advice broke a cross-stage dependency we have. I found nothing more attractive to do than making a dummy stage that adds |
There still seems to be an issue, even when using the correct order of includes. The script adds |
If I'm following GROMACS script properly, I think the distro LLVM and upstream LLVM cases need to be separated. You're setting An alternative to the dummy stage approach is to use the |
Thanks, those were very helpful suggestions. We're trying them out at https://gitlab.com/gromacs/gromacs/-/merge_requests/1764/diffs#14c7f142b515dba43cbfed3d95fe0b785b000384 |
I think logic like |
Closing. Please reopen if the issue persists. |
We resolved our issue, thanks! |
Hello,
I'm trying to add the upstream repository for llvm to the GROMACS docker image build (https://github.com/gromacs/gromacs/blob/master/admin/containers/scripted_gmx_docker_builds.py), but I'm running into issues with hpccm adding the Ubuntu Xenial repository by default for the upstream.
Changes to the python script to fetch the upstream
Log from building:
As you can see, instead of the current Ubuntu version 20.04 (Focal), the old Xenial release is picked up, and thus fails later to install clang-12.
Can this be changed in the config to pick up a different version, or to change the default?
Cheers
Paul
The text was updated successfully, but these errors were encountered: