[CMake] Parallel jobs failed for cmake

Igor Sobinov sluge at mail.ru
Fri Dec 11 07:24:55 EST 2015


 Hello Bill,

yes, make release is a custom command but that's not important.
I do the following:
# cd  /home/igor/build_root/release_target
#  make release -j5

and again got an error

make[4]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.

All Makefiles in  release_target are auto generated by cmake, there are no any user's code.

Unfortunately I can't send you  CMakeLists.txt(

>Четверг, 10 декабря 2015, 15:48 -05:00 от Bill Hoffman <bill.hoffman at kitware.com>:
>
>On 12/10/2015 12:19 AM, Igor Sobinov wrote:
>> igor 5460 0.0 0.0 101152 972 pts/3 S+ 08:10 0:00 | \_ make build_release -j5
>> igor 5466 0.0 0.0 106096 1164 pts/3 S+ 08:10 0:00 | \_ /bin/sh -c cd
>> /home/igor/build_root/release_target; make release
>> igor 5467 0.0 0.0 101184 1060 pts/3 S+ 08:10 0:00 | \_ make release
>Looks like you created the build_release target as a custom command that 
>does:
>make release
>
>This will strip the -j off of the make process and you get the warning. 
>  If you are going to call make recursively like that you have to use 
>$(MAKE) so that all the right env stuff gets passed down.  CMake does 
>this with its calls to make.
>
>You should be able to do what we do in ExternalProject and use $(MAKE). 
>  I would have to see your CMakeLists.txt code and the custom command to 
>help more.
>
>-Bill
>
>-- 
>
>Powered by  www.kitware.com
>
>Please keep messages on-topic and check the CMake FAQ at:  http://www.cmake.org/Wiki/CMake_FAQ
>
>Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>
>CMake Support:  http://cmake.org/cmake/help/support.html
>CMake Consulting:  http://cmake.org/cmake/help/consulting.html
>CMake Training Courses:  http://cmake.org/cmake/help/training.html
>
>Visit other Kitware open-source projects at  http://www.kitware.com/opensource/opensource.html
>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/cmake


Bye, Igor

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151211/d3a8a91a/attachment.html>


More information about the CMake mailing list