nasa/fprime-tools

fprime-util build when run with parallel jobs fails to build multiple deployments

Closed this issue · 1 comments

F´ Version 3.1
Affected Component build

Problem Description

fprime-util build fails when parallel jobs are used (-j2) and multiple deployments are defined in te Fprime project. The error is not appearing if instead of fprime-util build, make is used.

Error:

-- Installing: /home/user/my_proj/default/build-artifacts/Linux/lib/static/libPro1.a
-- Installing: /home/user/my_proj/default/build-artifacts/Linux/lib/static/libPro2.a
-- Installing: /home/user/my_proj/default/build-artifacts/Linux/lib/static/libFlight_Topology.a
-- Installing: /home/user/my_proj/default/build-artifacts/Linux/dict/FlightTopologyAppDictionary.xml
CMake Error at Simulator/cmake_install.cmake:47 (file):
  file INSTALL cannot find
  "/home/user/my_proj/default/build-fprime-automatic-native/bin/Linux/Simulator":
  No such file or directory.
Call Stack (most recent call first):
  cmake_install.cmake:52 (include)


make[3]: *** [Makefile:74: install] Error 1
make[2]: *** [Flight/CMakeFiles/Flight.dir/build.make:165: bin/Linux/Flight] Error 2
make[2]: *** Deleting file 'bin/Linux/Flight'
make[1]: *** [CMakeFiles/Makefile2:10642: Flight/CMakeFiles/Flight.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
[ERROR] CMake erred with return code 2

How to Reproduce

  1. Create a Fprime project with two deployments with one topology each.
  2. Run fprime-util build -j2

Expected Behavior

fprime-util build should run with no errors.

I discover it is not a problem of fprime-util build but it is a problem of the cmake itself. I'll move it in the fprime repository