Bug 510389 - Program doesn't get built when using the internal builder with parallel build enabled
Summary: Program doesn't get built when using the internal builder with parallel build...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 9.2.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-12 12:56 EST by Norman Yee CLA
Modified: 2020-09-04 15:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Yee CLA 2017-01-12 12:56:34 EST
One of our users has a large project: 7 library projects and 1 main program project that depends on the 7 library projects.  The main project is using the internal builder with parallel build enabled, and the 7 library projects are using the external builder with parallel build enabled.

When you make a change to one of the library projects and then build the main project, the library project gets built but the main project doesn't get built.  In the CDT build console, this is the output that is displayed for the main project:

    11:58:46 **** Incremental Build of configuration Debug for project Griffin_Core0 ****
    Info: Internal Builder is used for build
    Info: Parallel threads used: 0

    12:00:39 Build Finished (took 1m:52s.435ms)

As a workaround, if I change the main project to 1) use the external builder instead of the internal builder, or 2) keep the internal builder but turn off parallel builds, I see that the main project is built correctly.

This is the CDT build console output when using the external builder:

    12:51:12 **** Incremental Build of configuration Debug for project Griffin_Core0 ****
    make -j4 all 
    'Building target: Griffin_Core0'
    'Invoking: CrossCore ARM Bare Metal C++ Linker'
    arm-none-eabi-g++ -mproc=ADSP-SC584 -msi-revision=1.0 -L"C:\tars\cces16320\NipTrunk2.5.0\SoftwareStack\adi\I2C\Debug" -L"C:\tars\cces16320\NipTrunk2.5.0\SoftwareStack\adi\Hdmi\Debug" -L"C:\tars\cces16320\NipTrunk2.5.0\SoftwareStack\adv7664\RegisterDriver\Debug" -L"C:/tars/cces16320/NipTrunk2.5.0/SoftwareStack/Griffin_Core0/../adi/Edid/Debug" -L"C:/tars/cces16320/NipTrunk2.5.0/SoftwareStack/Griffin_Core0/../adi/I2C/Debug" -L"C:/tars/cces16320/NipTrunk2.5.0/SoftwareStack/Griffin_Core0/../adi/Hdcp/Debug" -L"C:/tars/cces16320/NipTrunk2.5.0/SoftwareStack/Griffin_Core0/../adv7664/DdcTx/Debug" -L"C:/tars/cces16320/NipTrunk2.5.0/SoftwareStack/Griffin_Core0/../adv7664/Interrupt/Debug" -L"C:/tars/cces16320/NipTrunk2.5.0/SoftwareStack/Griffin_Core0/../adv7664/RegisterDriver/Debug" -L"C:/tars/cces16320/NipTrunk2.5.0/SoftwareStack/Griffin_Core0/../adi/Hdmi/Debug" -Wl,--gc-sections -madi-threads -mcomponent="C:/Analog Devices/uCOS-III-Rel2.0.0/uCOS-III/libraries.xml" -mdebug-libs -o  "Griffin_Core0" @input-file.txt  -ladi_i2c_lib -ladv7664_intrpt_lib -ladi_hdmi_lib -ladv7664_RegDriver_lib -ladi_edid_lib -ladi_hdcp_lib -ladv7664_ddctx_lib -ladi_i2c_lib -ladv7664_intrpt_lib -ladi_hdmi_lib -ladv7664_RegDriver_lib -ladi_edid_lib -ladi_hdcp_lib -ladv7664_ddctx_lib -lm
    'Finished building target: Griffin_Core0'
    ' '

    12:51:15 Build Finished (took 3s.705ms)