-
Notifications
You must be signed in to change notification settings - Fork 63
Yotta and CMake install issue #783
Comments
Is the problem related to this: ARMmbed/target-mbed-gcc#29? / what's the error? |
For osx users until this is fixed, I went back to the last version I could find in homebrew
BTW The error I get is
|
I have experienced this as well on a mac sierra. Effectively mbed-os 3 targets are broken because of this. |
I know that this is a really old issue but someone might still be interested in a workaround. Creating an executable script named #!/bin/bash
$WCMAKE -DCMAKE_C_COMPILER_WORKS=TRUE $@ and calling yotta like this: export WCMAKE=`which cmake`
export PATH=`pwd`:$PATH
yotta build solves the problem. By wrapping cmake, this ensures that Of course, if a workaround is not good enough, yotta itself should be patched up somewhere here: https://github.com/ARMmbed/yotta/blob/master/yotta/lib/target.py#L494 . Something like: - cmd = ['cmake', '-D', 'CMAKE_BUILD_TYPE=%s' % build_type, '-G', args.cmake_generator, '.']
+ cmd = ['cmake', '-D', 'CMAKE_BUILD_TYPE=%s' % build_type, '-D', 'CMAKE_C_COMPILER_WORKS=TRUE', '-G', args.cmake_generator, '.'] |
It seems like cmake is too new for yotta. Thus, sometime it works, sometime it doesn't. I don't even know anymore. However, this was already addressed in an issue and some workaround was provided[0]. [0]:ARMmbed/yotta#783 (comment)
Hi, I am not sure if this is the right venue for this, but it seems that cmake 3.6 is not compatible with the latest yotta. 3.5.2 works fine. Might good to add that to instruction.
The text was updated successfully, but these errors were encountered: