0
Я пытаюсь скомпилировать пример mbed-клиента на машине Windows для платы K64F. Я установил все необходимое программное обеспечение, как описано в руководстве https://github.com/ARMmbed/mbed-client-quickstart.mbed client build error
команды я запустить следующие команды:
git clone https://github.com/ARMmbed/mbed-client-quickstart
cd mbed-client-quickstart
yotta target frdm-k64f-gcc
yotta build
Я получаю эту ошибку компиляции:
info: get versions for mbed-client
info: download [email protected] from the public module registry
info: get versions for mbed-trace
info: download [email protected] from the public module registry
info: get versions for mbed-client-c
info: download [email protected] from the public module registry
info: get versions for mbed-client-mbed-os
info: download [email protected] from the public module registry
info: get versions for mbed-client-mbedtls
info: download [email protected] from the public module registry
info: get versions for nanostack-libservice
info: download [email protected] from the public module registry
info: get versions for mbed-drivers
info: download [email protected] from the public module registry
info: get versions for sockets
info: download [email protected] from the public module registry
info: get versions for mbed-hal
info: download [email protected] from the public module registry
info: get versions for cmsis-core
info: download [email protected] from the public module registry
info: get versions for ualloc
info: download [email protected] from the public module registry
info: get versions for minar
info: download [email protected] from the public module registry
info: get versions for core-util
info: download [email protected] from the public module registry
info: get versions for compiler-polyfill
info: download [email protected] from the public module registry
info: get versions for greentea-client
info: download [email protected] from the public module registry
info: get versions for mbed-hal-freescale
info: download [email protected] from the public module registry
info: get versions for mbed-hal-ksdk-mcu
info: download [email protected] from the public module registry
info: get versions for uvisor-lib
info: download [email protected] from the public module registry
info: get versions for mbed-hal-k64f
info: download [email protected] from the public module registry
info: get versions for cmsis-core-freescale
info: download [email protected] from the public module registry
info: get versions for cmsis-core-k64f
info: download [email protected] from the public module registry
info: get versions for mbed-hal-frdm-k64f
info: download [email protected] from the public module registry
info: get versions for dlmalloc
info: download [email protected] from the public module registry
info: get versions for minar-platform
info: download [email protected] from the public module registry
info: get versions for minar-platform-mbed
info: download [email protected] from the public module registry
info: get versions for sal
info: download [email protected] from the public module registry
info: get versions for sal-stack-lwip
info: download [email protected] from the public module registry
info: get versions for sal-driver-lwip-k64f-eth
info: download [email protected] from the public module registry
info: get versions for sal-iface-eth
info: download [email protected] from the public module registry
info: get versions for mbedtls
info: download [email protected] from the public module registry
info: generate for target: frdm-k64f-gcc 2.0.0 at mbed-client-quickstart\yotta_targets\frdm-k64f-gcc
-- The C compiler identification is GNU 6.2.1
-- The CXX compiler identification is GNU 6.2.1
-- Check for working C compiler: C:/Program Files (x86)/GNU Tools ARM Embedded/6.2 2016q4/bin/arm-none-eabi-gcc.exe
-- Check for working C compiler: C:/Program Files (x86)/GNU Tools ARM Embedded/6.2 2016q4/bin/arm-none-eabi-gcc.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-3.8/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "C:/Program Files (x86)/GNU Tools ARM Embedded/6.2
2016q4/bin/arm-none-eabi-gcc.exe" is not able to compile a simple test
program.
It fails with the following output:
Change Dir: mbed-client-quickstart/build/frdm-k64f-gcc/CMakeFiles/CMakeTmp
Run Build Command:"C:/ninja/ninja.exe" "cmTC_60fb0"
[1/2] Building C object CMakeFiles/cmTC_60fb0.dir/testCCompiler.c.o
[2/2] Linking C executable cmTC_60fb0
FAILED: cmd.exe /C "cd . &&
C:\PROGRA~2\GNUTOO~1\6E275~1.220\bin\AR19DD~1.EXE -fno-exceptions
-fno-unwind-tables -Wl,--gc-sections -Wl,--sort-common
-Wl,--sort-section=alignment -Wl,-wrap,main -Wl,-u,_printf_float
-mcpu=cortex-m4 -mthumb
-T"mbed-client-quickstart/yotta_targets/kinetis-k64-gcc/CMake/../ld/K64FN1M0xxx12.ld"
-Wl,-Map,cmTC_60fb0.map -Wl,--start-group
CMakeFiles/cmTC_60fb0.dir/testCCompiler.c.o -lm -lc -lgcc -lm -lc -lgcc
-Wl,--end-group --specs=nano.specs -o cmTC_60fb0 && cd ."
c:/progra~2/gnutoo~1/6e275~1.220/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld.exe:
warning: cannot find entry symbol Reset_Handler; defaulting to 00000410
c:/progra~2/gnutoo~1/6e275~1.220/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/lib/thumb/v7e-m\libc_nano.a(lib_a-sbrkr.o):
In function `_sbrk_r':
sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:150 (project)
-- Configuring incomplete, errors occurred!
See also "mbed-client-quickstart/build/frdm-k64f-gcc/CMakeFiles/CMakeOutput.log".
See also "mbed-client-quickstart/build/frdm-k64f-gcc/CMakeFiles/CMakeError.log".
error: command ['cmake', '-D', 'CMAKE_BUILD_TYPE=RelWithDebInfo', '-G', 'Ninja', '.'] failed
Что я делаю не так?