Skip to content

a error when build tensorrt_llm #28

Closed

Description

@zzz3bbb3
[ 98%] Built target layers_src
[ 98%] Built target common_src
[ 98%] Built target runtime_src
[ 98%] Built target kernels_src
[ 98%] Linking CXX static library libtensorrt_llm_static.a
[ 98%] Built target tensorrt_llm_static
[100%] Linking CXX shared library libtensorrt_llm.so
/usr/bin/ld:/workspace/base/TensorRT-LLM-release-0.5.0/cpp/tensorrt_llm/batch_manager/x86_64-linux-gnu/libtensorrt_llm_batch_manager_static.a: file format not recognized; treating as linker script
/usr/bin/ld:/workspace/base/TensorRT-LLM-release-0.5.0/cpp/tensorrt_llm/batch_manager/x86_64-linux-gnu/libtensorrt_llm_batch_manager_static.a:1: syntax error
collect2: error: ld returned 1 exit status
gmake[3]: *** [tensorrt_llm/CMakeFiles/tensorrt_llm.dir/build.make:714: tensorrt_llm/libtensorrt_llm.so] Error 1
gmake[2]: *** [CMakeFiles/Makefile2:677: tensorrt_llm/CMakeFiles/tensorrt_llm.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:684: tensorrt_llm/CMakeFiles/tensorrt_llm.dir/rule] Error 2
gmake: *** [Makefile:179: tensorrt_llm] Error 2

with build command

./scripts/build_wheel.py --clean --cuda_architectures "80-real" --trt_root /usr/local/tensorrt
  • libtensorrt_llm_batch_manager_static.a:1: syntax error

Activity

  1. kaiyux commented on Oct 20, 2023

    @kaiyux
    Member

    Did you execute

    git lfs install
    git lfs pull
    

    as described here: https://github.com/NVIDIA/TensorRT-LLM/blob/release/0.5.0/docs/source/installation.md#fetch-the-sources ?

    The .a files are LFS files, the issue might be that those files are not fetched properly.

  2. added
    questionFurther information is requested
    triagedIssue has been triaged by maintainers
    and removed
    questionFurther information is requested
    on Oct 20, 2023
  3. zzz3bbb3 commented on Oct 20, 2023

    @zzz3bbb3
    Author

    你执行了吗

    git lfs install
    git lfs pull
    

    如此处所述: https: //github.com/NVIDIA/TensorRT-LLM/blob/release/0.5.0/docs/source/installation.md#fetch-the-sources?

    这些.a文件是 LFS 文件,问题可能是这些文件未正确获取。

    Yes! That's right, it's work 😁

  4. jdemouth-nvidia commented on Oct 20, 2023

    @jdemouth-nvidia
    Collaborator

    Cool. I'm closing that issue. Feel free to re-open if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagedIssue has been triaged by maintainers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions