ApolloAuto/apollo

Nvidia TX2 platform build error

TianchaoHuo opened this issue · 2 comments

System information

  • OS Platform and Distribution: TX2 ubuntu18.04 Jetpack 4.5.1
  • Apollo installed from (source or binary): source
  • Apollo version (3.5, 5.0, 5.5, 6.0): 6.0(master branch)

Steps to reproduce the issue:

when I run the following command:
./apollo.sh build

I got following errors, and i would like to know how to fix it? Does anyone have any ideas?

(05:54:30) ERROR: /apollo/modules/perception/common/i_lib/pc/BUILD:6:11: C++ compilation of rule '//modules/perception/common/i_lib/pc:i_ground' 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/aarch64-fastbuild/bin/modules/perception/common/i_lib/pc/_objs/i_ground/i_ground.pic.d ... (remaining 89 argument(s) skipped)
In file included from ./modules/perception/common/i_lib/pc/i_ground.h:24:0,
from modules/perception/common/i_lib/pc/i_ground.cc:16:
./modules/perception/common/i_lib/pc/i_struct_s.h: In member function 'bool apollo::perception::common::VoxelGridXY::SetS(const float*, unsigned int, unsigned int)':
./modules/perception/common/i_lib/pc/i_struct_s.h:732:3: error: '__m128i' was not declared in this scope
__m128i iv_nr_voxel_x = mm_setr_epi32(static_cast(nr_voxel_x), 0,
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:732:3: note: suggested alternative: '__f128'
__m128i iv_nr_voxel_x = mm_setr_epi32(static_cast(nr_voxel_x), 0,
^~~~~~~
__f128
./modules/perception/common/i_lib/pc/i_struct_s.h:734:11: error: expected ';' before 'iv_nr_voxel_x_m1'
__m128i iv_nr_voxel_x_m1 = mm_set1_epi32(static_cast(nr_voxel_x - 1));
^~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:735:11: error: expected ';' before 'iv_nr_voxel_y_m1'
__m128i iv_nr_voxel_y_m1 = mm_set1_epi32(static_cast(nr_voxel_y - 1));
^~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:737:3: error: '__m128' was not declared in this scope
__m128 v_width_x_rec = _mm_set_ps1(voxel_width_x_rec);
^~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:737:3: note: suggested alternative: '__f128'
__m128 v_width_x_rec = _mm_set_ps1(voxel_width_x_rec);
^~~~~~
__f128
./modules/perception/common/i_lib/pc/i_struct_s.h:738:10: error: expected ';' before 'v_width_y_rec'
__m128 v_width_y_rec = _mm_set_ps1(voxel_width_y_rec);
^~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:740:10: error: expected ';' before 'v_x_min'
__m128 v_x_min = mm_set_ps1(dim_x[0]);
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:741:10: error: expected ';' before 'v_x_max'
__m128 v_x_max = mm_set_ps1(dim_x[1]);
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:742:10: error: expected ';' before 'v_y_min'
__m128 v_y_min = mm_set_ps1(dim_y[0]);
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:743:10: error: expected ';' before 'v_y_max'
__m128 v_y_max = mm_set_ps1(dim_y[1]);
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:744:10: error: expected ';' before 'v_z_min'
__m128 v_z_min = mm_set_ps1(dim_z[0]);
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:745:10: error: expected ';' before 'v_z_max'
__m128 v_z_max = mm_set_ps1(dim_z[1]);
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:747:10: error: expected ';' before 'v_cmp_x'
__m128 v_cmp_x, v_cmp_y, v_cmp_z, v_in_roi;
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:748:3: error: 'v_in_roi' was not declared in this scope
v_in_roi = _mm_setr_ps(1.0, 1.0, 1.0, 1.0);
^~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:748:3: note: suggested alternative: 'vmin_f16'
v_in_roi = _mm_setr_ps(1.0, 1.0, 1.0, 1.0);
^~~~~~~~
vmin_f16
./modules/perception/common/i_lib/pc/i_struct_s.h:748:14: error: there are no arguments to '_mm_setr_ps' that depend on a template parameter, so a declaration of '_mm_setr_ps' must be available [-fpermissive]
v_in_roi = _mm_setr_ps(1.0, 1.0, 1.0, 1.0);
^~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:748:14: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
./modules/perception/common/i_lib/pc/i_struct_s.h:750:10: error: expected ';' before 'v_xs'
__m128 v_xs, v_ys, v_zs;
^~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:751:11: error: expected ';' before 'iv_indices'
__m128i iv_indices, iv_x_indices, iv_y_indices, iv_v_indices_02,
^~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:775:5: error: 'v_xs' was not declared in this scope
v_xs = _mm_setr_ps(cptr_x[0], cptr_x[d1], cptr_x[d2], cptr_x[d3]);
^~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:775:12: error: there are no arguments to '_mm_setr_ps' that depend on a template parameter, so a declaration of '_mm_setr_ps' must be available [-fpermissive]
v_xs = _mm_setr_ps(cptr_x[0], cptr_x[d1], cptr_x[d2], cptr_x[d3]);
^~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:776:5: error: 'v_ys' was not declared in this scope
v_ys = _mm_setr_ps(cptr_y[0], cptr_y[d1], cptr_y[d2], cptr_y[d3]);
^~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:776:5: note: suggested alternative: '__yn'
v_ys = _mm_setr_ps(cptr_y[0], cptr_y[d1], cptr_y[d2], cptr_y[d3]);
^~~~
__yn
./modules/perception/common/i_lib/pc/i_struct_s.h:776:12: error: there are no arguments to '_mm_setr_ps' that depend on a template parameter, so a declaration of '_mm_setr_ps' must be available [-fpermissive]
v_ys = _mm_setr_ps(cptr_y[0], cptr_y[d1], cptr_y[d2], cptr_y[d3]);
^~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:777:5: error: 'v_zs' was not declared in this scope
v_zs = _mm_setr_ps(cptr_z[0], cptr_z[d1], cptr_z[d2], cptr_z[d3]);
^~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:777:12: error: there are no arguments to '_mm_setr_ps' that depend on a template parameter, so a declaration of '_mm_setr_ps' must be available [-fpermissive]
v_zs = _mm_setr_ps(cptr_z[0], cptr_z[d1], cptr_z[d2], cptr_z[d3]);
^~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:780:5: error: 'v_cmp_x' was not declared in this scope
v_cmp_x =
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:781:39: error: 'v_x_min' was not declared in this scope
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:781:39: note: suggested alternative: '__fmin'
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
^~~~~~~
__fmin
./modules/perception/common/i_lib/pc/i_struct_s.h:781:20: error: there are no arguments to '_mm_cmpge_ps' that depend on a template parameter, so a declaration of '_mm_cmpge_ps' must be available [-fpermissive]
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
^~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:781:68: error: 'v_x_max' was not declared in this scope
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:781:68: note: suggested alternative: '__fmax'
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
^~~~~~~
__fmax
./modules/perception/common/i_lib/pc/i_struct_s.h:781:49: error: there are no arguments to '_mm_cmple_ps' that depend on a template parameter, so a declaration of '_mm_cmple_ps' must be available [-fpermissive]
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
^~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:782:5: error: 'v_cmp_y' was not declared in this scope
v_cmp_y =
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:783:39: error: 'v_y_min' was not declared in this scope
_mm_and_ps(_mm_cmpge_ps(v_ys, v_y_min), _mm_cmple_ps(v_ys, v_y_max));
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:783:39: note: suggested alternative: '__fmin'
_mm_and_ps(_mm_cmpge_ps(v_ys, v_y_min), _mm_cmple_ps(v_ys, v_y_max));
^~~~~~~
__fmin
./modules/perception/common/i_lib/pc/i_struct_s.h:783:20: error: there are no arguments to '_mm_cmpge_ps' that depend on a template parameter, so a declaration of '_mm_cmpge_ps' must be available [-fpermissive]
_mm_and_ps(_mm_cmpge_ps(v_ys, v_y_min), _mm_cmple_ps(v_ys, v_y_max));
^~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:783:68: error: 'v_y_max' was not declared in this scope
_mm_and_ps(_mm_cmpge_ps(v_ys, v_y_min), _mm_cmple_ps(v_ys, v_y_max));
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:783:68: note: suggested alternative: '__fmax'
_mm_and_ps(_mm_cmpge_ps(v_ys, v_y_min), _mm_cmple_ps(v_ys, v_y_max));
^~~~~~~
__fmax
./modules/perception/common/i_lib/pc/i_struct_s.h:783:49: error: there are no arguments to '_mm_cmple_ps' that depend on a template parameter, so a declaration of '_mm_cmple_ps' must be available [-fpermissive]
_mm_and_ps(_mm_cmpge_ps(v_ys, v_y_min), _mm_cmple_ps(v_ys, v_y_max));
^~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:784:5: error: 'v_cmp_z' was not declared in this scope
v_cmp_z =
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:785:39: error: 'v_z_min' was not declared in this scope
_mm_and_ps(_mm_cmpge_ps(v_zs, v_z_min), _mm_cmple_ps(v_zs, v_z_max));
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:785:39: note: suggested alternative: '__fmin'
_mm_and_ps(_mm_cmpge_ps(v_zs, v_z_min), _mm_cmple_ps(v_zs, v_z_max));
^~~~~~~
__fmin
./modules/perception/common/i_lib/pc/i_struct_s.h:785:20: error: there are no arguments to '_mm_cmpge_ps' that depend on a template parameter, so a declaration of '_mm_cmpge_ps' must be available [-fpermissive]
_mm_and_ps(_mm_cmpge_ps(v_zs, v_z_min), _mm_cmple_ps(v_zs, v_z_max));
^~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:785:68: error: 'v_z_max' was not declared in this scope
_mm_and_ps(_mm_cmpge_ps(v_zs, v_z_min), _mm_cmple_ps(v_zs, v_z_max));
^~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:785:68: note: suggested alternative: '__fmax'
_mm_and_ps(_mm_cmpge_ps(v_zs, v_z_min), _mm_cmple_ps(v_zs, v_z_max));
^~~~~~~
__fmax
./modules/perception/common/i_lib/pc/i_struct_s.h:785:49: error: there are no arguments to '_mm_cmple_ps' that depend on a template parameter, so a declaration of '_mm_cmple_ps' must be available [-fpermissive]
_mm_and_ps(_mm_cmpge_ps(v_zs, v_z_min), _mm_cmple_ps(v_zs, v_z_max));
^~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:786:27: error: there are no arguments to '_mm_and_ps' that depend on a template parameter, so a declaration of '_mm_and_ps' must be available [-fpermissive]
v_in_roi = _mm_and_ps(_mm_and_ps(v_cmp_x, v_cmp_y), v_cmp_z);
^~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:789:12: error: there are no arguments to '_mm_sub_ps' that depend on a template parameter, so a declaration of '_mm_sub_ps' must be available [-fpermissive]
v_xs = _mm_sub_ps(v_xs, v_x_min);
^~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:790:29: error: 'v_width_x_rec' was not declared in this scope
v_xs = _mm_mul_ps(v_xs, v_width_x_rec);
^~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:790:29: note: suggested alternative: 'voxel_width_x_rec'
v_xs = _mm_mul_ps(v_xs, v_width_x_rec);
^~~~~~~~~~~~~
voxel_width_x_rec
./modules/perception/common/i_lib/pc/i_struct_s.h:790:12: error: there are no arguments to '_mm_mul_ps' that depend on a template parameter, so a declaration of '_mm_mul_ps' must be available [-fpermissive]
v_xs = _mm_mul_ps(v_xs, v_width_x_rec);
^~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:791:5: error: 'iv_x_indices' was not declared in this scope
iv_x_indices = _mm_cvttps_epi32(v_xs); // truncate towards zero
^~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:791:20: error: there are no arguments to '_mm_cvttps_epi32' that depend on a template parameter, so a declaration of '_mm_cvttps_epi32' must be available [-fpermissive]
iv_x_indices = _mm_cvttps_epi32(v_xs); // truncate towards zero
^~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:792:34: error: 'iv_nr_voxel_x_m1' was not declared in this scope
iv_x_indices = mm_min_epi32(iv_nr_voxel_x_m1, iv_x_indices);
^~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:792:34: note: suggested alternative: 'nr_voxel_x
'
iv_x_indices = mm_min_epi32(iv_nr_voxel_x_m1, iv_x_indices);
^~~~~~~~~~~~~~~~
nr_voxel_x

./modules/perception/common/i_lib/pc/i_struct_s.h:792:20: error: there are no arguments to '_mm_min_epi32' that depend on a template parameter, so a declaration of '_mm_min_epi32' must be available [-fpermissive]
iv_x_indices = _mm_min_epi32(iv_nr_voxel_x_m1, iv_x_indices);
^~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:795:12: error: there are no arguments to '_mm_sub_ps' that depend on a template parameter, so a declaration of '_mm_sub_ps' must be available [-fpermissive]
v_ys = _mm_sub_ps(v_ys, v_y_min);
^~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:796:29: error: 'v_width_y_rec' was not declared in this scope
v_ys = _mm_mul_ps(v_ys, v_width_y_rec);
^~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:796:29: note: suggested alternative: 'voxel_width_y_rec'
v_ys = _mm_mul_ps(v_ys, v_width_y_rec);
^~~~~~~~~~~~~
voxel_width_y_rec
./modules/perception/common/i_lib/pc/i_struct_s.h:796:12: error: there are no arguments to '_mm_mul_ps' that depend on a template parameter, so a declaration of '_mm_mul_ps' must be available [-fpermissive]
v_ys = _mm_mul_ps(v_ys, v_width_y_rec);
^~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:797:5: error: 'iv_y_indices' was not declared in this scope
iv_y_indices = _mm_cvttps_epi32(v_ys); // truncate towards zero
^~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:797:20: error: there are no arguments to '_mm_cvttps_epi32' that depend on a template parameter, so a declaration of '_mm_cvttps_epi32' must be available [-fpermissive]
iv_y_indices = _mm_cvttps_epi32(v_ys); // truncate towards zero
^~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:798:34: error: 'iv_nr_voxel_y_m1' was not declared in this scope
iv_y_indices = mm_min_epi32(iv_nr_voxel_y_m1, iv_y_indices);
^~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:798:34: note: suggested alternative: 'nr_voxel_y
'
iv_y_indices = mm_min_epi32(iv_nr_voxel_y_m1, iv_y_indices);
^~~~~~~~~~~~~~~~
nr_voxel_y

./modules/perception/common/i_lib/pc/i_struct_s.h:798:20: error: there are no arguments to '_mm_min_epi32' that depend on a template parameter, so a declaration of '_mm_min_epi32' must be available [-fpermissive]
iv_y_indices = _mm_min_epi32(iv_nr_voxel_y_m1, iv_y_indices);
^~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:800:5: error: 'iv_v_indices_02' was not declared in this scope
iv_v_indices_02 = _mm_mullo_epi32(iv_y_indices, iv_nr_voxel_x);
^~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:800:53: error: 'iv_nr_voxel_x' was not declared in this scope
iv_v_indices_02 = mm_mullo_epi32(iv_y_indices, iv_nr_voxel_x);
^~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:800:53: note: suggested alternative: 'nr_voxel_x
'
iv_v_indices_02 = mm_mullo_epi32(iv_y_indices, iv_nr_voxel_x);
^~~~~~~~~~~~~
nr_voxel_x

./modules/perception/common/i_lib/pc/i_struct_s.h:800:23: error: there are no arguments to '_mm_mullo_epi32' that depend on a template parameter, so a declaration of '_mm_mullo_epi32' must be available [-fpermissive]
iv_v_indices_02 = _mm_mullo_epi32(iv_y_indices, iv_nr_voxel_x);
^~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:801:52: error: there are no arguments to '_MM_SHUFFLE' that depend on a template parameter, so a declaration of '_MM_SHUFFLE' must be available [-fpermissive]
iv_y_indices = _mm_shuffle_epi32(iv_y_indices, _MM_SHUFFLE(2, 3, 0, 1));
^~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:803:5: error: 'iv_v_indices_13' was not declared in this scope
iv_v_indices_13 = _mm_mullo_epi32(iv_y_indices, iv_nr_voxel_x);
^~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:803:23: error: there are no arguments to '_mm_mullo_epi32' that depend on a template parameter, so a declaration of '_mm_mullo_epi32' must be available [-fpermissive]
iv_v_indices_13 = _mm_mullo_epi32(iv_y_indices, iv_nr_voxel_x);
^~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:805:44: error: there are no arguments to '_MM_SHUFFLE' that depend on a template parameter, so a declaration of '_MM_SHUFFLE' must be available [-fpermissive]
_mm_shuffle_epi32(iv_v_indices_13, _MM_SHUFFLE(2, 3, 0, 1));
^~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:807:5: error: 'iv_indices' was not declared in this scope
iv_indices = _mm_add_epi32(iv_v_indices_02, iv_v_indices_13);
^~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:807:18: error: there are no arguments to '_mm_add_epi32' that depend on a template parameter, so a declaration of '_mm_add_epi32' must be available [-fpermissive]
iv_indices = _mm_add_epi32(iv_v_indices_02, iv_v_indices_13);
^~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:808:18: error: there are no arguments to '_mm_add_epi32' that depend on a template parameter, so a declaration of '_mm_add_epi32' must be available [-fpermissive]
iv_indices = _mm_add_epi32(iv_indices, iv_x_indices);
^~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:812:5: error: there are no arguments to '_mm_store_ps' that depend on a template parameter, so a declaration of '_mm_store_ps' must be available [-fpermissive]
mm_store_ps(mem_aligned16_f32, v_in_roi);
^~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:814:38: error: '__m128i' does not name a type; did you mean '__f128'?
_mm_store_si128(reinterpret_cast<_m128i *>(mem_aligned16_i32),
^~~~~~~
__f128
./modules/perception/common/i_lib/pc/i_struct_s.h:814:46: error: expected '>' before '' token
_mm_store_si128(reinterpret_cast<_m128i *>(mem_aligned16_i32),
^
./modules/perception/common/i_lib/pc/i_struct_s.h:814:46: error: expected '(' before '
' token
./modules/perception/common/i_lib/pc/i_struct_s.h:814:47: error: expected primary-expression before '>' token
_mm_store_si128(reinterpret_cast<_m128i *>(mem_aligned16_i32),
^
./modules/perception/common/i_lib/pc/i_struct_s.h: In instantiation of 'bool apollo::perception::common::VoxelGridXY::SetS(const float*, unsigned int, unsigned int) [with T = float]':
modules/perception/common/i_lib/pc/i_ground.cc:1244:64: required from here
./modules/perception/common/i_lib/pc/i_struct_s.h:748:25: error: '_mm_setr_ps' was not declared in this scope
v_in_roi = _mm_setr_ps(1.0, 1.0, 1.0, 1.0);
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:775:23: error: '_mm_setr_ps' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
v_xs = _mm_setr_ps(cptr_x[0], cptr_x[d1], cptr_x[d2], cptr_x[d3]);
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:748:25: note: '_mm_setr_ps' declared here, later in the translation unit
v_in_roi = _mm_setr_ps(1.0, 1.0, 1.0, 1.0);
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:776:23: error: '_mm_setr_ps' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
v_ys = _mm_setr_ps(cptr_y[0], cptr_y[d1], cptr_y[d2], cptr_y[d3]);
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:748:25: note: '_mm_setr_ps' declared here, later in the translation unit
v_in_roi = _mm_setr_ps(1.0, 1.0, 1.0, 1.0);
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:777:23: error: '_mm_setr_ps' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
v_zs = _mm_setr_ps(cptr_z[0], cptr_z[d1], cptr_z[d2], cptr_z[d3]);
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:748:25: note: '_mm_setr_ps' declared here, later in the translation unit
v_in_roi = _mm_setr_ps(1.0, 1.0, 1.0, 1.0);
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:781:46: error: '_mm_cmpge_ps' was not declared in this scope
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
^
./modules/perception/common/i_lib/pc/i_struct_s.h:781:75: error: '_mm_cmple_ps' was not declared in this scope
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
^
./modules/perception/common/i_lib/pc/i_struct_s.h:781:19: error: '_mm_and_ps' was not declared in this scope
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:783:46: error: '_mm_cmpge_ps' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
_mm_and_ps(_mm_cmpge_ps(v_ys, v_y_min), _mm_cmple_ps(v_ys, v_y_max));
^
./modules/perception/common/i_lib/pc/i_struct_s.h:781:46: note: '_mm_cmpge_ps' declared here, later in the translation unit
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
^
./modules/perception/common/i_lib/pc/i_struct_s.h:783:75: error: '_mm_cmple_ps' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
_mm_and_ps(_mm_cmpge_ps(v_ys, v_y_min), _mm_cmple_ps(v_ys, v_y_max));
^
./modules/perception/common/i_lib/pc/i_struct_s.h:781:75: note: '_mm_cmple_ps' declared here, later in the translation unit
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
^
./modules/perception/common/i_lib/pc/i_struct_s.h:783:19: error: '_mm_and_ps' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
_mm_and_ps(_mm_cmpge_ps(v_ys, v_y_min), _mm_cmple_ps(v_ys, v_y_max));
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:781:19: note: '_mm_and_ps' declared here, later in the translation unit
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:785:46: error: '_mm_cmpge_ps' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
_mm_and_ps(_mm_cmpge_ps(v_zs, v_z_min), _mm_cmple_ps(v_zs, v_z_max));
^
./modules/perception/common/i_lib/pc/i_struct_s.h:781:46: note: '_mm_cmpge_ps' declared here, later in the translation unit
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
^
./modules/perception/common/i_lib/pc/i_struct_s.h:785:75: error: '_mm_cmple_ps' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
_mm_and_ps(_mm_cmpge_ps(v_zs, v_z_min), _mm_cmple_ps(v_zs, v_z_max));
^
./modules/perception/common/i_lib/pc/i_struct_s.h:781:75: note: '_mm_cmple_ps' declared here, later in the translation unit
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
^
./modules/perception/common/i_lib/pc/i_struct_s.h:785:19: error: '_mm_and_ps' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
_mm_and_ps(_mm_cmpge_ps(v_zs, v_z_min), _mm_cmple_ps(v_zs, v_z_max));
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:781:19: note: '_mm_and_ps' declared here, later in the translation unit
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:786:37: error: '_mm_and_ps' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
v_in_roi = _mm_and_ps(_mm_and_ps(v_cmp_x, v_cmp_y), v_cmp_z);
~~~~~~~~~~^~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:781:19: note: '_mm_and_ps' declared here, later in the translation unit
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:786:26: error: '_mm_and_ps' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
v_in_roi = _mm_and_ps(_mm_and_ps(v_cmp_x, v_cmp_y), v_cmp_z);
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:781:19: note: '_mm_and_ps' declared here, later in the translation unit
_mm_and_ps(_mm_cmpge_ps(v_xs, v_x_min), _mm_cmple_ps(v_xs, v_x_max));
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:789:22: error: '_mm_sub_ps' was not declared in this scope
v_xs = _mm_sub_ps(v_xs, v_x_min);
~~~~~~~~~~^~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:790:42: error: '_mm_mul_ps' was not declared in this scope
v_xs = _mm_mul_ps(v_xs, v_width_x_rec);
^
./modules/perception/common/i_lib/pc/i_struct_s.h:790:42: note: suggested alternative: 'vmul_p8'
v_xs = _mm_mul_ps(v_xs, v_width_x_rec);
^
vmul_p8
./modules/perception/common/i_lib/pc/i_struct_s.h:791:36: error: '_mm_cvttps_epi32' was not declared in this scope
iv_x_indices = _mm_cvttps_epi32(v_xs); // truncate towards zero
~~~~~~~~~~~~~~~~^~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:792:33: error: '_mm_min_epi32' was not declared in this scope
iv_x_indices = _mm_min_epi32(iv_nr_voxel_x_m1, iv_x_indices);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:795:22: error: '_mm_sub_ps' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
v_ys = _mm_sub_ps(v_ys, v_y_min);
~~~~~~~~~~^~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:789:22: note: '_mm_sub_ps' declared here, later in the translation unit
v_xs = _mm_sub_ps(v_xs, v_x_min);
~~~~~~~~~~^~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:796:42: error: '_mm_mul_ps' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
v_ys = _mm_mul_ps(v_ys, v_width_y_rec);
^
./modules/perception/common/i_lib/pc/i_struct_s.h:790:42: note: '_mm_mul_ps' declared here, later in the translation unit
v_xs = _mm_mul_ps(v_xs, v_width_x_rec);
^
./modules/perception/common/i_lib/pc/i_struct_s.h:797:36: error: '_mm_cvttps_epi32' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
iv_y_indices = _mm_cvttps_epi32(v_ys); // truncate towards zero
~~~~~~~~~~~~~~~~^~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:791:36: note: '_mm_cvttps_epi32' declared here, later in the translation unit
iv_x_indices = _mm_cvttps_epi32(v_xs); // truncate towards zero
~~~~~~~~~~~~~~~~^~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:798:33: error: '_mm_min_epi32' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
iv_y_indices = _mm_min_epi32(iv_nr_voxel_y_m1, iv_y_indices);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:792:33: note: '_mm_min_epi32' declared here, later in the translation unit
iv_x_indices = _mm_min_epi32(iv_nr_voxel_x_m1, iv_x_indices);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:800:66: error: '_mm_mullo_epi32' was not declared in this scope
iv_v_indices_02 = _mm_mullo_epi32(iv_y_indices, iv_nr_voxel_x);
^
./modules/perception/common/i_lib/pc/i_struct_s.h:801:63: error: '_MM_SHUFFLE' was not declared in this scope
iv_y_indices = _mm_shuffle_epi32(iv_y_indices, _MM_SHUFFLE(2, 3, 0, 1));
~~~~~~~~~~~^~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:801:37: error: '_mm_shuffle_epi32' was not declared in this scope
iv_y_indices = _mm_shuffle_epi32(iv_y_indices, _MM_SHUFFLE(2, 3, 0, 1));
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:803:38: error: '_mm_mullo_epi32' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
iv_v_indices_13 = _mm_mullo_epi32(iv_y_indices, iv_nr_voxel_x);
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:800:66: note: '_mm_mullo_epi32' declared here, later in the translation unit
iv_v_indices_02 = _mm_mullo_epi32(iv_y_indices, iv_nr_voxel_x);
^
./modules/perception/common/i_lib/pc/i_struct_s.h:805:55: error: '_MM_SHUFFLE' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
_mm_shuffle_epi32(iv_v_indices_13, _MM_SHUFFLE(2, 3, 0, 1));
~~~~~~~~~~~^~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:801:63: note: '_MM_SHUFFLE' declared here, later in the translation unit
iv_y_indices = _mm_shuffle_epi32(iv_y_indices, _MM_SHUFFLE(2, 3, 0, 1));
~~~~~~~~~~~^~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:805:26: error: '_mm_shuffle_epi32' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
_mm_shuffle_epi32(iv_v_indices_13, _MM_SHUFFLE(2, 3, 0, 1));
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:801:37: note: '_mm_shuffle_epi32' declared here, later in the translation unit
iv_y_indices = _mm_shuffle_epi32(iv_y_indices, _MM_SHUFFLE(2, 3, 0, 1));
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:807:31: error: '_mm_add_epi32' was not declared in this scope
iv_indices = _mm_add_epi32(iv_v_indices_02, iv_v_indices_13);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:808:31: error: '_mm_add_epi32' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
iv_indices = _mm_add_epi32(iv_indices, iv_x_indices);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:807:31: note: '_mm_add_epi32' declared here, later in the translation unit
iv_indices = _mm_add_epi32(iv_v_indices_02, iv_v_indices_13);
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:812:17: error: '_mm_store_ps' was not declared in this scope
mm_store_ps(mem_aligned16_f32, v_in_roi);
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./modules/perception/common/i_lib/pc/i_struct_s.h:812:17: note: suggested alternative: '__mbstate_t'
mm_store_ps(mem_aligned16_f32, v_in_roi);
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

waiting for a solution

I'm afraid you are building on arm, currently apollo does not fully support arm, we will consider upgrading it in the future