From d5110630986c89ee88560b2204b7c157533a979e Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 10 Jul 2021 18:52:44 +0200 Subject: [PATCH 01/14] Move Alpine Linux build job from Travis to Azure --- azure-pipelines.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4b6b2b0e6..8bc27eb08 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -147,3 +147,15 @@ jobs: export ANDROID_NDK_HOME=/usr/local/share/android-ndk make TARGET=ARMV7 ONLY_CBLAS=1 CC=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi21-clang AR=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-ar HOSTCC=gcc ARM_SOFTFP_ABI=1 -j4 +- job: ALPINE_MUSL + pool: + vmImage: 'ubuntu-16.04' + steps: + - script | + wget 'https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install/v0.9.0/alpine-chroot-install' \ + && echo 'e5dfbbdc0c4b3363b99334510976c86bfa6cb251 alpine-chroot-install' | sha1sum -c || exit 1 + alpine() { /alpine/enter-chroot -u "$USER" "$@"; } + sudo sh alpine-chroot-install -p 'build-base gfortran perl linux-headers' + alpine make DYNAMIC_ARCH=1 BINARY=64 + alpine make DYNAMIC_ARCH=1 BINARY=64 install + From 89429fdaa2a859c5a1e44fc782a20a03b7fa6540 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 10 Jul 2021 19:03:42 +0200 Subject: [PATCH 02/14] fix typo --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8bc27eb08..65bc8e680 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -149,9 +149,9 @@ jobs: - job: ALPINE_MUSL pool: - vmImage: 'ubuntu-16.04' + vmImage: 'ubuntu-latest' steps: - - script | + - script: | wget 'https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install/v0.9.0/alpine-chroot-install' \ && echo 'e5dfbbdc0c4b3363b99334510976c86bfa6cb251 alpine-chroot-install' | sha1sum -c || exit 1 alpine() { /alpine/enter-chroot -u "$USER" "$@"; } From d86290edf0edcc5f931c52dce3955348c40949f5 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 10 Jul 2021 19:52:04 +0200 Subject: [PATCH 03/14] add sudo for install in Alpine --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 65bc8e680..6a7cc73e4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -157,5 +157,5 @@ jobs: alpine() { /alpine/enter-chroot -u "$USER" "$@"; } sudo sh alpine-chroot-install -p 'build-base gfortran perl linux-headers' alpine make DYNAMIC_ARCH=1 BINARY=64 - alpine make DYNAMIC_ARCH=1 BINARY=64 install + alpine sudo make DYNAMIC_ARCH=1 BINARY=64 install From c9304199cfe6f7aa9d98b4d397e91edaf9a2929c Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 10 Jul 2021 20:12:33 +0200 Subject: [PATCH 04/14] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6a7cc73e4..cf43c0647 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -155,7 +155,7 @@ jobs: wget 'https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install/v0.9.0/alpine-chroot-install' \ && echo 'e5dfbbdc0c4b3363b99334510976c86bfa6cb251 alpine-chroot-install' | sha1sum -c || exit 1 alpine() { /alpine/enter-chroot -u "$USER" "$@"; } - sudo sh alpine-chroot-install -p 'build-base gfortran perl linux-headers' + sudo sh alpine-chroot-install -p 'build-base gfortran perl linux-headers sudo' alpine make DYNAMIC_ARCH=1 BINARY=64 alpine sudo make DYNAMIC_ARCH=1 BINARY=64 install From db57c449dc387d68b247ae0fe73bbb178a71118c Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 10 Jul 2021 20:57:21 +0200 Subject: [PATCH 05/14] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cf43c0647..47579aa2a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -157,5 +157,5 @@ jobs: alpine() { /alpine/enter-chroot -u "$USER" "$@"; } sudo sh alpine-chroot-install -p 'build-base gfortran perl linux-headers sudo' alpine make DYNAMIC_ARCH=1 BINARY=64 - alpine sudo make DYNAMIC_ARCH=1 BINARY=64 install + alpine echo ""|sudo -S make DYNAMIC_ARCH=1 BINARY=64 install From 7e09570e04dc715f98bfcbc2c9374707b29f7d94 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 10 Jul 2021 22:41:49 +0200 Subject: [PATCH 06/14] Update azure-pipelines.yml --- azure-pipelines.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 47579aa2a..261b6877f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -158,4 +158,8 @@ jobs: sudo sh alpine-chroot-install -p 'build-base gfortran perl linux-headers sudo' alpine make DYNAMIC_ARCH=1 BINARY=64 alpine echo ""|sudo -S make DYNAMIC_ARCH=1 BINARY=64 install - + alpine echo "// tests that inclusion of openblas_config.h works with musl" >test_install.c + alpine echo "#include " >>test_install.c + alpine echo "cpu_set_t* cpu_set = NULL;" >>test_install.c + alpine gcc -I/opt/OpenBLAS/include test_install.c -lopenblas -lpthread -lgfortran -o test_install + From 0266ba7cb67aa3e31dae140442bf38841207cfe4 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 10 Jul 2021 23:21:58 +0200 Subject: [PATCH 07/14] Update azure-pipelines.yml --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 261b6877f..2d7f597c1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -158,6 +158,7 @@ jobs: sudo sh alpine-chroot-install -p 'build-base gfortran perl linux-headers sudo' alpine make DYNAMIC_ARCH=1 BINARY=64 alpine echo ""|sudo -S make DYNAMIC_ARCH=1 BINARY=64 install + alpine ls -l /opt/OpenBLAS/include alpine echo "// tests that inclusion of openblas_config.h works with musl" >test_install.c alpine echo "#include " >>test_install.c alpine echo "cpu_set_t* cpu_set = NULL;" >>test_install.c From 69560ad3cec3bee4d1dbc7ceeeb9f345f3bfc46c Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 11 Jul 2021 07:25:07 +0200 Subject: [PATCH 08/14] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2d7f597c1..734c50d67 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -157,7 +157,7 @@ jobs: alpine() { /alpine/enter-chroot -u "$USER" "$@"; } sudo sh alpine-chroot-install -p 'build-base gfortran perl linux-headers sudo' alpine make DYNAMIC_ARCH=1 BINARY=64 - alpine echo ""|sudo -S make DYNAMIC_ARCH=1 BINARY=64 install + alpine (echo ""|sudo -S make DYNAMIC_ARCH=1 BINARY=64 install) alpine ls -l /opt/OpenBLAS/include alpine echo "// tests that inclusion of openblas_config.h works with musl" >test_install.c alpine echo "#include " >>test_install.c From a27a61bb9adfc0b7adc36ea1945106feb0e03ccf Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 11 Jul 2021 08:24:20 +0200 Subject: [PATCH 09/14] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 734c50d67..368f4120e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -157,7 +157,7 @@ jobs: alpine() { /alpine/enter-chroot -u "$USER" "$@"; } sudo sh alpine-chroot-install -p 'build-base gfortran perl linux-headers sudo' alpine make DYNAMIC_ARCH=1 BINARY=64 - alpine (echo ""|sudo -S make DYNAMIC_ARCH=1 BINARY=64 install) + alpine bash -c "echo ''|sudo -S make DYNAMIC_ARCH=1 BINARY=64 install" alpine ls -l /opt/OpenBLAS/include alpine echo "// tests that inclusion of openblas_config.h works with musl" >test_install.c alpine echo "#include " >>test_install.c From c47e35acee00eb195175ec926aae7aebd7fa1dc9 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 11 Jul 2021 09:38:48 +0200 Subject: [PATCH 10/14] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 368f4120e..a9bb43da4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -157,7 +157,7 @@ jobs: alpine() { /alpine/enter-chroot -u "$USER" "$@"; } sudo sh alpine-chroot-install -p 'build-base gfortran perl linux-headers sudo' alpine make DYNAMIC_ARCH=1 BINARY=64 - alpine bash -c "echo ''|sudo -S make DYNAMIC_ARCH=1 BINARY=64 install" + alpine sh -c "echo ''|sudo -S make DYNAMIC_ARCH=1 BINARY=64 install" alpine ls -l /opt/OpenBLAS/include alpine echo "// tests that inclusion of openblas_config.h works with musl" >test_install.c alpine echo "#include " >>test_install.c From 8acb6fe3a86c093f993f97d8be14a98c80d10a2c Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 11 Jul 2021 11:29:52 +0200 Subject: [PATCH 11/14] Update azure-pipelines.yml --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a9bb43da4..6b4d6fad0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -157,10 +157,10 @@ jobs: alpine() { /alpine/enter-chroot -u "$USER" "$@"; } sudo sh alpine-chroot-install -p 'build-base gfortran perl linux-headers sudo' alpine make DYNAMIC_ARCH=1 BINARY=64 - alpine sh -c "echo ''|sudo -S make DYNAMIC_ARCH=1 BINARY=64 install" - alpine ls -l /opt/OpenBLAS/include + alpine make DYNAMIC_ARCH=1 BINARY=64 PREFIX=mytestdir install" + alpine ls -l mytestdir/include alpine echo "// tests that inclusion of openblas_config.h works with musl" >test_install.c alpine echo "#include " >>test_install.c alpine echo "cpu_set_t* cpu_set = NULL;" >>test_install.c - alpine gcc -I/opt/OpenBLAS/include test_install.c -lopenblas -lpthread -lgfortran -o test_install + alpine gcc -Imytestdir/include test_install.c -lopenblas -lpthread -lgfortran -o test_install From d2693eac04c568bb7201371603ec3c46f657d1c8 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 11 Jul 2021 11:54:02 +0200 Subject: [PATCH 12/14] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6b4d6fad0..fa37e46a1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -157,7 +157,7 @@ jobs: alpine() { /alpine/enter-chroot -u "$USER" "$@"; } sudo sh alpine-chroot-install -p 'build-base gfortran perl linux-headers sudo' alpine make DYNAMIC_ARCH=1 BINARY=64 - alpine make DYNAMIC_ARCH=1 BINARY=64 PREFIX=mytestdir install" + alpine make DYNAMIC_ARCH=1 BINARY=64 PREFIX=mytestdir install alpine ls -l mytestdir/include alpine echo "// tests that inclusion of openblas_config.h works with musl" >test_install.c alpine echo "#include " >>test_install.c From b4cbfe66775063f55eea58c24446b8e8301fcf16 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 11 Jul 2021 18:08:30 +0200 Subject: [PATCH 13/14] Update azure-pipelines.yml --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fa37e46a1..0e806dc91 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -162,5 +162,5 @@ jobs: alpine echo "// tests that inclusion of openblas_config.h works with musl" >test_install.c alpine echo "#include " >>test_install.c alpine echo "cpu_set_t* cpu_set = NULL;" >>test_install.c - alpine gcc -Imytestdir/include test_install.c -lopenblas -lpthread -lgfortran -o test_install + alpine gcc -Imytestdir/include test_install.c -Lmytestdir/lib -lopenblas -lpthread -lgfortran -o test_install From 498479b13e257dcfbbc5600ad405639f378aaf70 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 11 Jul 2021 18:29:17 +0200 Subject: [PATCH 14/14] Update azure-pipelines.yml --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0e806dc91..889b920e3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -161,6 +161,7 @@ jobs: alpine ls -l mytestdir/include alpine echo "// tests that inclusion of openblas_config.h works with musl" >test_install.c alpine echo "#include " >>test_install.c - alpine echo "cpu_set_t* cpu_set = NULL;" >>test_install.c + alpine echo "int main(){" >> test_install.c + alpine echo "cpu_set_t* cpu_set = NULL;}" >>test_install.c alpine gcc -Imytestdir/include test_install.c -Lmytestdir/lib -lopenblas -lpthread -lgfortran -o test_install