Hello, I'm trying to cross compile with arm-none-eabi-gcc on an Ubuntu x64 build machine.
My CMake toolchain file contains the following flags:
mcpu=cortex-m4 -mthumb -mfloat-abi=soft -fdata-sections -ffunction-sections \
--specs=rdimon.specs -lgcc -lc -lm -lrdimon
I invoke CMake with:
cmake -DCMAKE_TOOLCHAIN_FILE=arm-none-eabi-gcc-mcu.cmake \
-DCMAKE_INSTALL_PREFIX=$HOME/prog/cross/arm -DBUILD_STATIC_LIB=ON \
-DWITH_STATIC_LIB=ON -DWITH_EXAMPLES=OFF -Bbuild
cmake --build build/
I get implicit declaration errors relating to clock_gettime(), sigsetjmp(), siglongjmp() and other signal functions.
These are linux specific functions and so are obviously not present on a bare-metal machine.
How do I resolve these errors?
Ryan McClue, Sydney
I would like to verify the integrity of the cmocka-1.1.5.tar.xz file that I downloaded.
In the files (https://cmocka.org/files/1.1/) I can see the library itself (.tar.xz) and its signature (.asc). However, I can't find cmocka's public key.
Thanks in advance.
I've started with cmocka 2.0. The biggest change will be that uintmax_t will
be used from stdint.h.
Also there will be a lot of new assert functions. If you want to add features
it is a good time to do that now.
The plan is not to break the API with 2.0, however the ABI will change but it
shouldn't be a problem for a unit testing library.