This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432P401R: two errors when building a project including TI-RTOS on gcc+clion+openOCD toolchains

Part Number: MSP432P401R

1. the build result:

ti\posix\gcc/sys/types.h:72:2: error: #error "When compiling with TI-POSIX, you must define -std=c99 (or later). You must not define _POSIX_SOURCE or _POSIX_C_SOURCE."

but tirtos/gnu/targets/arm/libs/install-native/arm-none-eabi/include/sys/features.h already defined  _POSIX_SOURCE or _POSIX_C_SOURCE

2. there are lots of conflicting types between \ti\posix\gcc/sys/types.h and arm-none-eabi\include\sys\_pthreadtypes.h in GNU ARM embedded toolchains, such as pthread_condattr_t, pthread_key_t, pthread_mutexattr_t, etc.