-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] Static (or mostly static) build instructions (currently build with only libboost_filesystem.a
fails)
#6745
Comments
@rmccorm4 any ideas how to fix this issue? Also, we recently upgraded the Triton server CMake files to work with C++17 so we may remove this dependency in the near future. |
Hi @vadimkantorov, I'm not sure off the top of my head how to fix this without modifying the source - it may require some tweaks to the CMakes or build.py to get it to work. That being said, as Iman mentioned - we're looking to remove this dependency in the near future, so hopefully these tweaks won't be needed. |
Btw, maybe still worth adding some notes about getting a fully static build or a build script/github actions pipeline like mine above? |
@rmccorm4 I just tried building 24.05, boost_filesystem is indeed gone, but this sequence still builds and requires a Is it possible to do this at all (given that we'd still want to have a Python backend - so at least one I propose that this be discussed somewhere as having simple build instructions not requiring docker is useful for simplicity of experimentation on CPU-only machines. I also wonder if the new boost is strictly required or 1.73 from ubuntu 22.04 would also do fine? Thanks :) # on ubuntu-22.04 on GitHub Actions
sudo add-apt-repository -y ppa:mhier/libboost-latest && sudo apt-get update && sudo apt-get install -y git build-essential rapidjson-dev libssl-dev libre2-dev libb64-dev libarchive-dev libnuma-dev libboost1.81-dev
git clone https://github.com/triton-inference-server/server --branch r24.05 --single-branch --depth 1
cd server && python ./build.py -v --no-container-build --enable-logging --enable-stats --enable-tracing --build-dir="$PWD/build" --backend python --backend=ensemble --extra-core-cmake-arg=TRITON_ENABLE_GRPC=OFF --extra-core-cmake-arg=TRITON_ENABLE_HTTP=ON --extra-core-cmake-arg=TRITON_ENABLE_ENSEMBLE=ON
|
Uncommenting
sudo rm /lib/*/libboost_filesystem.so*
makes the build fail, but without any specific error message (libboost_filesystem1.81.a
is indeed existing).Starting with
r23.12
,tritonserver
started to requirelibboost_filesystem1.81.so
, not just in build time, but also in runtimeIt would be nice to have instructions on how to get a static (or mostly static) build to avoid the need for a very recent libboost. I've been using the following GitHub Actions script to obtain a built
tritonserver
binary for reuse on end cpu-only system for testing some python-backend models.The text was updated successfully, but these errors were encountered: