Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1274 SDCC Hangs on Win98 SE

closed-works-for-me
Borut Ražem
None
5
2013-05-25
2007-01-09
Anonymous
No

from horvaath@alpha.tmit.bme.hu

Hi our there,

i've just started with sdcc, and found
fine but I have some issues on it.

1.

sdcc hangs on Win98SE during compile - without a hiss.
(proved on a desktop, and a notebook machine)
gpasm is used as an assembler, but it
does not run at the moment of crash.

sdcc --help worked :-)

Environment:

MINGW and MSYS shell.
sdcc from sdcc-20061205-4501-setup.exe
gpasm from gputils-0.13.4-1.exe

Archive included...
That stuff went well on XP.

Best regards
Gyuri
(Gyorgy Horvath)

Discussion

1 2 > >> (Page 1 of 2)
  • Files of struggle

     
  • Borut Ražem
    Borut Ražem
    2007-01-14

    Logged In: YES
    user_id=568035
    Originator: NO

    I tried it with sdcc-20061231-4543-setup.exe on Win98 4.10.1998 without problems.

    Borut

     
  • Borut Ražem
    Borut Ražem
    2007-01-14

    • assigned_to: nobody --> borutr
     
  • Logged In: YES
    user_id=589052
    Originator: NO

    I can reproduce the problem here.
    Running Win98SE 4.10.2222A inside an emulator.
    qemu 0.9.0 (http://en.wikipedia.org/wiki/QEMU).

    - started Win98SE with
    "nice qemu -m 384 -localtime -smb /samba ./Windows98SE.qcow.img"
    on an OpenSUSE 10.2 host (32 bit).

    - installed sdcc-20070308-4665-setup.exe (THANKS A
    LOT FOR EVERYBODY WHO HELPED SETTING UP THE NIGHTLY
    BUILDS AGAIN! SPECIAL THANKS TO ERIK WHO PROVIDES
    THE COMPILE YARD!) accepting all installation defaults.
    Did not reboot at the end of install.

    - unpacked the file stdinout-070109.tar.gz that Gyuri provided

    - started command.com

    - adapted the variable PREFIX within Makefile to my path

    - "make clean" (an ancient gnu make 3.80 (2002) of an
    winavr installation)

    - "make" prints the command:
    C:\tmp\stdinout>make
    /programme/sdcc/bin/sdcc.exe -S -V -mpic16 -p18f4550 --pstack-model=small -I /pr
    ogramme/sdcc/include/pic16 stdinout.c
    + \PROGRA~1\SDCC\BIN\SDCPP.EXE -nostdinc -Wall -std=c99 -I"/programme/sdcc/inclu
    de/pic16" -Dpic18f4550 -D__18f4550 -DSTACK_MODEL_SMALL -obj-ext=.o -DSDCC_MODEL_
    SMALL -DSDCC=264 -DSDCC_pic16 -D__pic16 -I"/programme/sdcc/bin\..\include\pic16"
    -I"/programme/sdcc/include/pic16" "stdinout.c"

    and then nothing more seems to happen for at least 15 minutes.
    CPU load on linux host is at 100% then. No new files were generated
    in the directory "c:\tmp\stdinout". On the windows guest I then
    terminated sdcc with the taskmanager but DOS gives no command
    prompt again (and CPU load on host stays at 100% - also if the
    corresponding DOS window is (forcefully) closed as well).

    I could reproduce this both with:
    sdcc-20061231-4543-setup.exe and
    sdcc-20070308-4665-setup.exe

     
  • Borut Ražem
    Borut Ražem
    2007-03-08

    Logged In: YES
    user_id=568035
    Originator: NO

    Frieder,

    can you do some debugging to find out where the problem is or tell me where I can get the Win98SE image (you mentioned Windows98SE.qcow.img)?

    Borut

     
  • Logged In: YES
    user_id=589052
    Originator: NO

    > can you do some debugging to find out where the problem is

    Unfortunately I'm pretty clueless as to debugging
    Windows applications.

    > or tell me where I can get the Win98SE image
    > (you mentioned Windows98SE.qcow.img)?

    It's an image I've set up with instructions similar to these:
    http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC16
    and a Win98SE installation CD. It contains sources I do not
    own so I may not give away, so we eventually have to resort
    to the first (more cumbersome) option.

     
  • wek
    wek
    2007-05-04

    Logged In: YES
    user_id=1201677
    Originator: NO

    Cannot reproduce the problem here.

    Tried with SDCC.EXE 2.6.1 #4478 (Nov 23 2006) (MINGW32) and a freshly installed 2.6.5 #4784 (May 4 2007) (MINGW32).

    I don't have the rest of the toolchain (I don't PIC) so it failed on calling the assembler, but succeeded to create stdinout.asm. On newer version of sdcc failed to compile (but did not freeze) in the following way:

    C:\PROGRA~1\sdcc/bin/sdcc.exe -S -V -mpic16 -p18f4550 --pstack-model=small -I C:
    \PROGRA~1\sdcc/include/pic16 stdinout.c
    + C:\PROGRA~1\SDCC\BIN\SDCPP.EXE -nostdinc -Wall -std=c99 -I"C:\PROGRA~1\sdcc/in
    clude/pic16" -Dpic18f4550 -D__18f4550 -DSTACK_MODEL_SMALL -obj-ext=.o -DSDCC_MOD
    EL_SMALL -DSDCC=265 -DSDCC_pic16 -D__pic16 -I"C:\PROGRA~1\sdcc/bin\..\include\pi
    c16" -I"C:\PROGRA~1\sdcc/include/pic16" "stdinout.c"
    stdinout.c:26: error 26: '_SCKP' not a structure/union member
    C:\PP\BIN\WIN32\MAKE.EXE: *** [stdinout.o] Error 1

    (Apparently missing from the newer version of header - when commenting out the offending line from stdinout.c, compiles and then fails on the lack of assembler in the same way as the older version of sdcc).

    I used GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for mingw32

    Win98SE 4.10.1998.

    --

    I'd recommend that Gyuri and Frieder would try to run sdcc with directly from a command line (or a bat), rather than running make, thus reducing the number possible weak links in the chain.

    Jan Waclawek

     
  • Maarten Brock
    Maarten Brock
    2007-05-25

    Logged In: YES
    user_id=888171
    Originator: NO

    Today I got a hold of a laptop with a Dutch Windows 98 SE (4.10.2222A) and the results are the same as Jan found. I did not try with MINGW or MSYS shell nor with gpasm, but I think one these is the problem, not SDCC.

    I propose to close this item, but I leave that to the assignee a.k.a. the release manager.

     
  • Borut Ražem
    Borut Ražem
    2007-05-26

    Logged In: YES
    user_id=568035
    Originator: NO

    Now the score is 2:2 ;-)

    I suggest to keep it open, since we still don't know where exactly the problem is: it seems that the compilation hangs after the invocation of the preprocessor and before running the assembler...

    Borut

     
  • Borut Ražem
    Borut Ražem
    2007-08-25

    • milestone: --> unreproducable
    • status: open --> closed-works-for-me
     
1 2 > >> (Page 1 of 2)