Skip to content

Commit 5c4c8f2

Browse files
committed
[ARMPL] Fix a bug in the installation of ARM Performance Library to cover both gcc 9.3 and gcc 11.3.
1 parent b8b097e commit 5c4c8f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cookbooks/aws-parallelcluster-platform/resources/arm_pl/partial/_arm_pl_common.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@
127127
cd gcc-#{gcc_version}
128128
# Patch the download_prerequisites script to download GCC dependencies from our public bucket.
129129
# This is required to support build image in isolated environments.
130-
sed -i "s#http://gcc\.gnu\.org/pub/gcc/infrastructure##{node['cluster']['artifacts_s3_url']}/dependencies/gcc/prerequisites#g" ./contrib/download_prerequisites
130+
# Note: gcc 9.3 uses ftp, whereas gcc 11.3 uses http.
131+
sed -i "s#\\(ftp\\|http\\)://gcc\.gnu\.org/pub/gcc/infrastructure##{node['cluster']['artifacts_s3_url']}/dependencies/gcc/prerequisites#g" ./contrib/download_prerequisites
131132
./contrib/download_prerequisites
132133
mkdir build && cd build
133134
../configure --prefix=/opt/arm/armpl/gcc/#{gcc_version} --disable-bootstrap --enable-checking=release --enable-languages=c,c++,fortran --disable-multilib

0 commit comments

Comments
 (0)