[ABANDONED] emBuild not executing pre-build step defined in project file

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [ABANDONED] emBuild not executing pre-build step defined in project file

    I have an SES project that uses a pre-build step to generate a header file used later in the build. I also have a Docker container intended for CI builds so that I can use emBuild to build the code on any host OS. If I use the container on Windows, the pre-build step is executed. If I use the container on a CI machine, the pre-build step is not executed, and the build fails (because the expected header is missing). The emBuild invocation is identical in both cases:

    Source Code

    1. /usr/local/ses/bin/emBuild -rebuild -verbose \
    2. -config "Debug (extra words)" \
    3. myproject.emProject

    emBuild fails in interesting ways when run non-interactively from the container, for example:

    Source Code

    1. + /usr/local/ses/bin/emBuild -rebuild -verbose -echo -config Debug_E4_BLE -solution Banana banana.emProject
    2. 1>Building Library from project 'application' in configuration 'Debug_E4_BLE'
    3. 1>/usr/local/ses/bin/emBuild /usr/local/ses/source/arm_segger_studio_auto.emProject -config V7EM FPv4-SP-D16 THUMB LE Hard Balanced WCHAR32 EnumMinSize Release -project all -lock /usr/local/ses/lib/build.lck
    4. 4>Compiling 'battery.cpp' from project 'application' in configuration 'Debug_E4_BLE'
    It's not clear why emBuild is trying to build a Library or why it is running another emBuild instance.

    Does anyone have some experience with this kind of problem?

    Thanks in advance,
    -Adam
  • Hello,

    Thank you for your inquiry.
    Such an issue is not known to us.

    Which Embedded Studio version are you using exactly?

    The library that is being build is the C standard library. With ES V7 the runtime library is build on demand to keep the installation and download as small as possible.
    So this is most likely what you are seeing here.
    As a sanity check, could you try one of the ES V6 versions in comparison, do you see the same issue there?

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.