Hi Bernhard,
 
the problem is that asranlib is a native win32 applications, so it 
doesn't accept cygwin format paths (/cygdrive/c/...). We have to use 
cygpath -w /cygdrive/c/... to convert cygwin format path to windows 
format path (c:\...)

The asranlib invocation should look like:

../../bin/asranlib `cygpath -w 
/home/Bernhard/sdcc/device/lib/build/ds390/libfloat.lib`

I'll try to fix it during the weekend.

Thanks for the report,
Borut


Bernhard Beroun wrote:
> Hi,
>
> I want to cross compile the sdcc-2.9.0 sources on cygwin. For this 
> reason, i moved the file "sdcc_cygwin_mingw32" to the root directory and
> ran the script. However, I get a few error messages which are attached 
> below.
> I also tried cross compiling sdcc-2.9.0 on linux (Kubuntu Gusty). I got 
> the same error messages.
> Am I doing something wrong?
>
> Thanks,
>
> Best Regards
> Bernhard
>
>
> make[4]: Leaving directory `/home/Bernhard/sdcc/device/lib'
> make port-specific-objects
> make[4]: Entering directory `/home/Bernhard/sdcc/device/lib'
> if [ -f ds390/Makefile ]; then \
>       make -C ds390 PORT=ds390; \
>     fi
> make[5]: Entering directory `/home/Bernhard/sdcc/device/lib/ds390'
> rm -f Makefile.dep
> for i in tinibios.c memcpyx.c lcd390.c i2c390.c rtc390.c putchar.c; do \
>       ../../../bin/sdcc -M -I./../../include $i >${i}.dep; \
>       cat ${i}.dep >>Makefile.dep; \
>       rm ${i}.dep; \
>     done
> make[5]: Leaving directory `/home/Bernhard/sdcc/device/lib/ds390'
> make[5]: Entering directory `/home/Bernhard/sdcc/device/lib/ds390'
> ../../../bin/sdcc -c -mds390 -I./../../include  --std-c99 tinibios.c
> ../../../bin/sdcc -c -mds390 -I./../../include  --std-c99 memcpyx.c
> ../../../bin/sdcc -c -mds390 -I./../../include  --std-c99 lcd390.c
> ../../../bin/sdcc -c -mds390 -I./../../include  --std-c99 i2c390.c
> ../../../bin/sdcc -c -mds390 -I./../../include  --std-c99 rtc390.c
> ../../../bin/sdcc -c -mds390 -I./../../include  --std-c99 putchar.c
> ar -Scq ../build/ds390/libds390.lib tinibios.rel memcpyx.rel  lcd390.rel 
> i2c390.rel rtc390.rel putchar.rel
> ../../../bin/asranlib ../build/ds390/libds390.lib
> make[5]: Leaving directory `/home/Bernhard/sdcc/device/lib/ds390'
> make[4]: Leaving directory `/home/Bernhard/sdcc/device/lib'
> make /home/Bernhard/sdcc/device/lib/build/ds390/libfloat.lib 
> /home/Bernhard/sdcc/device/lib/build/ds390/libint.lib 
> /home/Bernhard/sdcc/device/lib/build/ds390/liblong.lib 
> /home/Bernhard/sdcc/device/lib/build/ds390/libsdcc.lib
> make[4]: Entering directory `/home/Bernhard/sdcc/device/lib'
> ar -Scq /home/Bernhard/sdcc/device/lib/build/ds390/libfloat.lib 
> ds390/_atof.rel ds390/_schar2fs.rel ds390/_sint2fs.rel 
> ds390/_slong2fs.rel ds390/_uchar2fs.rel ds390/_uint2fs.rel 
> ds390/_ulong2fs.rel ds390/_fs2schar.rel ds390/_fs2sint.rel 
> ds390/_fs2slong.rel ds390/_fs2uchar.rel ds390/_fs2uint.rel 
> ds390/_fs2ulong.rel ds390/_fsadd.rel ds390/_fsdiv.rel ds390/_fsmul.rel 
> ds390/_fssub.rel ds390/_fseq.rel ds390/_fsgt.rel ds390/_fslt.rel 
> ds390/_fsneq.rel ds390/fabsf.rel ds390/frexpf.rel ds390/ldexpf.rel 
> ds390/expf.rel ds390/powf.rel ds390/sincosf.rel ds390/sinf.rel 
> ds390/cosf.rel ds390/logf.rel ds390/log10f.rel ds390/sqrtf.rel 
> ds390/tancotf.rel ds390/tanf.rel ds390/cotf.rel ds390/asincosf.rel 
> ds390/asinf.rel ds390/acosf.rel ds390/atanf.rel ds390/atan2f.rel 
> ds390/sincoshf.rel ds390/sinhf.rel ds390/coshf.rel ds390/tanhf.rel 
> ds390/floorf.rel ds390/ceilf.rel ds390/modff.rel ds390/errno.rel 
> ds390/_fscmp.rel ds390/_fsget1arg.rel ds390/_fsget2args.rel 
> ds390/_fsnormalize.rel ds390/_fsreturnval.rel ds390/_fsrshift.rel 
> ds390/_fsswapargs.rel ds390/_logexpf.rel; ../../bin/asranlib 
> /home/Bernhard/sdcc/device/lib/build/ds390/libfloat.lib
> No such file or directory
> asranlib: /home/Bernhard/sdcc/device/lib/build/ds390/libfloat.lib: 
> make[4]: *** [/home/Bernhard/sdcc/device/lib/build/ds390/libfloat.lib] 
> Error 1
> make[4]: Leaving directory `/home/Bernhard/sdcc/device/lib'
> make[3]: *** [objects] Error 2
> make[3]: Leaving directory `/home/Bernhard/sdcc/device/lib'
> make[2]: *** [model-ds390] Error 2
> make[2]: Leaving directory `/home/Bernhard/sdcc/device/lib'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/Bernhard/sdcc/device/lib'
> make: *** [sdcc-device-lib] Error 2
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> Sdcc-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
>   


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to