.bat build (Linux Computer)

Sysprogs forums Forums VisualGDB .bat build (Linux Computer)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36108
    Lonka
    Participant

    We have an embedded project which is successfully build on Windows. To integrate it with our Build Server it is required to be build on Linux as well.

    I have parsed the .bat build script from windows to Linux inspired from this post (https://sysprogs.com/w/forums/topic/build-project-on-linux/).

    Unfortunately the output wasn’t binary equal to the original build on the windows computer.
    On linux I am using the last GNU ARM Embedded Toolchain 10.3-21.10 (which is now deprecated). This toolchain is used instead of the normal GCC compiler as the .bat script generated by VisualGDB uses arm-none-eabi-gcc and arm-none-eabi-g++, which takes flags the normal GCC compiler doesn’t. On Windows I am using VisualGDB 6 and MsBuild

    What can I do to get the excact same build on the Linux?

    Best Regards Nikolaj

    #36109
    support
    Keymaster

    Hi,

    The procedure for getting exactly the same output would be to compare the builds, narrow down on specific differences, and track each of them to the root cause. That said, the ELF files will not be 100% equal due to source file paths stored in them, and the symbol in the final binary could be in a different order if the linker does not pick them deterministically.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.