aws / aws-lc

AWS-LC is a general-purpose cryptographic library maintained by the AWS Cryptography team for AWS and their customers. It іs based on code from the Google BoringSSL project and the OpenSSL project.
Other
396 stars 118 forks source link

Error Cross Compiling aws-iot-device-sdk-cpp-v2 with MUSL ARM #384

Closed joseph-vincent closed 2 years ago

joseph-vincent commented 2 years ago

Problem:

I am trying to cross compile aws-iot-device-sdk-cpp-v2 using ARM MUSL toolchain. But the compilation is failing at aws-lc. When executing the Cmake command before the actual build, noticed that it is detecting the CMAKE_SYSTEM_PROCESSOR as x86_64. I think this maybe the reason for the failure, as the file at which it is failing is assembly code for x86 (crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/aesni-x86.S.o)

Also tried setting CMAKE_SYSTEM_PROCESSOR to arm by doing export and by passing it as set argument for cmake.

There is an issue flagged for GCC compiler version (current one in use in this toolchain is 11.2.1)

Similar issue was already logged (https://github.com/aws/aws-iot-device-sdk-cpp-v2/issues/293) Created this new issue as that one is already closed due to staleness.

Thanks in advance. Any help is appreciated.

Relevant details

ARM MUSL toolchain : (http://musl.cc/armv7l-linux-musleabihf-cross.tgz) AWS-LC commit: 7e7f06cae8df1c8d7d9b6c9452d17935097343de (HEAD, tag: v0.0.2) aws-iot-device-sdk-cpp-v2 commit : bc51b8a97e2590b03f0118107ee19c85f281c1e3 (v1.15.2)

System information: for linux, below info can be collected by running uname -srvmp Building it on an Alpine 3.13 docker container Linux 5.4.0-91-generic #102~18.04.1-Ubuntu SMP Thu Nov 11 14:46:36 UTC 2021 x86_64 unknown Same results on a Ubuntu 18.04 VM as well.

Build log:

bash-5.1# pwd
/Code/aws-iot-device-sdk-cpp-v2/BUILD
bash-5.1#
bash-5.1# cmake --version
cmake version 3.18.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).
bash-5.1#
bash-5.1#
bash-5.1# /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc --version
armv7l-linux-musleabihf-gcc (GCC) 11.2.1 20211120
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

bash-5.1#
bash-5.1# export LD_LIBRARY_PATH="/armv7l-linux-musleabihf-cross/usr/local/lib" 
bash-5.1# export CC="/armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc"
bash-5.1# export CXX="/armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-g++"
bash-5.1# export PATH=$PATH:/armv7l-linux-musleabihf-cross/usr/local
bash-5.1# 
bash-5.1# cmake -DCMAKE_INSTALL_PREFIX=/armv7l-linux-musleabihf-cross/usr/local -DCMAKE_PREFIX_PATH=/armv7l-linux-musleabihf-cross/usr/local -DBUILD_SHARED_LIBS=ON -DBUILD_DEPS=ON -DCMAKE_BUILD_TYPE="Release" -DCMAKE_VERBOSE_MAKEFILE=ON ../
-- The C compiler identification is GNU 11.2.1
-- The CXX compiler identification is GNU 11.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- AWS CRT C++ v1.15.2-1-gbc51b8a
-- CMake 3.18.4
-- Performing Test AWS_HAVE_GCC_OVERFLOW_MATH_EXTENSIONS
-- Performing Test AWS_HAVE_GCC_OVERFLOW_MATH_EXTENSIONS - Failed
-- Performing Test AWS_HAVE_MSVC_MULX
-- Performing Test AWS_HAVE_MSVC_MULX - Failed
-- Performing Test AWS_HAVE_WINAPI_DESKTOP
-- Performing Test AWS_HAVE_WINAPI_DESKTOP - Failed
-- Performing Test AWS_ARCH_INTEL
-- Performing Test AWS_ARCH_INTEL - Failed
-- Performing Test AWS_ARCH_ARM64
-- Performing Test AWS_ARCH_ARM64 - Failed
-- Performing Test AWS_ARCH_ARM32
-- Performing Test AWS_ARCH_ARM32 - Success
-- Performing Test AWS_HAVE_GCC_INLINE_ASM
-- Performing Test AWS_HAVE_GCC_INLINE_ASM - Success
-- Performing Test AWS_HAVE_AUXV
-- Performing Test AWS_HAVE_AUXV - Success
-- Performing Test AWS_HAVE_EXECINFO
-- Performing Test AWS_HAVE_EXECINFO - Failed
-- Performing Test HAVE_M_AVX2_FLAG
-- Performing Test HAVE_M_AVX2_FLAG - Failed
-- Performing Test HAVE_AVX2_INTRINSICS
-- Performing Test HAVE_AVX2_INTRINSICS - Failed
-- Performing Test HAVE_MM256_EXTRACT_EPI64
-- Performing Test HAVE_MM256_EXTRACT_EPI64 - Failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Performing Test HAS_FPIC_FLAG
-- Performing Test HAS_FPIC_FLAG - Success
-- Performing Test HAS_MOUTLINE_ATOMICS
-- Performing Test HAS_MOUTLINE_ATOMICS - Failed
-- Performing Test HAS_64BIT_FILE_OFFSET_BY_DEFAULT
-- Performing Test HAS_64BIT_FILE_OFFSET_BY_DEFAULT - Success
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Performing Test HAS_WGNU
-- Performing Test HAS_WGNU - Failed
-- Performing Test HAVE_SYSCONF
-- Performing Test HAVE_SYSCONF - Success
-- Looking for pthread_attr_setaffinity_np
-- Looking for pthread_attr_setaffinity_np - not found
-- Looking for pthread_setaffinity_np
-- Looking for pthread_setaffinity_np - found
-- Performing Test HAS_SANITIZERS
-- Performing Test HAS_SANITIZERS - Failed
-- Packaging currently only supported on Fedora.
-- Performing Test HAS_WNO_STRINGOP_OVERFLOW
-- Performing Test HAS_WNO_STRINGOP_OVERFLOW - Success
-- Performing Test HAS_WNO_ARRAY_PARAMETER
-- Performing Test HAS_WNO_ARRAY_PARAMETER - Success
-- Checking for module 'libunwind-generic'
--   Package 'libunwind-generic', required by 'virtual:world', not found
libunwind not found. Disabling unwind tests.
-- Go not found. Disabling some code generation and using pre-generated code in generated-src/
-- Perl not found. Disabling some code generation and using pre-generated code in generated-src/
-- Run check_run file_to_test 'memcmp_invalid_stripped_check.c', flag_to_set 'MEMCMP_INVALID_STRIPPED', and compile_flags '-O3 -DNDEBUG'.
CMake Warning at crt/aws-crt-cpp/crt/aws-lc/CMakeLists.txt:210 (message):
  Currently, GCC 11.2.1 is not supported due to a memcmp related bug reported
  in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189.

  We strongly recommend against using the GCC 11.2.1 compiler.

-- Test stdalign_check.c passed, enabling AWS_LC_STDALIGN_AVAILABLE
-- Test builtin_swap_check.c passed, enabling AWS_LC_BUILTIN_SWAP_SUPPORTED
-- The ASM compiler identification is GNU
-- Found assembler: /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc
Copying platform assembly files from /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-lc/generated-src/linux-x86/crypto/ to /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/crypto
-- Detected CMAKE_SYSTEM_PROCESSOR as x86_64
-- Detected 32-Bit system - disabling PQ crypto assembly optimizations
-- S2N_NO_PQ_ASM flag was detected - disabling PQ crypto assembly code
-- S2N found target: crypto
-- Using libcrypto from AWS-LC
-- Performing Test AWS_ARM32_CRC
-- Performing Test AWS_ARM32_CRC - Failed
-- Configuring done
-- Generating done
-- Build files have been written to: /Code/aws-iot-device-sdk-cpp-v2/BUILD
bash-5.1# 
bash-5.1# 
bash-5.1# 
bash-5.1# cmake --build . --target install 
/usr/bin/cmake -S/Code/aws-iot-device-sdk-cpp-v2 -B/Code/aws-iot-device-sdk-cpp-v2/BUILD --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /Code/aws-iot-device-sdk-cpp-v2/BUILD/CMakeFiles /Code/aws-iot-device-sdk-cpp-v2/BUILD//CMakeFiles/progress.marks
/usr/bin/make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/Code/aws-iot-device-sdk-cpp-v2/BUILD'
/usr/bin/make  -f crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/build.make crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/depend
make[2]: Entering directory '/Code/aws-iot-device-sdk-cpp-v2/BUILD'
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /Code/aws-iot-device-sdk-cpp-v2 /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common /Code/aws-iot-device-sdk-cpp-v2/BUILD /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/DependInfo.cmake --color=
Dependee "/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/DependInfo.cmake" is newer than depender "/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/depend.internal".
Dependee "/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/depend.internal".
Scanning dependencies of target aws-c-common
make[2]: Leaving directory '/Code/aws-iot-device-sdk-cpp-v2/BUILD'
/usr/bin/make  -f crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/build.make crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/build
make[2]: Entering directory '/Code/aws-iot-device-sdk-cpp-v2/BUILD'
[  0%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/allocator.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/allocator.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/allocator.c
[  0%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/allocator_sba.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/allocator_sba.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/allocator_sba.c
[  0%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/arch/arm/asm/cpuid.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/arch/arm/asm/cpuid.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/arch/arm/asm/cpuid.c
[  0%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/array_list.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/array_list.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/array_list.c
[  1%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/assert.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/assert.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/assert.c
[  1%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/bus.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/bus.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/bus.c
[  1%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/byte_buf.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/byte_buf.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/byte_buf.c
[  1%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/cache.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/cache.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/cache.c
[  1%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/codegen.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/codegen.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/codegen.c
[  1%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/command_line_parser.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/command_line_parser.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/command_line_parser.c
[  1%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/common.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/common.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/common.c
[  1%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/condition_variable.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/condition_variable.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/condition_variable.c
[  2%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/date_time.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/date_time.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/date_time.c
[  2%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/device_random.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/device_random.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/device_random.c
[  2%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/encoding.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/encoding.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/encoding.c
[  2%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/error.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/error.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/error.c
[  2%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/fifo_cache.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/fifo_cache.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/fifo_cache.c
[  2%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/file.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/file.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/file.c
[  2%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/hash_table.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/hash_table.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/hash_table.c
[  2%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/lifo_cache.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/lifo_cache.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/lifo_cache.c
[  2%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/linked_hash_table.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/linked_hash_table.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/linked_hash_table.c
[  3%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/log_channel.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/log_channel.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/log_channel.c
[  3%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/log_formatter.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/log_formatter.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/log_formatter.c
[  3%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/log_writer.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/log_writer.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/log_writer.c
[  3%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/logging.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/logging.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/logging.c
[  3%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/lru_cache.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/lru_cache.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/lru_cache.c
[  3%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/math.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/math.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/math.c
[  3%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/memtrace.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/memtrace.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/memtrace.c
[  3%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/clock.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/posix/clock.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/posix/clock.c
[  3%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/condition_variable.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/posix/condition_variable.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/posix/condition_variable.c
[  4%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/device_random.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/posix/device_random.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/posix/device_random.c
[  4%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/environment.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/posix/environment.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/posix/environment.c
[  4%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/file.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/posix/file.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/posix/file.c
[  4%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/mutex.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/posix/mutex.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/posix/mutex.c
[  4%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/process.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/posix/process.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/posix/process.c
[  4%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/rw_lock.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/posix/rw_lock.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/posix/rw_lock.c
[  4%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/system_info.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/posix/system_info.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/posix/system_info.c
[  4%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/thread.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/posix/thread.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/posix/thread.c
[  4%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/posix/time.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/posix/time.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/posix/time.c
[  5%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/priority_queue.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/priority_queue.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/priority_queue.c
[  5%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/process_common.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/process_common.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/process_common.c
[  5%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/promise.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/promise.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/promise.c
[  5%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/ref_count.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/ref_count.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/ref_count.c
[  5%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/ring_buffer.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/ring_buffer.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/ring_buffer.c
[  5%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/statistics.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/statistics.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/statistics.c
[  5%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/string.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/string.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/string.c
[  5%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/task_scheduler.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/task_scheduler.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/task_scheduler.c
[  5%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/thread_scheduler.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/thread_scheduler.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/thread_scheduler.c
[  6%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/thread_shared.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/thread_shared.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/thread_shared.c
[  6%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/uuid.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/uuid.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/uuid.c
[  6%] Building C object crt/aws-crt-cpp/crt/aws-c-common/CMakeFiles/aws-c-common.dir/source/xml_parser.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD -DAWS_COMMON_EXPORTS -DAWS_COMMON_USE_IMPORT_EXPORT -DHAVE_SYSCONF -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 -Daws_c_common_EXPORTS -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/include -I/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common/generated/include -O3 -DNDEBUG -fPIC -Wall -Wstrict-prototypes -pedantic -Wno-long-long -fPIC -fvisibility=hidden -std=gnu99 -o CMakeFiles/aws-c-common.dir/source/xml_parser.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-c-common/source/xml_parser.c
[  6%] Linking C shared library libaws-c-common.so
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /usr/bin/cmake -E cmake_link_script CMakeFiles/aws-c-common.dir/link.txt --verbose=1
/armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -fPIC -O3 -DNDEBUG -shared -Wl,-soname,libaws-c-common.so.1 -o libaws-c-common.so.1.0.0 CMakeFiles/aws-c-common.dir/source/allocator.c.o CMakeFiles/aws-c-common.dir/source/allocator_sba.c.o CMakeFiles/aws-c-common.dir/source/arch/arm/asm/cpuid.c.o CMakeFiles/aws-c-common.dir/source/array_list.c.o CMakeFiles/aws-c-common.dir/source/assert.c.o CMakeFiles/aws-c-common.dir/source/bus.c.o CMakeFiles/aws-c-common.dir/source/byte_buf.c.o CMakeFiles/aws-c-common.dir/source/cache.c.o CMakeFiles/aws-c-common.dir/source/codegen.c.o CMakeFiles/aws-c-common.dir/source/command_line_parser.c.o CMakeFiles/aws-c-common.dir/source/common.c.o CMakeFiles/aws-c-common.dir/source/condition_variable.c.o CMakeFiles/aws-c-common.dir/source/date_time.c.o CMakeFiles/aws-c-common.dir/source/device_random.c.o CMakeFiles/aws-c-common.dir/source/encoding.c.o CMakeFiles/aws-c-common.dir/source/error.c.o CMakeFiles/aws-c-common.dir/source/fifo_cache.c.o CMakeFiles/aws-c-common.dir/source/file.c.o CMakeFiles/aws-c-common.dir/source/hash_table.c.o CMakeFiles/aws-c-common.dir/source/lifo_cache.c.o CMakeFiles/aws-c-common.dir/source/linked_hash_table.c.o CMakeFiles/aws-c-common.dir/source/log_channel.c.o CMakeFiles/aws-c-common.dir/source/log_formatter.c.o CMakeFiles/aws-c-common.dir/source/log_writer.c.o CMakeFiles/aws-c-common.dir/source/logging.c.o CMakeFiles/aws-c-common.dir/source/lru_cache.c.o CMakeFiles/aws-c-common.dir/source/math.c.o CMakeFiles/aws-c-common.dir/source/memtrace.c.o CMakeFiles/aws-c-common.dir/source/posix/clock.c.o CMakeFiles/aws-c-common.dir/source/posix/condition_variable.c.o CMakeFiles/aws-c-common.dir/source/posix/device_random.c.o CMakeFiles/aws-c-common.dir/source/posix/environment.c.o CMakeFiles/aws-c-common.dir/source/posix/file.c.o CMakeFiles/aws-c-common.dir/source/posix/mutex.c.o CMakeFiles/aws-c-common.dir/source/posix/process.c.o CMakeFiles/aws-c-common.dir/source/posix/rw_lock.c.o CMakeFiles/aws-c-common.dir/source/posix/system_info.c.o CMakeFiles/aws-c-common.dir/source/posix/thread.c.o CMakeFiles/aws-c-common.dir/source/posix/time.c.o CMakeFiles/aws-c-common.dir/source/priority_queue.c.o CMakeFiles/aws-c-common.dir/source/process_common.c.o CMakeFiles/aws-c-common.dir/source/promise.c.o CMakeFiles/aws-c-common.dir/source/ref_count.c.o CMakeFiles/aws-c-common.dir/source/ring_buffer.c.o CMakeFiles/aws-c-common.dir/source/statistics.c.o CMakeFiles/aws-c-common.dir/source/string.c.o CMakeFiles/aws-c-common.dir/source/task_scheduler.c.o CMakeFiles/aws-c-common.dir/source/thread_scheduler.c.o CMakeFiles/aws-c-common.dir/source/thread_shared.c.o CMakeFiles/aws-c-common.dir/source/uuid.c.o CMakeFiles/aws-c-common.dir/source/xml_parser.c.o  -ldl -lm -lrt -ldl -lm -lrt 
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-c-common && /usr/bin/cmake -E cmake_symlink_library libaws-c-common.so.1.0.0 libaws-c-common.so.1 libaws-c-common.so
make[2]: Leaving directory '/Code/aws-iot-device-sdk-cpp-v2/BUILD'
[  6%] Built target aws-c-common
/usr/bin/make  -f crt/aws-crt-cpp/crt/aws-lc/CMakeFiles/global_target.dir/build.make crt/aws-crt-cpp/crt/aws-lc/CMakeFiles/global_target.dir/depend
make[2]: Entering directory '/Code/aws-iot-device-sdk-cpp-v2/BUILD'
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /Code/aws-iot-device-sdk-cpp-v2 /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-lc /Code/aws-iot-device-sdk-cpp-v2/BUILD /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/CMakeFiles/global_target.dir/DependInfo.cmake --color=
Dependee "/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/CMakeFiles/global_target.dir/DependInfo.cmake" is newer than depender "/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/CMakeFiles/global_target.dir/depend.internal".
Dependee "/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/CMakeFiles/global_target.dir/depend.internal".
Scanning dependencies of target global_target
make[2]: Leaving directory '/Code/aws-iot-device-sdk-cpp-v2/BUILD'
/usr/bin/make  -f crt/aws-crt-cpp/crt/aws-lc/CMakeFiles/global_target.dir/build.make crt/aws-crt-cpp/crt/aws-lc/CMakeFiles/global_target.dir/build
make[2]: Entering directory '/Code/aws-iot-device-sdk-cpp-v2/BUILD'
make[2]: Nothing to be done for 'crt/aws-crt-cpp/crt/aws-lc/CMakeFiles/global_target.dir/build'.
make[2]: Leaving directory '/Code/aws-iot-device-sdk-cpp-v2/BUILD'
[  6%] Built target global_target
/usr/bin/make  -f crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/build.make crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/depend
make[2]: Entering directory '/Code/aws-iot-device-sdk-cpp-v2/BUILD'
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /Code/aws-iot-device-sdk-cpp-v2 /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule /Code/aws-iot-device-sdk-cpp-v2/BUILD /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/DependInfo.cmake --color=
Dependee "/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/DependInfo.cmake" is newer than depender "/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/depend.internal".
Dependee "/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/depend.internal".
Scanning dependencies of target fipsmodule
make[2]: Leaving directory '/Code/aws-iot-device-sdk-cpp-v2/BUILD'
/usr/bin/make  -f crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/build.make crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/build
make[2]: Entering directory '/Code/aws-iot-device-sdk-cpp-v2/BUILD'
[  6%] Building C object crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/bcm.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DBORINGSSL_IMPLEMENTATION -DBORINGSSL_RELEASE_BUILD -DBORINGSSL_SHARED_LIBRARY -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-lc/crypto/../include -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/../../include -Wno-stringop-overflow -Wno-array-parameter -std=c99 -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Werror -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wwrite-strings -Wformat-security -Wunused-result -Wno-cast-function-type  -DAWS_LC_STDALIGN_AVAILABLE -DAWS_LC_BUILTIN_SWAP_SUPPORTED -Wvla -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -ggdb -Wall -fvisibility=hidden -fno-common -Wno-free-nonheap-object -Wimplicit-fallthrough -Wmissing-prototypes -Wold-style-definition -Wstrict-prototypes -Wshadow -D_XOPEN_SOURCE=700 -O3 -DNDEBUG -fPIC -o CMakeFiles/fipsmodule.dir/bcm.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/bcm.c
[  7%] Building C object crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/fips_shared_support.c.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DBORINGSSL_IMPLEMENTATION -DBORINGSSL_RELEASE_BUILD -DBORINGSSL_SHARED_LIBRARY -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-lc/crypto/../include -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/../../include -Wno-stringop-overflow -Wno-array-parameter -std=c99 -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Werror -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wwrite-strings -Wformat-security -Wunused-result -Wno-cast-function-type  -DAWS_LC_STDALIGN_AVAILABLE -DAWS_LC_BUILTIN_SWAP_SUPPORTED -Wvla -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings -ggdb -Wall -fvisibility=hidden -fno-common -Wno-free-nonheap-object -Wimplicit-fallthrough -Wmissing-prototypes -Wold-style-definition -Wstrict-prototypes -Wshadow -D_XOPEN_SOURCE=700 -O3 -DNDEBUG -fPIC -o CMakeFiles/fipsmodule.dir/fips_shared_support.c.o -c /Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/fips_shared_support.c
[  7%] Building ASM object crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/aesni-x86.S.o
cd /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule && /armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc -DBORINGSSL_IMPLEMENTATION -DBORINGSSL_RELEASE_BUILD -DBORINGSSL_SHARED_LIBRARY -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-lc/crypto/../include -I/Code/aws-iot-device-sdk-cpp-v2/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/../../include -Wa,--noexecstack -Wa,-g -O3 -DNDEBUG -fPIC -o CMakeFiles/fipsmodule.dir/aesni-x86.S.o -c /Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/aesni-x86.S
/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/aesni-x86.S: Assembler messages:
/Code/aws-iot-device-sdk-cpp-v2/BUILD/crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/aesni-x86.S:2513: Error: junk at end of line, first unrecognized character is `,'
make[2]: *** [crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/build.make:111: crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/aesni-x86.S.o] Error 1
make[2]: Leaving directory '/Code/aws-iot-device-sdk-cpp-v2/BUILD'
make[1]: *** [CMakeFiles/Makefile2:1707: crt/aws-crt-cpp/crt/aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/all] Error 2
make[1]: Leaving directory '/Code/aws-iot-device-sdk-cpp-v2/BUILD'
make: *** [Makefile:163: all] Error 2
bash-5.1# 
bryce-shang commented 2 years ago

Thank you for reporting this issue!

There is an issue flagged for GCC compiler version (current one in use in this toolchain is 11.2.1)

The warning message does not fail the build.

-- Run check_run file_to_test 'memcmp_invalid_stripped_check.c', flag_to_set 'MEMCMP_INVALID_STRIPPED', and compile_flags '-O3 -DNDEBUG'.
CMake Warning at crt/aws-crt-cpp/crt/aws-lc/CMakeLists.txt:210 (message):
  Currently, GCC 11.2.1 is not supported due to a memcmp related bug reported
  in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189.

  We strongly recommend against using the GCC 11.2.1 compiler.

Building it on an Alpine 3.13 docker container

Would you help provide the Docker image(e.g. ubuntu-18.04)?

joseph-vincent commented 2 years ago

Hi @bryce-shang,

Thanks for the response. I was able to work through this issue. The flag which was missing is -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=arm

With these flags, Crypto library is picking up ARM specific assembly code for compilation. I had tried the CMAKE_SYSTEM_PROCESSOR alone, but that had not worked. With inclusion of CMAKE_SYSTEM_NAME, it started working.

The command now used for compilation is: cmake -DBUILD_STATIC_LIBS=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=arm -DCMAKE_CXX_COMPILER=/armv7r-linux-musleabihf-cross/bin/armv7r-linux-musleabihf-g++ -DCMAKE_C_COMPILER=/armv7r-linux-musleabihf-cross/bin/armv7r-linux-musleabihf-gcc -DCMAKE_LINKER=/armv7r-linux-musleabihf-cross/bin/armv7r-linux-musleabihf-ld -DCMAKE_AR=/armv7r-linux-musleabihf-cross/bin/armv7r-linux-musleabihf-ar -DCMAKE_INSTALL_PREFIX=/armv7r-linux-musleabihf-cross/usr/local -DCMAKE_PREFIX_PATH=/armv7r-linux-musleabihf-cross/usr/local -DBUILD_DEPS=ON -DCMAKE_BUILD_TYPE="Release" /aws-iot-device-sdk-cpp-v2

Closing this issue.

joseph-vincent commented 2 years ago

Hi @bryce-shang ,

To answer your question, I am using stock alpine 3.13 image, which can be downloaded using docker pull alpine:3.13

https://hub.docker.com/layers/alpine/library/alpine/3.13/images/sha256-f56e731a69b8ffb7fee089ffdf91d6f76b050daaf218b2cb8e610fd6ceb80beb?context=explore