From 8e67b9518d2e27ec68184fa558ed943d3e8d0ca1 Mon Sep 17 00:00:00 2001 From: Kevin Watters Date: Sat, 11 May 2019 12:44:11 -0400 Subject: [PATCH 1/3] adding linux-arm64 as a platform in the openblas build. --- openblas/cppbuild.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openblas/cppbuild.sh b/openblas/cppbuild.sh index 4209fc7a132..31c6a07d4fc 100755 --- a/openblas/cppbuild.sh +++ b/openblas/cppbuild.sh @@ -177,6 +177,13 @@ case $PLATFORM in export BINARY=32 export TARGET=ARMV6 ;; + linux-arm64) + export CC="aarch64-linux-gnu-gcc-7 -mabi=lp64" + export FC="aarch64-linux-gnu-gfortran-7" + export LDFLAGS="-Wl,-z,noexecstack" + export BINARY=64 + export TARGET=ARMV8 + ;; macosx-*) patch -Np1 < ../../../OpenBLAS-macosx.patch patch -Np1 -d ../OpenBLAS-$OPENBLAS_VERSION-nolapack/ < ../../../OpenBLAS-macosx.patch From b3979640acbf810b052ed24d7e47167ce3f18e42 Mon Sep 17 00:00:00 2001 From: Samuel Audet Date: Sun, 12 May 2019 09:43:30 +0900 Subject: [PATCH 2/3] Remove GCC version from cppbuild.sh for OpenBLAS on linux-arm64 --- openblas/cppbuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openblas/cppbuild.sh b/openblas/cppbuild.sh index 31c6a07d4fc..a5654853ea2 100755 --- a/openblas/cppbuild.sh +++ b/openblas/cppbuild.sh @@ -178,8 +178,8 @@ case $PLATFORM in export TARGET=ARMV6 ;; linux-arm64) - export CC="aarch64-linux-gnu-gcc-7 -mabi=lp64" - export FC="aarch64-linux-gnu-gfortran-7" + export CC="aarch64-linux-gnu-gcc -mabi=lp64" + export FC="aarch64-linux-gnu-gfortran" export LDFLAGS="-Wl,-z,noexecstack" export BINARY=64 export TARGET=ARMV8 From b4ae18eea71b2f9316f156f60bcbb7b3697047c8 Mon Sep 17 00:00:00 2001 From: Samuel Audet Date: Sun, 12 May 2019 09:45:07 +0900 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f3edf33411..8b755449fa4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ + * Add build for `linux-arm64` to presets for OpenBLAS ([pull #726](https://github.com/bytedeco/javacpp-presets/pull/726)) * Bundle complete binary packages of CPython itself for convenience ([issue #712](https://github.com/bytedeco/javacpp-presets/issues/712)) * Fix and refine mapping for `HoughLines`, `HoughLinesP`, and `HoughCircles` ([issue #717](https://github.com/bytedeco/javacpp-presets/issues/717)) * Add Python-enabled builds for TensorFlow via the `-python` and `-python-gpu` extensions