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

trtexec_vendor build fail #1893

Closed
3 tasks done
shmpwk opened this issue Sep 16, 2022 · 1 comment · Fixed by #1896
Closed
3 tasks done

trtexec_vendor build fail #1893

shmpwk opened this issue Sep 16, 2022 · 1 comment · Fixed by #1896
Assignees
Labels
type:bug Software flaws or errors.

Comments

@shmpwk
Copy link
Contributor

shmpwk commented Sep 16, 2022

Checklist

  • I've read the contribution guidelines.
  • I've searched other issues and no duplicate issues were found.
  • I'm convinced that this is not my fault but a bug.

Description

trtexex_vendor build failes because of the mismatch tensorrt version for #1821 .

But when I add the code for version adaptation

  if(${TENSORRT_VERSION} VERSION_EQUAL 8.2.2)
    set(TENSORRT_VERSION 8.2.1)
  endif()

in

if(${TENSORRT_VERSION} VERSION_EQUAL 8.4.2)
set(TENSORRT_VERSION 8.4.1)
endif()
if(${TENSORRT_VERSION} VERSION_EQUAL 8.2.4)
set(TENSORRT_VERSION 8.2.1)
endif()

build success.

I wonder other version could fail to build.
Do you have any ideas? or Can I just add this code in CMakeLists.txt?

Expected behavior

build suceess

Actual behavior

colcon build fail

--- stderr: trtexec_vendor                                                                                   
[ 11%] Performing download step (git clone) for 'tensorrt-populate'
Cloning into 'tensorrt-src'...
fatal: invalid reference: 8.2.2
CMake Error at tensorrt-subbuild/tensorrt-populate-prefix/tmp/tensorrt-populate-gitclone.cmake:40 (message):
  Failed to checkout tag: '8.2.2'


make[2]: *** [CMakeFiles/tensorrt-populate.dir/build.make:92: tensorrt-populate-prefix/src/tensorrt-populate-stamp/tensorrt-populate-download] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/tensorrt-populate.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

CMake Error at /usr/share/cmake-3.16/Modules/FetchContent.cmake:915 (message):
  Build step for tensorrt failed: 2
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FetchContent.cmake:1006 (__FetchContent_directPopulate)
  CMakeLists.txt:41 (fetchcontent_populate)


---
Failed   <<< trtexec_vendor [7.48s, exited with code 1]

Steps to reproduce

build trtexec_vendor

Versions

No response

Possible causes

No response

Additional context

No response

@shmpwk shmpwk changed the title trtexec build fail trtexec_vendor build fail Sep 16, 2022
@shmpwk shmpwk added the type:bug Software flaws or errors. label Sep 16, 2022
@yukke42 yukke42 linked a pull request Sep 16, 2022 that will close this issue
4 tasks
@shmpwk
Copy link
Contributor Author

shmpwk commented Sep 16, 2022

Close by #1896

@shmpwk shmpwk closed this as completed Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Software flaws or errors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants