public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] patch problems when installing eCos 1.3.1
@ 2000-04-20  5:09 Anders Holmberg (QMW)
  2000-04-25  6:10 ` Jonathan Larmour
  0 siblings, 1 reply; 3+ messages in thread
From: Anders Holmberg (QMW) @ 2000-04-20  5:09 UTC (permalink / raw)
  To: ecos-discuss

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?

/Anders Holmberg

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] patch problems when installing eCos 1.3.1
  2000-04-20  5:09 [ECOS] patch problems when installing eCos 1.3.1 Anders Holmberg (QMW)
@ 2000-04-25  6:10 ` Jonathan Larmour
  2000-04-26 12:49   ` Jonathan Larmour
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Larmour @ 2000-04-25  6:10 UTC (permalink / raw)
  To: Anders Holmberg (QMW); +Cc: ecos-discuss

"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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] patch problems when installing eCos 1.3.1
  2000-04-25  6:10 ` Jonathan Larmour
@ 2000-04-26 12:49   ` Jonathan Larmour
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Larmour @ 2000-04-26 12:49 UTC (permalink / raw)
  To: Anders Holmberg (QMW), ecos-discuss

Jonathan Larmour wrote:
> 
> "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.

I've now found a workaround for the problem with cygwin patch (which is
actually a c library problem). Apply the patch instead as follows:

$ tr -d '\r' < ecos-net-gcc-2_95.2-patchset | patch -p0 

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-04-26 12:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-20  5:09 [ECOS] patch problems when installing eCos 1.3.1 Anders Holmberg (QMW)
2000-04-25  6:10 ` Jonathan Larmour
2000-04-26 12:49   ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).