public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] IMPORTANT ! for problem with GCC and INSIGHT build under CYGWIN !!!
@ 2000-06-11  2:59 Charles-Henri
  2000-06-12 11:14 ` Jonathan Larmour
  0 siblings, 1 reply; 4+ messages in thread
From: Charles-Henri @ 2000-06-11  2:59 UTC (permalink / raw)
  To: ecos-discuss; +Cc: Jonathan Larmour

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2666 bytes --]

Hello,
 
for all users that want to build GCC and GDB under 
CYGWIN and an error occur with cygwin.dll version 1.1.1 or 1.1.2, 
I have a good news, I have found that is the 
"patch" command that transform output files in text mode with an \r in 
end
of line, then the command "tr -d '\r' 
ecos-gcc-2952.pat ¦ patch -p0" create output file that make problem with 
make
command.
 
I have build this little bash file for correct the 
files updated with path, you can apply the patch of gcc and gdb and
after go this little bash script file 
:
 
 
#!/bin/bash
# Correct the Patch error output in text mode with \r End 
of Line for GCC patch
cd /src/gcc/gcc-2.95.2
tr -d '\r' < gcc/Makefile.in > foo ; cp foo 
gcc/MakeFile.in
tr -d '\r' < gcc/configure.in > foo ; cp foo 
gcc/configure.in
tr -d '\r' < gcc/configure > foo ; cp foo 
gcc/configure
tr -d '\r' < gcc/reload1.c > foo ; cp foo 
gcc/reload1.c
tr -d '\r' < gcc/config/i386/i386elf.h > foo ; cp 
foo gcc/config/i386/i386elf.h
tr -d '\r' < gcc/config/i386/t-i386elf > foo ; cp 
foo gcc/config/i386/t-i386elf
tr -d '\r' < gcc/config/sparc/liteelf.h > foo ; cp 
foo gcc/config/sparc/liteelf.h
tr -d '\r' < gcc/config/sparc/sp86x-aout.h > foo ; 
cp foo gcc/config/sparc/sp86x-aout.h
tr -d '\r' < gcc/config/sparc/t-sp86x > foo ; cp foo 
gcc/config/sparc/t-sp86x
tr -d '\r' < gcc/config/sparc/sp86x-elf.h > foo ; cp 
foo gcc/config/sparc/sp86x-elf.h
tr -d '\r' < gcc/config/arm/arm.h > foo ; cp foo 
gcc/config/arm/arm.h
tr -d '\r' < gcc/config/arm/t-arm-elf > foo ; cp foo 
gcc/config/arm/t-arm-elf
tr -d '\r' < config.sub > foo ; cp foo 
config.sub
tr -d '\r' < gcc/config/mips/elf.h > foo ; cp foo 
gcc/config/mips/elf.h
tr -d '\r' < gcc/cstamp-h.in > foo ; cp foo 
gcc/cstamp-h.in
tr -d '\r' < gcc/config.in > foo ; cp foo 
gcc/config.in
rm foo
# Enf of Job
echo "End of Job !"
 
#!/bin/bash
# Correct the Patch error output in text mode with \r End 
of Line for Insight-5.0 patch
cd /src/gdb/insight-5.0
tr -d '\r' < tcl/generic/tclFileName.c > foo ; cp 
foo tcl/generic/tclFileName.c
tr -d '\r' < tcl/generic/tclInitScript.h > foo ; cp 
foo tcl/generic/tclInitScript.h
tr -d '\r' < tcl/win/tclWinFile.c > foo ; cp foo 
tcl/win/tclWinFile.c
rm foo
# Enf of Job
echo "End of Job !"
 
after apply this little script, you can build your tools with configure and 
make, all is right.
 
I have search for modify the patch command line (--binary)  or ... but 
unsuccessly, if any find how make more simply
 
like this :  patch -p0 < ecos-gcc-2952.pat ¦ tr -d 
'\r'     (this sample dosen't work unfortunately)
 
say me at charles-henri@prolectronic.com
 
 
 

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

end of thread, other threads:[~2000-06-13 15:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-11  2:59 [ECOS] IMPORTANT ! for problem with GCC and INSIGHT build under CYGWIN !!! Charles-Henri
2000-06-12 11:14 ` Jonathan Larmour
2000-06-13 15:24   ` [ECOS] NEC MIPS evlation board gcc build problem Ling Su
2000-06-13 15:45     ` [ECOS] " 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).