[ECOS] patch problems when installing eCos 1.3.1

Jonathan Larmour jlarmour@redhat.co.uk
Tue Apr 25 06:10:00 GMT 2000


"Anders Holmberg (QMW)" wrote:
> 
> Hi!
> 
> I have a problem with the patch command when installing eCos 1.3.1. I am trying to build the ARM development tools on Windows (using CygWin version 1.1.0) and when I run patch on the gcc-2.95.2 sources I get the following response.
> 
> bash-2.03$ patch -p0 < ecos-net-gcc-2_95.2-patchset
> patching file `gcc/Makefile.in'
> patching file `gcc/configure.in'
> patching file `gcc/configure'
> patching file `gcc/reload1.c'
> patching file `gcc/config/i386/i386elf.h'
> patching file `gcc/config/i386/t-i386elf'
> patching file `gcc/config/sparc/liteelf.h'
> patching file `gcc/config/sparc/sp86x-aout.h'
> patching file `gcc/config/sparc/t-sp86x'
> patching file `gcc/config/sparc/sp86x-elf.h'
> patching file `gcc/config/arm/arm.h'
> patching file `gcc/config/arm/t-arm-elf'
> patching file `config.sub'
>       0 [sig] patch 6307 stackdump: Dumping stack trace to patch.exe.stackdump
> 
> The file patch.exe.stackdump contains the following information:
> 
> bash-2.03$ cat patch.exe.stackdump
>   18447 [sig] patch 6309 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
> Exception: STATUS_ACCESS_VIOLATION at eip=610099F5
> eax=00000000 ebx=00000000 ecx=00000000 edx=0A04C788 esi=1404FEA0 edi=0A04C810
> ebp=1404FE38 esp=1404FE30 program=c:\cygnus\cygwin_1_1\bin\patch.exe
> cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023
> Stack trace:
> Frame     Function  Args
> 1404FE2C  610099F5  (00000000, 00000000, 00000000, 00000000)
> End of stack trace
> bash-2.03$
> 
> Any suggestions?

It looks like the patch utility in cygwin 1.1 is buggy :-(. Perhaps check
the patch hasn't been corrupted - and that you did download it cleanly, not
using cut-and-paste.

After that, check that your cygwin drive is not mounted in binary mode, as
that seems to be causing lots of trouble.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault


More information about the Ecos-discuss mailing list