#1616 SDCC completely broken in multiple ways

closed-fixed
5
2013-05-25
2010-02-08
wek
No

1. #5677 fails to compile with sdcc test.c (running under cmd.exe on WXP):

c:\Program Files\SDCC\sdcc\bin\tmp>..\sdcc --verbose test.c
sdcc: Calling preprocessor...
sdcc: Generating code...
sdcc: Calling assembler...
sdcc: Calling linker...
Assertion failed: str != NULL, file ../support/Util/dbuf_string.c, line 40

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Caught signal 22: SIGABRT

c:\Program Files\SDCC\sdcc\bin\tmp>

2. with -o specified, does call linker but attempting to link against a bogus library (libxa51):

C:\PROGRA~1\sdcc.tmp\sdcc\bin\tmp>..\sdcc test.c -o test.ihx
?ASlink-Warning-Couldn't find library 'libxa51'

?ASlink-Warning-Undefined Global '__mcs51_genRAMCLEAR' referenced by module 'test'

?ASlink-Warning-Undefined Global '__mcs51_genXINIT' referenced by module 'test'

?ASlink-Warning-Undefined Global '__mcs51_genXRAMCLEAR' referenced by module 'test'

?ASlink-Warning-Undefined Global '__sdcc_gsinit_startup' referenced by module 'test'

C:\PROGRA~1\sdcc.tmp\sdcc\bin\tmp>

C:\PROGRA~1\sdcc.tmp\sdcc\bin\tmp>..\sdcc --version
SDCC : mcs51/gbz80/z80/ds390/pic16/pic14/TININative/ds400/hc08 2.9.7 #5677 (Feb 7 2010) (MINGW32)

This is probably due to unfinished changes in library handling in the committed version. [sdcc]/src/mcs51/main.c contains the following suspicious line:
static const char * const _libs[] = { STD_XA51_LIB, NULL, };

Jan Waclawek

----

test.c:
void main(void) {}

Discussion

  • Borut Ražem

    Borut Ražem - 2010-02-09
    • labels: --> C-Front End
    • milestone: --> fixed
    • assigned_to: nobody --> borutr
    • status: open --> closed-fixed
     
  • Borut Ražem

    Borut Ražem - 2010-02-09

    Fixed in svn revision #5680.

    Borut

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks