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

Old CPU supports till AVX, problem with build camera drivers #15239

Open
CesarLiu opened this issue Dec 20, 2023 · 0 comments
Open

Old CPU supports till AVX, problem with build camera drivers #15239

CesarLiu opened this issue Dec 20, 2023 · 0 comments
Labels
Apollo 9.0 Module: Build Indicates build related issues Module: Driver Indicates driver module related issues

Comments

@CesarLiu
Copy link

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 18.04):20.04
  • Apollo installed from (source or binary):source
  • Apollo version (3.5, 5.0, 5.5, 6.0):9.0
  • Output of apollo.sh config if on master branch:

Steps to reproduce the issue:

  • Please use bullet points and include as much details as possible:
    bash apollo.sh build_opt_nvidia

Supporting materials (screenshots, command lines, code/script snippets):

ERROR: /apollo/modules/drivers/camera/BUILD:56:18: Compiling modules/drivers/camera/util.cc failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/k8-opt/bin/modules/drivers/camera/_objs/libapollo_camera_util.so/util.pic.d ... (remaining 135 arguments skipped)
In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
from ./modules/drivers/camera/util.h:34,
from modules/drivers/camera/util.cc:17:
/usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h: In function '__m256i apollo::drivers::SaturateI16ToU8(__m256i)':
/usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:398:1: error: inlining failed in call to always_inline '__m256i _mm256_min_epi16(__m256i, __m256i)': target specific option mismatch
_mm256_min_epi16 (__m256i __A, __m256i __B)
^~~~~~~~~~~~~~~~
In file included from modules/drivers/camera/util.cc:17:0:
./modules/drivers/camera/util.h:362:68: note: called from here
return _mm256_min_epi16(K16_00FF, _mm256_max_epi16(value, K_ZERO));
^
In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/immintrin.h:43:0,
from ./modules/drivers/camera/util.h:34,
from modules/drivers/camera/util.cc:17:
/usr/lib/gcc/x86_64-linux-gnu/7/include/avx2intrin.h:356:1: error: inlining failed in call to always_inline '__m256i _mm256_max_epi16(__m256i, __m256i)': target specific option mismatch
_mm256_max_epi16 (__m256i __A, __m256i __B)
^~~~~~~~~~~~~~~~
In file included from modules/drivers/camera/util.cc:17:0:
./modules/drivers/camera/util.h:362:26: note: called from here
return _mm256_min_epi16(K16_00FF, _mm256_max_epi16(value, K_ZERO));
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

unsolved error #13422

@lykling lykling added Module: Build Indicates build related issues Apollo 9.0 Module: Driver Indicates driver module related issues labels Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apollo 9.0 Module: Build Indicates build related issues Module: Driver Indicates driver module related issues
Projects
None yet
Development

No branches or pull requests

2 participants