Menu

#3752 sdar is not working

open
nobody
None
other
5
2024-06-29
2024-06-29
No

sdar terminates with a strange error code and does not create a library file.

$ make
rm test.lib
rm: cannot remove `test.lib': No such file or directory
make: [all] Error 1 (ignored)
sdcc  -mmcs51 -c -o a.rel a.c
sdcc  -mmcs51 -c -o b.rel b.c
sdcc -v
SDCC : mcs51/z80/z180/r2k/r2ka/r3ka/sm83/tlcs90/ez80_z80/z80n/r800/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15/mos6502/mos65c02 TD- 4.4.0 #14620 (MINGW32)
published under GNU General Public License (GPL)
sdar rcs test.lib a.rel b.rel
make: *** [all] Error -1073741701

sdcc-4.4.0-setup.exe - bad
sdcc-4.4.0-rc3-setup.exe - bad
sdcc-4.4.0-rc3-x64-setup.exe - good
sdcc-4.3.0-rc1-setup.exe - good
sdcc-4.3.0-x64-setup.exe - good

3 Attachments

Discussion

  • Janko Stamenović

    This can be considered a duplicate of [#3714]

    https://sourceforge.net/p/sdcc/bugs/3714/#e483/4c8a

    The workaround:

    I was able to install 32-bit 4.4.0 #14620 (MINGW32) observe sdar failing to start, but then download PortableGit-2.44.0-32-bit.7z.exe and unpack from it only:

     libwinpthread-1.dll
     libgcc_s_dw2-1.dll
     zlib1.dll
    

    From the \mingw32\bin of it, then put these three in the sdcc bin directory where sdar.exe is, and then sdar showed help etc.

    GNU ar (sdbinutils derived from GNU Binutils) 2.38

     

    Related

    Bugs: #3714


    Last edit: Maarten Brock 2024-07-01
  • Dmitry Kharitonov

    I saw this bug report. It was not clear from the behavior whether it crashes or not. I did a simple investigation and found that the sdcc-4.4.0-rc3-x64-setup.exe package works. Now I just switched to sdcc-4.4.0-rc3-x64-setup.exe.
    Thanks for the answer.

     

Log in to post a comment.