You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Failed to build triton server on an aarch64 device with error:
/data/user/triton/server-2.15.0/build/server/../../src/core/constants.h:88:11: error: ‘size_t’ does not name a type
constexpr size_t STRING_CORRELATION_ID_MAX_LENGTH_BYTES = 128;
^~~~~~
[Kernel] Linux linaro 4.9.38-v6.3.0-00428-gcce7bea #2 SMP Mon Sep 28 06:14:07 CST 2020 aarch64 GNU/Linux
[OS] Distributor ID: Debian
Description: Debian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch
[version] gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
g++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
GNU Make 4.1 Built for aarch64-unknown-linux-gnu
cmake version 3.21.4
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- RapidJSON found. Headers: /usr/local/include
-- RapidJSON found. Headers: /usr/local/include
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Protobuf: /data/user/triton/server-2.15.0/citritonbuild/tritonserver/build/third-party/protobuf/bin/protoc-3.8.0.0 (found version "3.8.0.0")
-- Using protobuf 3.8.0.0
-- Found Boost: /usr/include (found version "1.62.0")
-- Using Boost 1.62.0
-- Using libevent 2.1.8
-- Using protobuf 3.8.0.0
-- Using libevhtp 1.2.18
-- Using tracing
-- Configuring done
-- Generating done
-- Build files have been written to: /data/user/triton/server-2.15.0/citritonbuild/tritonserver/build/server
I check the boost version in NGC docker which is 1.70.
With built boost dev libs(version 1.70) from source (1.65+ should be OK), building of triton succeed at the end.
Summary:
With lower version of gcc/g++ (e.g. 6.3.0), add #include <stddef.h> at the beginning of src/core/constants.h.
Building on aarch platforms with limited memory, you should add swap space to 2GB.
Make sure cmake Version>=3.21, otherwise build it from source.
If the RapidJson Lib in apt sources is too old, build it from source or download and install aarch pre-built files.
Make sure version of boost libs >=1.65, otherwise build it from source.
Description
Failed to build triton server on an aarch64 device with error:
/data/user/triton/server-2.15.0/build/server/../../src/core/constants.h:88:11: error: ‘size_t’ does not name a type
constexpr size_t STRING_CORRELATION_ID_MAX_LENGTH_BYTES = 128;
^~~~~~
[Kernel]
Linux linaro 4.9.38-v6.3.0-00428-gcce7bea #2 SMP Mon Sep 28 06:14:07 CST 2020 aarch64 GNU/Linux
[OS]
Distributor ID: Debian
Description: Debian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch
[version]
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
g++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
GNU Make 4.1 Built for aarch64-unknown-linux-gnu
cmake version 3.21.4
[g++/c++环境]
Triton Information
2.15.0 & 2.14.0
Are you using the Triton container or did you build it yourself?
build from source with no container
To Reproduce
./build.py --build-type=Debug --install-dir=/data/user/triton/server-2.15.0/install --cmake-dir=/data/user/triton/server-2.15.0/build --build-dir=/data/user/triton/server-2.15.0/citritonbuild --no-container-build --enable-logging --enable-stats --enable-tracing --endpoint=http --repo-tag=common:r21.10 --repo-tag=core:r21.10 --repo-tag=backend:r21.10 --backend=ensemble --backend=identity
Expected behavior
Build success.
The text was updated successfully, but these errors were encountered: