text-generation-inference icon indicating copy to clipboard operation
text-generation-inference copied to clipboard

BUILD_EXTENSIONS=False make install error!!!

Open tangliangwu opened this issue 1 year ago • 2 comments

System Info

none

Information

  • [ ] Docker
  • [ ] The CLI directly

Tasks

  • [ ] An officially supported command
  • [ ] My own modifications

Reproduction

none

Expected behavior

"-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs" = note: /usr/bin/ld: /home/spfx/tgi/text-generation-inference-3.0.0/target/release/deps/libopenssl-aafd127b1af2d7b3.rlib(openssl-aafd127b1af2d7b3.openssl.50414e331a930e91-cgu.00.rcgu.o): in function openssl::ssl::SslRef::peer_certificate': openssl.50414e331a930e91-cgu.00:(.text._ZN7openssl3ssl6SslRef16peer_certificate17hb6d9c5bb0094007eE+0x3): undefined reference to SSL_get_peer_certificate' collect2: error: ld returned 1 exit status

= note: some extern functions couldn't be found; some native libraries may need to be installed or have their path specified = note: use the -l flag to specify native libraries to link = note: use the cargo:rustc-link-lib directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)

error: could not compile text-generation-router-v3 (bin "text-generation-router") due to 1 previous error error: failed to compile text-generation-router-v3 v3.0.0 (/home/spfx/tgi/text-generation-inference-3.0.0/backends/v3), intermediate artifacts can be found at /home/spfx/tgi/text-generation-inference-3.0.0/target. To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path. make: *** [Makefile:8: install-router] Error 101

tangliangwu avatar Dec 11 '24 03:12 tangliangwu

We encounter this error too! looking forward to an official reply.

DragonFive avatar Dec 16 '24 12:12 DragonFive

I get the same error when doing BUILD_EXTENSIONS=True make install. It also says error: linking with `cc` failed: exit status: 1 for me. My gcc is 10.3 and openssl is 3.4

vdyma avatar Feb 03 '25 11:02 vdyma