Old CPU supports till AVX, problem with build camera drivers #15239
Labels
Apollo 9.0
Module: Build
Indicates build related issues
Module: Driver
Indicates driver module related issues
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
apollo.sh config
if onmaster
branch:Steps to reproduce the issue:
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
The text was updated successfully, but these errors were encountered: