Skip to content

[ARMPL] Fix ARM PL installation by properly injecting the S3 URL from where gcc dependencies must be downloaded from. #2933

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

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -12,6 +12,10 @@ This file is used to list changes made in each version of the AWS ParallelCluste
**CHANGES**
- Ubuntu 20.04 is no longer supported.

**BUG FIXES**
- Fix a bug in the installation of ARM Performance Library that was causing the download of GCC dependencies from
gcc website rather than the ParallelCluster public bucket.

3.13.0
------
**ENHANCEMENTS**
Original file line number Diff line number Diff line change
@@ -119,14 +119,16 @@
group 'root'
cwd new_resource.sources_dir
code <<-GCC
set -e
set -ex

# Remove dir if it exists. This happens in case of retries.
rm -rf gcc-#{gcc_version}
tar -xf #{gcc_tarball}
cd gcc-#{gcc_version}
# Patch the download_prerequisites script to download over https and not ftp. This works better in China regions.
sed -i "s#ftp://gcc\.gnu\.org/pub/gcc/infrastructure##{node['cluster']['artifacts_s3_url']}/dependencies/gcc/prerequisites#g" ./contrib/download_prerequisites
# Patch the download_prerequisites script to download GCC dependencies from our public bucket.
# This is required to support build image in isolated environments, also HTTPS works better than FTP in China regions.
sed -i "s#\\(ftp\\|http\\|https\\)://gcc\.gnu\.org/pub/gcc/infrastructure##{node['cluster']['artifacts_s3_url']}/dependencies/gcc/prerequisites#g" ./contrib/download_prerequisites
cat ./contrib/download_prerequisites | grep 'base_url'
./contrib/download_prerequisites
mkdir build && cd build
../configure --prefix=/opt/arm/armpl/gcc/#{gcc_version} --disable-bootstrap --enable-checking=release --enable-languages=c,c++,fortran --disable-multilib