How to build project in Linux

Created at 2021-12-20 16:54:07

Hi, I am trying to build a project in linux using the arm-none-eabi-gcc compiler (version 5.4.1). But the binari file differs by 8 kilobytes, if compiled in Windows with the compiler from IDE. The same makefile is used.
How can I build a project in Linux so that the build result would be the same?
Is it possible that the IDE uses a non-release version of the compiler?

Left window: Build result and compiler version in Windows.
Right window: Build result and compiler version in debian docker.
image.png

More

Follower
0
Views
259
2 Answers
tfx
tfx 2021-12-23

Hi! Can you upload the .map file which generated by arm-none-eabi-ld?

aatermer
aatermer 2021-12-23

If i use this version of compiler i get same result.
Debian use some other build of 5.4.1 compiler.
That was the problem. It has now been resolved.

image.png

When are you planning to migrate to newer versions of the compiler?

Write Your Answer

Log in to publish your answer.,Click here to log in.

Create
Post

Share