Installation help......please

dinu latish_sudheer at lycos.com
Fri Sep 7 12:29:07 UTC 2001


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

i have downloaded



  gcc 2.95.2
    FTP Site:    oarcorp.com
    Directory:   /pub/rtems/snapshots/c_tools/source
    File:        gcc-2.95.2.tar.gz
    URL:         ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/

sudheer:->done

  binutils 2.11
    FTP Site:    oarcorp.com
    Directory:   /pub/rtems/snapshots/c_tools/source
    File:        binutils-2.11.tar.bz2
    URL:         ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/

sudheer:->done

  newlib 1.9.0
    FTP Site:    oarcorp.com
    Directory:   /pub/rtems/snapshots/c_tools/source
    File:        newlib-1.9.0.tar.gz
    URL:         ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/

sudheer:->done

  gdb 5.0
    FTP Site:    oarcorp.com
    Directory:   /pub/rtems/snapshots/c_tools/source
    File:        gdb-5.0.tar.gz
    URL:         ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/

sudheer:->done

  Download the patches for the above tools. Patches are the files with extension
  ".diff".

  RTEMS Specific Tool Patches and Scripts
    FTP Site:    ftp.OARcorp.com
    Directory:   /pub/rtems/snapshots/c_tools/source
    File:        binutils-2.11-rtems-20010409.diff
    File:        newlib-1.9.0-rtems-20010221.diff
    File:        gcc-2.95.2-rtems-20010221.diff
    File:        gdb-5.0-rtems-20010314.diff 
    URL:         ftp://oarcorp.com/pub/rtems/snapshots/c_tools/source/


  

- Started cygwin.

- Create "/source/rtems" directory under the root. Enter the foll. command
      
        "mkdir /source/rtems".

sudheer:->done  

- Create a directory under root called "/build/rtems" for the building the 
  toolset.
    "mkdir /build/rtems".

sudheer:->done

Building Binutils:
------------------
- cd /source/rtems

- Execute the following command
  bunzip2 /rtemsarchive/binutils-2.11.tar.bz2

  This should create a binutils-2.11.tar under /rtemsarchive directory.

sudheer:->done

- Extract the files from the "binutils-2.11.tar" archive.
   tar xvf /rtemsarchive/binutils-2.11.tar

- After unpacking the tar file a directory "binutils-2.11" will be created under
  /source/rtems.

sudheer:->done  

- Apply the RTEMS binutils patch. If the patch file is a file with extension".gz"
  then use the command sequence

  cd binutils-2.11
  zcat /rtemsarchive/binutils-2.11-rtems-20010409.diff.gz | \
    patch -p1

  If the patch file is just a diff file then use the command sequence
  
  cd binutils-2.11
  
  patch -p1 < /rtemsarchive/binutils-2.11-rtems-20010409.diff

sudheer:->done
      
- Check to see if any of these patches have been rejected using the following sequence: 

  cd binutils-2.11
  find . -name "*.rej" -print

  If any files are found with the .rej extension, a patch has been rejected. 
  This should not happen with a good patch file which is properly applied.

sudheer:->done no "rej" files found

- cd /build/rtems. Then create a directory "binutils" .
  
  mkdir binutils.
  cd binutils

- Invoke configure and make to build and install binutils-2.11 for i386-rtems target: 

  /source/rtems/binutils-2.11/configure --target=i386-rtems \
  --prefix=/opt/rtems
  make all
  make info
  make install

sudheer:->done

- Add the directory containing the executables to your PATH. Usually all the 
  executables are stored in "/opt/rtems".

sudheer:->done
         I have done lik PATH=/opt/rtems:$PATH
                          export PATH



Building GCC & Newlib :
-----------------------
- cd /source/rtems

- Extract the files from the "gcc-2.95.2.tar.gz" archive.
   tar xzvf /rtemsarchive/gcc-2.95.2.tar.gz

sudheer:->done

- After unpacking the tar file a directory "gcc-2.95.2" will be created under
  /source/rtems.

sudheer:->done
  
- 
   
  cd gcc-2.95.2
  
  patch -p1 < /rtemsarchive/gcc-2.95.2-rtems-20010221.diff

sudheer:->done
            
      
- Check to see if any of these patches have been rejected using the following sequence: 

  cd gcc-2.95.2
  find . -name "*.rej" -print

sudheer:->done
            No "rej"files found.....
      
  If any files are found with the .rej extension, a patch has been rejected. 
  This should not happen with a good patch file which is properly applied.

- cd /source/rtems

- Extract the files from the "newlib-1.9.0.tar.gz" archive.
   tar xzvf /rtemsarchive/newlib-1.9.0.tar.gz

- After unpacking the tar file a directory "newlib-1.9.0" will be created under

  /source/rtems.


sudheer:->done
      
        
cd newlib-1.9.0
  
  patch -p1 < /rtemsarchive/newlib-1.9.0-rtems-20010221.diff
      
- Check to see if any of these patches have been rejected using the following sequence: 

  cd newlib-1.9.0
  find . -name "*.rej" -print


sudheer:->done
            No "rej"files found.....
      


sudheer->i have done 
                PATH=/source/rtems/binutils-2.11/binutils:$PATH
  PATH=/source/rtems/binutils-2.11:$PATH
  export PATH 

- The C Library is built as a subordinate component of gcc-2.95.2. Because of this, 

  the newlib-1.9.0 directory source must be available inside the 
  gcc-2.95.2 source tree. This is normally accomplished using a 

symbolic link as 
  shown in this example: 

  cd gcc-2.95.2
  ln -s ../newlib-1.9/newlib .

sudheer:->done
             I HAVE DONE LIKE

                      ln -s /source/rtems/newlib-1.9.0/newlib          
      

- Invoke configure and make to build and install gcc-2.95.2 for the i386-rtems target: 

  cd /build/rtems
  mkdir gcc
  cd gcc
  /source/rtems/gcc-2.95.2/configure --target=i386-rtems \
   --with-gnu-as --with-gnu-ld --with-newlib --verbose \
   --enable-threads --prefix=/opt/rtems

sudheer->done
  
make all

sudheer->
          I am getting two errors. 
/source/rtems/gcc-2.95.2/gcc/libgcc2.c;301:parse error before 'uu'
make[3]:***[libgcc2.a] Error1
make[1]:***[all-gcc]error 2


make info
sudheer-> done

make install
 Sudheer->
         I am getting errors like
             make[1]***[crtbegin.o]Error 1
             make[2]:leaving directory '/build/rtems/gcc/gcc'
             make: ***[install-gcc]error 2

can you please tell me where i went wrong
with regards
sudheer


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20010907/492f89e2/attachment.html>


More information about the users mailing list