(No Subject)

latish sudheer latish_sudheer at lycos.com
Fri Sep 7 12:20:01 UTC 2001


Hi, 
 I am very new to rtems.I am trying to  install it on cygwin on NT.
I have followed the following procedure.I am getting some errors when i tried to install gcc.
Please help me.


- Created a directory called "rtemsarchive" and download the source code 
  for GCC, newlib, binutils & GDB into that directory from "www.oarcorp.com".
  For the latest version of the code download the "RTEMS Snapshot access".

  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/


  

- Start 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  


  
  cd binutils-2.11
  
  patch -p1 < /rtemsarchive/binutils-2.11-rtems-20010409.diff

sudheer:->done
      

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

  
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.....

- 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 



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 any one help me regarding.
with regards
sudheer


Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/



More information about the users mailing list