Arm Mbed OS support forum

Fail to build unit tests for cellularcontext

When compiling unit tests with latest mbed os, it stucks on:

[ 35%] Linking CXX executable features-cellular-framework-AT-at_cellularcontext.exe
/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/bin/ld: libfeatures-cellular-framework-AT-at_cellularcontext.MbedOS.a(AT_CellularContext.cpp.o):AT_CellularContext.cpp:(.text$_ZN4rtos9SemaphoreC1Ei[_ZN4rtos9SemaphoreC1Ei]+0x0): multiple definition of `rtos::Semaphore::Semaphore(int)'; CMakeFiles/features-cellular-framework-AT-at_cellularcontext.dir/stubs/Semaphore_stub.cpp.o:Semaphore_stub.cpp:(.text+0x0): first defined here
/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/bin/ld: libfeatures-cellular-framework-AT-at_cellularcontext.MbedOS.a(AT_CellularContext.cpp.o):AT_CellularContext.cpp:(.text$_ZN4rtos9Semaphore15try_acquire_forEj[_ZN4rtos9Semaphore15try_acquire_forEj]+0x0): multiple definition of `rtos::Semaphore::try_acquire_for(unsigned int)'; CMakeFiles/features-cellular-framework-AT-at_cellularcontext.dir/stubs/Semaphore_stub.cpp.o:Semaphore_stub.cpp:(.text+0x80): first defined here
/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/bin/ld: libfeatures-cellular-framework-AT-at_cellularcontext.MbedOS.a(AT_CellularContext.cpp.o):AT_CellularContext.cpp:(.text$_ZN4rtos9Semaphore7releaseEv[_ZN4rtos9Semaphore7releaseEv]+0x0): multiple definition of `rtos::Semaphore::release()'; CMakeFiles/features-cellular-framework-AT-at_cellularcontext.dir/stubs/Semaphore_stub.cpp.o:Semaphore_stub.cpp:(.text+0xaa): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/features-cellular-framework-AT-at_cellularcontext.dir/build.make:448: features-cellular-framework-AT-at_cellularcontext.exe] Error 1
make[2]: Leaving directory '/cygdrive/c/D/mbed-projects/hmipanel/mbed-os/UNITTESTS/build'
make[1]: *** [CMakeFiles/Makefile2:963: CMakeFiles/features-cellular-framework-AT-at_cellularcontext.dir/all] Error 2
make[1]: Leaving directory '/cygdrive/c/D/mbed-projects/hmipanel/mbed-os/UNITTESTS/build'
make: *** [Makefile:141: all] Error 2