thank you very much to track down the problem.
I didn't remember that the path in argv on Windows 9x is always upper
I introduced a diagnostic message if SDAS_DIAG and / or SDLD_DIAG
environment variables are set.
Sorry for a lost day, but you at least succeeded. I lost few several
trying to install Windows 98 on VirtualBox, without success...
Maarten, the case is closed.
Jan Waclawek wrote:
> On a WXP machine, I've patched sdld.c to printf path and progname, compiled with gcc under cygwin, and run it on the W98 (the two machines are physically remote and this cycle takes me a whole day :-( ).
> The result is:
> C:\WEK\51\sbc\sdcc\snake>sdcc test.c -o test.ihx -V --verbose
> sdcc: Calling preprocessor...
> + C:\PROGRA~1\SDCC\BIN\SDCPP.EXE -nostdinc -Wall -obj-ext=.rel -DSDCC_MODEL_SMAL
> L -DSDCC_FLOAT_REENT -DSDCC=297 -DSDCC_REVISION=5677 -DSDCC_mcs51 -D__mcs51 -isy
> stem "C:\PROGRA~1\SDCC\BIN\..\include\mcs51" -isystem "C:\PROGRA~1\SDCC\BIN\..\i
> nclude" "test.c"
> sdcc: Generating code...
> sdcc: Calling assembler...
> + C:\PROGRA~1\SDCC\BIN\SDAS8051.EXE -plosgffwz "test.rel" "test.asm"
> sdcc: Calling linker...
> sdcc: Calling linker...
> + SDLD.EXE -nf "test.lnk"
> path:>C:\WEK\51\SBC\SDCC\SNAKE\SDLD.EXE< progname:>SDLD<
> Unkown option -y ignored
> Unkown option -Y ignored
> ?ASlink-Warning-Couldn't find library 'libxa51'
> ?ASlink-Warning-Paged Area PSEG Boundary Error
> ?ASlink-Warning-Undefined Global '__mcs51_genRAMCLEAR' referenced by module 'tes
> ?ASlink-Warning-Undefined Global '__mcs51_genXINIT' referenced by module 'test'
> ?ASlink-Warning-Undefined Global '__mcs51_genXRAMCLEAR' referenced by module 'te
> ?ASlink-Warning-Undefined Global '__sdcc_gsinit_startup' referenced by module 't
> So, the reason for the -y -Y options ignored is the uppercase pathname of SDLD, which leads to failed compare strncmp(progname, "sdld", 4) in sdld_init().
> I'd recommend to perform a simple tolower() on progname before performing the name detection.
> I'd also recommend to add diagnostic prints in case of undetected sdld name.
> I'd also recommend to do the same with sdas.
> ----- Original Message ---------------
>> I tried to install Win98 in a VirtualBox on Linux, but I had a lot of
>> troubles, so I gave up. (It worked well in VMware on WinXP. Maybe I
>> should install VMware on Linux...).
>> Can you please try to find out what is going wrong so that the following
>> errors are shown?
>> Unkown option -y ignored
>> Unkown option -Y ignored
>> ?ASlink-Warning-Paged Area PSEG Boundary Error
>> ?ASlink-Warning-Undefined Global 'l_IRAM' referenced by module ''