-
Notifications
You must be signed in to change notification settings - Fork 791
[CI] Fix shared build on Ubuntu 24 #16595
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
Conversation
Example of a successful shared lib build on Ubuntu 24: https://github.com/intel/llvm/actions/runs/12728630025/job/35479411381?pr=16595#step:8:19 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the fix! minor comments
COPY scripts/install_build_tools.sh /install.sh | ||
RUN /install.sh | ||
|
||
# Build zstd from sources with -fPIC flag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we maybe add a link to the ubuntu bug report so we can check to remove this in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added the link to intel/llvm bug report instead: #15935
I'll likely have to open another bug report to Debian (as suggested here: https://bugs.launchpad.net/ubuntu/+source/libzstd/+bug/2086543/comments/3).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, thx
check_os | ||
|
||
# Set USE_SUDO to true or false based on your preference | ||
USE_SUDO=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we're always using sudo can we just use it directly without this var?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a slight preference towards keeping this variable because it makes it a lot easier for me to test this script internally using podman (which requires not using sudo
). I can remove this variable if you strongly feel so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah no if it has a use thats totally fine, thx
igc dev fail not related |
fixes #16502
The problem is that
zstd
installed by default on Ubuntu 24 is built without-fPIC
. This PR installszstd
on Ubuntu 24 docker container by building it from source.