<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am very new to rtems.I want to install it on
windows nt.I am having cygwin also on my systems.I have followed the steps.I
have got problem when i tried to build the gcc.i have followed the steps
below</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>i have downloaded<BR></FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> gcc 2.95.2<BR> FTP
Site: oarcorp.com<BR> Directory:
/pub/rtems/snapshots/c_tools/source<BR>
File:
gcc-2.95.2.tar.gz<BR>
URL: <A
href="ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/">ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer:->done</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> binutils 2.11<BR> FTP
Site: oarcorp.com<BR> Directory:
/pub/rtems/snapshots/c_tools/source<BR>
File:
binutils-2.11.tar.bz2<BR>
URL: <A
href="ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/">ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer:->done</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> newlib 1.9.0<BR> FTP
Site: oarcorp.com<BR> Directory:
/pub/rtems/snapshots/c_tools/source<BR>
File:
newlib-1.9.0.tar.gz<BR>
URL: <A
href="ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/">ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer:->done</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> gdb 5.0<BR> FTP
Site: oarcorp.com<BR> Directory:
/pub/rtems/snapshots/c_tools/source<BR>
File:
gdb-5.0.tar.gz<BR>
URL: <A
href="ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/">ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer:->done</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> Download the patches for the above tools.
Patches are the files with extension<BR> ".diff".</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> RTEMS Specific Tool Patches and
Scripts<BR> FTP Site: <A
href="ftp://ftp.OARcorp.com">ftp.OARcorp.com</A><BR>
Directory: /pub/rtems/snapshots/c_tools/source<BR>
File:
binutils-2.11-rtems-20010409.diff<BR>
File:
newlib-1.9.0-rtems-20010221.diff<BR>
File:
gcc-2.95.2-rtems-20010221.diff<BR>
File: gdb-5.0-rtems-20010314.diff
<BR> URL: <A
href="ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/">ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BR> </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- Started cygwin.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- Create "/source/rtems" directory under the root.
Enter the foll. command<BR>
<BR> "mkdir
/source/rtems".</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer:->done </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- Create a directory under root called
"/build/rtems" for the building the <BR> toolset.<BR>
"mkdir /build/rtems".</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer:->done</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Building Binutils:<BR>------------------<BR>- cd
/source/rtems</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- Execute the following command<BR> bunzip2
/rtemsarchive/binutils-2.11.tar.bz2</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> This should create a binutils-2.11.tar under
/rtemsarchive directory.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer:->done</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- Extract the files from the "binutils-2.11.tar"
archive.<BR> tar xvf /rtemsarchive/binutils-2.11.tar</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- After unpacking the tar file a directory
"binutils-2.11" will be created under<BR> /source/rtems.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer:->done </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- Apply the RTEMS binutils patch. If the patch file
is a file with extension".gz"<BR> then use the command
sequence</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> cd binutils-2.11<BR> zcat
/rtemsarchive/binutils-2.11-rtems-20010409.diff.gz | \<BR>
patch -p1</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> If the patch file is just a diff file then
use the command sequence<BR> <BR> cd binutils-2.11<BR>
<BR> patch -p1 <
/rtemsarchive/binutils-2.11-rtems-20010409.diff</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer:->done<BR>
<BR>- Check to see if any of these patches have been rejected using the
following sequence: </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> cd binutils-2.11<BR> find . -name
"*.rej" -print</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> If any files are found with the .rej
extension, a patch has been rejected. <BR> This should not happen with a
good patch file which is properly applied.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer:->done no "rej" files found</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- cd /build/rtems. Then create a directory
"binutils" .<BR> <BR> mkdir binutils.<BR> cd
binutils</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- Invoke configure and make to build and install
binutils-2.11 for i386-rtems target: </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> /source/rtems/binutils-2.11/configure
--target=i386-rtems \<BR> --prefix=/opt/rtems<BR> make all<BR>
make info<BR> make install</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer:->done</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- Add the directory containing the executables to
your PATH. Usually all the <BR> executables are stored in
"/opt/rtems".</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>sudheer:->done<BR> I
have done lik
PATH=/opt/rtems:$PATH<BR>
export PATH</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Building GCC & Newlib
:<BR>-----------------------<BR>- cd /source/rtems</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- Extract the files from the "gcc-2.95.2.tar.gz"
archive.<BR> tar xzvf /rtemsarchive/gcc-2.95.2.tar.gz</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer:->done</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- After unpacking the tar file a directory
"gcc-2.95.2" will be created under<BR> /source/rtems.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer:->done<BR> <BR>- </FONT></DIV>
<DIV><FONT face=Arial size=2> <BR> cd
gcc-2.95.2<BR> <BR> patch -p1 <
/rtemsarchive/gcc-2.95.2-rtems-20010221.diff</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>sudheer:->done<BR>
<BR> <BR>- Check to see if any of these patches
have been rejected using the following sequence: </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> cd gcc-2.95.2<BR> find . -name "*.rej"
-print</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>sudheer:->done<BR>
No "rej"files found.....<BR> <BR> If any
files are found with the .rej extension, a patch has been rejected. <BR>
This should not happen with a good patch file which is properly
applied.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- cd /source/rtems</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- Extract the files from the "newlib-1.9.0.tar.gz"
archive.<BR> tar xzvf /rtemsarchive/newlib-1.9.0.tar.gz</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- After unpacking the tar file a directory
"newlib-1.9.0" will be created under</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> /source/rtems.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2><BR>sudheer:->done<BR> <BR>
<BR></FONT><FONT face=Arial size=2>cd newlib-1.9.0<BR> <BR> patch
-p1 <
/rtemsarchive/newlib-1.9.0-rtems-20010221.diff<BR>
<BR>- Check to see if any of these patches have been rejected using the
following sequence: </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> cd newlib-1.9.0<BR> find . -name
"*.rej" -print</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2><BR>sudheer:->done<BR>
No "rej"files found.....<BR> </FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer->i have done
<BR>
PATH=/source/rtems/binutils-2.11/binutils:$PATH<BR> PATH=/source/rtems/binutils-2.11:$PATH<BR> export
PATH </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- The C Library is built as a subordinate component
of gcc-2.95.2. Because of this, </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> the newlib-1.9.0 directory source must be
available inside the <BR> gcc-2.95.2 source tree. This is normally
accomplished using a </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>symbolic link as <BR> shown in this example:
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> cd gcc-2.95.2<BR> ln -s
../newlib-1.9/newlib .</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>sudheer:->done<BR>
I HAVE DONE LIKE</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>
ln -s
/source/rtems/newlib-1.9.0/newlib <BR>
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- Invoke configure and make to build and install
gcc-2.95.2 for the i386-rtems target: </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> cd /build/rtems<BR> mkdir
gcc<BR> cd gcc<BR> /source/rtems/gcc-2.95.2/configure
--target=i386-rtems \<BR> --with-gnu-as --with-gnu-ld --with-newlib
--verbose \<BR> --enable-threads --prefix=/opt/rtems</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>sudheer->done<BR> <BR>make
all</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>sudheer-><BR> I
am getting two errors. <BR>/source/rtems/gcc-2.95.2/gcc/libgcc2.c;301:parse
error before 'uu'<BR>make[3]:***[libgcc2.a] Error1<BR>make[1]:***[all-gcc]error
2</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BR>make info<BR>sudheer-> done</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>make
install<BR> Sudheer-><BR>
I am getting errors
like<BR>
make[1]***[crtbegin.o]Error
1<BR>
make[2]:leaving directory
'/build/rtems/gcc/gcc'<BR>
make: ***[install-gcc]error 2</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>can you please tell me where i went
wrong</FONT></DIV>
<DIV><FONT face=Arial size=2>with regards</FONT></DIV>
<DIV><FONT face=Arial size=2>sudheer</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV></BODY></HTML>