duplicate symbol error Silabs EFM32 happy gecko build


Marcio Montenegro
 

Hi all,
I am trying to port  Silabs EFM32 happy gecko to Zephyr project.
After running ninja I got the following errors:

offsets.c:26:
../../../../ext/hal/cmsis/Include/arm_math.h:667:23: error: redefinition of ‘__SSAT’
   static __INLINE q31_t __SSAT(
                       ^~~~~~
In file included from ../../../../ext/hal/cmsis/Include/cmsis_compiler.h:48:0,
                 from ../../../../ext/hal/cmsis/Include/core_cm0plus.h:115,
                 from ../../../../ext/hal/cmsis/Include/arm_math.h:311,
                 from ../../../../ext/hal/silabs/gecko/Device/SiliconLabs/EFM32HG/Include/efm32hg322f64.h:233,
                 from ../../../../ext/hal/silabs/gecko/Device/SiliconLabs/EFM32HG/Include/em_device.h:99,
                 from ../../../../ext/hal/silabs/gecko/emlib/inc/em_common.h:35,
                 from ../../../../arch/arm/soc/silabs_exx32/efm32hg/soc.h:24,
                 from ../../../../include/arch/arm/cortex_m/cmsis.h:21,
                 from ../../../../arch/arm/include/cortex_m/exc.h:30,
                 from ../../../../arch/arm/include/kernel_arch_data.h:53,
                 from ../../../../kernel/include/kernel_structs.h:59,
                 from /home/msam/zephyr_happy_gecko/zephyr/arch/arm/core/offsets/offsets.c:26:
../../../../ext/hal/cmsis/Include/cmsis_gcc.h:1241:54: note: previous definition of ‘__SSAT’ was here
 __STATIC_FORCEINLINE int32_t __SSAT(int32_t val, uint32_t sat)
                                                      ^~~~~~

 The C compiler identification is GNU 6.2.0

__SSAT  is defined on cmsis_gcc.h and also on arm_math.h

Best regargs,
Marcio


Join devel@lists.zephyrproject.org to automatically receive all group messages.