ucSim problem- mcs51/cygwin- regression tests

BLRCalvin
2011-07-07
2013-03-12
  • BLRCalvin
    BLRCalvin
    2011-07-07

    Hello All,

    Namaste.

    I downloaded snapshot #6613, built SDCC on Cygwin. However, when I am trying to run the regression tests, I am encountering the following errors for all the tests in the folder "regression\tests". Error messages of a few test cases are as below:

    gen/mcs51-small/bug-1292721/bug-1292721.out:1:-- FAIL: "timeout, simulation killed" in gen/mcs51-small/bug-1292721/bug-1292721.c
    Failure:
                         (f: 1, t: 1, c: 1, b: 0, t: 0)
    gen/mcs51-small/bug-1294691/bug-1294691.out:1:-- FAIL: "timeout, simulation killed" in gen/mcs51-small/bug-1294691/bug-1294691.c
    Failure:
                         (f: 1, t: 1, c: 1, b: 0, t: 0)
    gen/mcs51-small/bug-136564/bug-136564.out:1:-- FAIL: "timeout, simulation killed" in gen/mcs51-small/bug-136564/bug-136564.c
    Failure:

    Hex files and intermediate files (.out, .map, .mem) are built in "regression/gen/mcs51-small/<DIR>" folder, where <DIR> is folder name for each test case. However, regression tests are passing for host system.

    The host details are: uname -m = i686 ; uname -r = 1.7.9(0.237/5/3); uname -s = CYGWIN_NT-6.1

    Build process:

    Used GCC v3.4.4 & sdcc_cygwin_mingw32 script to build SDCC. Installed SDCC at /usr/local. Only bin folder along with executables is available at this location.

    Please help me to find out what I am missing.

    Thanks in advance for your time.

    Namaste,
    Raghunath Lolur.

     
  • Maarten Brock
    Maarten Brock
    2011-07-09

    Hi Raghunath,

    I remember cygwin to be 10x slower than running native linux in the past. I don't know how it performs now. But I suggest you to extend the timeout first to see if that fixes the problem. It is in support/regression/ports/mcs51-common/spec.mk

    -$(CASES_DIR)/timeout 30 …

    Greetings,
    Maarten

     
  • BLRCalvin
    BLRCalvin
    2011-07-11

    Maarten,

    Namaste.

    As per your suggestion, I extended the timeout to 300 but the problem persists. So, I tried to run the simulator on the shell as below:

    $s51 bug-751703.ihx
    uCsim 0.5.4, Copyright (C) 1997 Daniel Drotos, Talker Bt.
    ……
    1307 words read from bug-751703.ihx
    0>r                              --------->  run                  
    Can't select : 10093   ---------> This error message is displayed in an infinite loop.

    dis & s commands seem to be working since disassembly info & stepping was possible. But, run command is issuing error.

    Any hints for me?

    Thanks,
    Raghunath Lolur.

     
  • Maarten Brock
    Maarten Brock
    2011-07-11

    Then I think it is a bug. Can you please post it in the Bug Tracker?