diff options
author | Christoph Haag | 2023-01-08 20:32:59 +0100 |
---|---|---|
committer | Christoph Haag | 2023-01-08 20:32:59 +0100 |
commit | f4208ddaee22493146f2cebce0a9db13eba96b52 (patch) | |
tree | 9b5c29eaff8e0714d8a09f19e0edd50d8c1713e1 | |
parent | d03e8cedc932cae144973165a8f97cc21f059613 (diff) | |
download | aur-f4208ddaee22493146f2cebce0a9db13eba96b52.tar.gz |
build with clang to avoid build issue
flatbuffer fix no longer required
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 14 insertions, 9 deletions
@@ -1,6 +1,6 @@ pkgbase = onnxruntime-git pkgdesc = cross-platform inference and training machine-learning accelerator. - pkgver = orttraining_rc2.r4438.g14365b67a0 + pkgver = orttraining_rc2.r4995.g74fe45bf09 pkgrel = 1 url = https://onnxruntime.ai/ arch = x86_64 @@ -8,8 +8,10 @@ pkgbase = onnxruntime-git makedepends = git makedepends = cmake makedepends = ninja + makedepends = clang depends = gcc-libs depends = python + depends = protobuf provides = onnxruntime conflicts = onnxruntime source = git+https://github.com/microsoft/onnxruntime.git#branch=main @@ -2,29 +2,26 @@ _pkgname=onnxruntime pkgname=onnxruntime-git -pkgver=orttraining_rc2.r4438.g14365b67a0 +pkgver=orttraining_rc2.r4995.g74fe45bf09 pkgrel=1 pkgdesc="cross-platform inference and training machine-learning accelerator." arch=('x86_64') url="https://onnxruntime.ai/" license=('MIT') -depends=('gcc-libs' 'python') -makedepends=('git' 'cmake' 'ninja') +depends=('gcc-libs' 'python' 'protobuf') +makedepends=('git' 'cmake' 'ninja' 'clang') checkdepends=() optdepends=() provides=('onnxruntime') conflicts=('onnxruntime') replaces=() options=() -# install= -# changelog= source=("git+https://github.com/microsoft/onnxruntime.git#branch=main") md5sums=('SKIP') prepare() { cd "$_pkgname" git submodule update --init --recursive - sed -i s'/-Werror //g' "$srcdir"/onnxruntime/cmake/external/flatbuffers/CMakeLists.txt } pkgver() { @@ -35,9 +32,15 @@ pkgver() { build() { cd "$_pkgname" # ./build.sh --config RelWithDebInfo --build_shared_lib --parallel - - #export PKG_CONFIG_PATH=/usr/lib/pkgconfig + # export PKG_CONFIG_PATH=/usr/lib/pkgconfig # rm -rf $srcdir/$_pkgname-build + + # Use clang to avoid build failure. Same as + # * https://github.com/pytorch/pytorch/issues/77939 + # * https://github.com/opencv/opencv/pull/22512 + export CC=clang + export CXX=clang++ + cmake -S $srcdir/$_pkgname/cmake \ -B $srcdir/$_pkgname-build \ -G Ninja \ |