Menu

#3133 Run-time seg fault with sdar when building SDCC under MSys2

open
nobody
Build
5
2020-11-03
2020-10-14
No

When building SDCC, an segfault happens in sdar command.
The problem is fixed by upgrading sdbinutils to binutils 2.31.1.
I am working on a patch to do the upgrade; I am still testing it.

Tim S.

Discussion

  • Tim Stahlhut

    Tim Stahlhut - 2020-10-14

    The problem is not visable if the option "-O2" is used. It is visable when options "-Og -fcaller-saves" are used.

    Tim S.

     
  • Tim Stahlhut

    Tim Stahlhut - 2020-10-15

    The upgrade to binutils 2.31.1 fixed about 24 of the 25 segfaults.
    Is there a even newer version of binutils that any of you would suggest trying?
    I picked 2.31.1 because it appeared to have fixes for segfaults in the changes.

    Tim S.

     
    • Philipp Klaus Krause

      In the past, when a problem with binutils came up, I usually upgraded to the latest release of GNU binutils. To do so, I first looked at the diff from the current version (i.e. compared current sdbinutils to the version of GNU binutils it is based on), then made corresponding changes to the current GNU binutils (remove targets irrelevant for SDCC, add the little bit of extra stuff SDCC needs).

       

      Last edit: Maarten Brock 2024-09-04
  • Tim Stahlhut

    Tim Stahlhut - 2020-10-15

    The regression tests for ds390 has many ASlink-Warning-Undefined issues;
    so, my version upgrade of sdbinutils to 2.31.1 needs more work.

    Tim S.

     
    • Philipp Klaus Krause

      Hello, Tim.
      I tried to contact you via SourceForge, but didn't get a reply. Could you contact me by email (my email address is in the SDCC Changelog)? Thanks.

       

Log in to post a comment.

MongoDB Logo MongoDB