Skip to content
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

CPU build fails with wget: invalid option -- 'f' #6564

Closed
zchenyu opened this issue Nov 10, 2023 · 2 comments
Closed

CPU build fails with wget: invalid option -- 'f' #6564

zchenyu opened this issue Nov 10, 2023 · 2 comments

Comments

@zchenyu
Copy link

zchenyu commented Nov 10, 2023

Description
Building a container image for CPU from source fails. Following the instructions here: https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/customization_guide/build.html#cpu-only-build

To Reproduce

git clone https://github.com/triton-inference-server/server.git
cd server/
./build.py -v

Error message:

43.05 wget: invalid option -- 'f'
43.05 Usage: wget [OPTION]... [URL]...
43.05 
43.05 Try `wget --help' for more options.
------
Dockerfile.buildbase:22
--------------------
  20 |     # libxml2-dev is needed for Azure Storage
  21 |     # scons is needed for armnn_tflite backend build dep
  22 | >>> RUN apt-get update &&     apt-get install -y --no-install-recommends             ca-certificates             autoconf             automake             build-essential             git             gperf             libre2-dev             libssl-dev             libtool             libcurl4-openssl-dev             libb64-dev             libgoogle-perftools-dev             patchelf             python3-dev             python3-pip             python3-setuptools             rapidjson-dev             scons             software-properties-common             pkg-config             unzip             wget             zlib1g-dev             libarchive-dev             libxml2-dev             libnuma-dev &&             wget     rm -rf /var/lib/apt/lists/*
  23 |     
  24 |     RUN pip3 install --upgrade pip &&     pip3 install --upgrade wheel setuptools docker
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update &&     apt-get install -y --no-install-recommends             ca-certificates             autoconf             automake             build-essential             git             gperf             libre2-dev             libssl-dev             libtool             libcurl4-openssl-dev             libb64-dev             libgoogle-perftools-dev             patchelf             python3-dev             python3-pip             python3-setuptools             rapidjson-dev             scons             software-properties-common             pkg-config             unzip             wget             zlib1g-dev             libarchive-dev             libxml2-dev             libnuma-dev &&             wget     rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 2
error: build failed
@zchenyu
Copy link
Author

zchenyu commented Nov 10, 2023

Seems like the bug is here:

server/build.py

Lines 1026 to 1027 in 53685d3

libnuma-dev && \
wget \

@zchenyu
Copy link
Author

zchenyu commented Nov 10, 2023

Fixed in #6557

@zchenyu zchenyu closed this as completed Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant