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
This can be considered a duplicate of [#3714]
https://sourceforge.net/p/sdcc/bugs/3714/#e483/4c8a
The workaround:
Related
Bugs: #3714
Last edit: Maarten Brock 2024-07-01
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.