-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ROCm wheels CI pipeline break by installing latest protobuf from …
…source (#9047) * install protobuf from source * fix rm command in Dockerfile * fix options on rm command * fix cd into protobuf source directory * try again * remove strip step * debug list the files * ls on /usr * more debug * more debug * adjust LD_LIBRARY_PATH * try remove protobuf before ORT build
- Loading branch information
Showing
3 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
tools/ci_build/github/linux/docker/build_scripts/install-protobuf.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
# Top-level build script called from Dockerfile | ||
|
||
# Stop at any error, show all commands | ||
set -exuo pipefail | ||
|
||
# Get script directory | ||
MY_DIR=$(dirname "${BASH_SOURCE[0]}") | ||
|
||
# Get build utilities | ||
source $MY_DIR/build_utils.sh | ||
|
||
# Install newest libtool | ||
check_var ${PROTOBUF_ROOT} | ||
check_var ${PROTOBUF_HASH} | ||
check_var ${PROTOBUF_DOWNLOAD_URL} | ||
fetch_source ${PROTOBUF_ROOT}.tar.gz ${PROTOBUF_DOWNLOAD_URL} | ||
check_sha256sum ${PROTOBUF_ROOT}.tar.gz ${PROTOBUF_HASH} | ||
tar -zxf ${PROTOBUF_ROOT}.tar.gz | ||
pushd protobuf-${PROTOBUF_VERSION} | ||
DESTDIR=/manylinux-rootfs do_standard_install | ||
popd | ||
rm -rf ${PROTOBUF_ROOT} ${PROTOBUF_ROOT}.tar.gz | ||
|
||
# Strip what we can | ||
strip_ /manylinux-rootfs | ||
|
||
# Install | ||
cp -rlf /manylinux-rootfs/* / | ||
|
||
# Remove temporary rootfs | ||
rm -rf /manylinux-rootfs | ||
|
||
hash -r | ||
protoc --version |