[CMake] Embedded build using ExternalProject

Albrecht Schlosser AlbrechtS.fltk at online.de
Wed Jun 26 13:10:48 EDT 2019


On 6/26/19 3:53 PM Torsten Robitzki wrote:

> I don’t want to build any EOL test firmware, test-tools etc. just the stuff that will be shipped, thus the explicit target. I can build the firmware_binaries, from the source directly, without problems. But when I try to build with the top-level cmake file, that contains the ExternalProject_Add(), I get the usual configure output and then:
> 
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /Users/todi/blueswd_firmware/build/firmware_binaries-prefix/src/firmware_binaries-build

Is this a on a Windows system?

Are you maybe using Cygwin or MinGW?

> [ 75%] Performing build step for 'firmware_binaries'
> [ 12%] Performing build step for 'firmware_binaries'
> [ 12%] Performing build step for 'firmware_binaries'
> [ 12%] Performing build step for ‚firmware_binaries‘
>> 
> This line repeats until make reports:
> 
> make[776]: /usr/local/Cellar/cmake/3.14.3/bin/cmake: Resource temporarily unavailable
> make[776]: *** wait: No child processes.  Stop.
> make[776]: *** Waiting for unfinished jobs....
> make[776]: *** wait: No child processes.  Stop.
> 
> Any idea, what might be wrong here? Some kind of recursion?

"Resource temporarily unavailable" looks like a well-known Cygwin (or 
maybe also MinGW) issue. If both of your answers above is "yes" I'd 
guess it is.

As a workaround you may try to use 'make -j1' or something like this to 
reduce the number of concurrent make jobs, but this is only a guess.


More information about the CMake mailing list