Changes between Version 78 and Version 79 of TBR/UserManual/MinGW_Tools_for_Windows


Ignore:
Timestamp:
Feb 27, 2012, 5:02:04 AM (7 years ago)
Author:
ChrisJohns
Comment:

Add tests to show the tools are installed ok.

Legend:

Unmodified
Added
Removed
Modified
  • TBR/UserManual/MinGW_Tools_for_Windows

    v78 v79  
    9393}}}
    9494
     95To test your installation open a MSYS shell and perform the following:
     96
     97{{{
     98[chris@weka ~]$ export PATH=/opt/rtems-4.11/bin:$PATH
     99[chris@weka ~]$ type sparc-rtems4.11-gcc
     100sparc-rtems4.11-gcc is /opt/rtems-4.11/bin/sparc-rtems4.11-gcc
     101}}}
     102
     103If your tools are not available in the path you will see:
     104
     105{{{
     106[chris@weka ~]$ type sparc-rtems4.11-gcc
     107sh: type: sparc-rtems4.11-gcc: not found
     108}}}
     109
     110The directories should contain at least the following:
     111
     112{{{
     113[chris@weka ~]$ ls /opt/rtems-4.11
     114bin  lib  libexec  share  sparc-rtems4.11
     115[chris@weka ~]$ ls /opt/rtems-4.11/bin
     116sparc-rtems4.11-addr2line.exe  sparc-rtems4.11-cpp.exe        sparc-rtems4.11-gcov.exe    sparc-rtems4.11-nm.exe       sparc-rtems4.11-size.exe
     117sparc-rtems4.11-ar.exe         sparc-rtems4.11-elfedit.exe    sparc-rtems4.11-gdb.exe     sparc-rtems4.11-objcopy.exe  sparc-rtems4.11-strings.exe
     118sparc-rtems4.11-as.exe         sparc-rtems4.11-g++.exe        sparc-rtems4.11-gprof.exe   sparc-rtems4.11-objdump.exe  sparc-rtems4.11-strip.exe
     119sparc-rtems4.11-c++.exe        sparc-rtems4.11-gcc-4.6.2.exe  sparc-rtems4.11-ld.bfd.exe  sparc-rtems4.11-ranlib.exe
     120sparc-rtems4.11-c++filt.exe    sparc-rtems4.11-gcc.exe        sparc-rtems4.11-ld.exe      sparc-rtems4.11-readelf.exe
     121}}}
     122
     123Finally in the same MSYS shell ask gcc to provide its details:
     124
     125{{{
     126[chris@weka ~]$ sparc-rtems4.11-gcc -v --version
     127Using built-in specs.
     128COLLECT_GCC=c:\opt\rtems-4.11\bin\sparc-rtems4.11-gcc.exe
     129COLLECT_LTO_WRAPPER=c:/opt/rtems-4.11/bin/../libexec/gcc/sparc-rtems4.11/4.6.2/lto-wrapper.exe
     130sparc-rtems4.11-gcc.exe (GCC) 4.6.2 20111026 (RTEMS gcc-4.6.2-9.mgw/newlib-1.20.0-4.mgw)
     131Copyright (C) 2011 Free Software Foundation, Inc.
     132This is free software; see the source for copying conditions.  There is NO
     133warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     134
     135
     136Target: sparc-rtems4.11
     137Configured with: ../gcc-4.6.2/configure --prefix=/opt/rtems-4.11 --bindir=/opt/rtems-4.11/bin --exec_prefix=/opt/rtems-4.11 --includedir=/opt/rtems-4.
     13811/include --libdir=/opt/rtems-4.11/lib --libexecdir=/opt/rtems-4.11/libexec --mandir=/opt/rtems-4.11/share/man --infodir=/opt/rtems-4.11/share/info -
     139-datadir=/opt/rtems-4.11/share --build=i386-pc-linux-gnu --host=i686-pc-mingw32 --target=sparc-rtems4.11 --disable-libstdcxx-pch --with-gnu-as --with-
     140gnu-ld --verbose --with-newlib --with-system-zlib --disable-nls --without-included-gettext --disable-win32-registry --enable-version-specific-runtime-
     141libs --enable-threads --disable-lto --disable-plugin --enable-newlib-io-c99-formats --enable-newlib-iconv --enable-languages=c,c++
     142Thread model: rtems
     143gcc version 4.6.2 20111026 (RTEMS gcc-4.6.2-9.mgw/newlib-1.20.0-4.mgw) (GCC)
     144COLLECT_GCC_OPTIONS='-v' '--version' '-mcpu=v7'
     145 c:/opt/rtems-4.11/bin/../libexec/gcc/sparc-rtems4.11/4.6.2/cc1.exe -quiet -v -iprefix c:\opt\rtems-4.11\bin\../lib/gcc/sparc-rtems4.11/4.6.2/ help-du
     146mmy -quiet -dumpbase help-dummy -mcpu=v7 -auxbase help-dummy -version --version -o C:\DOCUME~1\chris\LOCALS~1\Temp\ccwIdsUh.s
     147GNU C (GCC) version 4.6.2 20111026 (RTEMS gcc-4.6.2-9.mgw/newlib-1.20.0-4.mgw) (sparc-rtems4.11)
     148        compiled by GNU C version 4.6.1 20110627 (Fedora MinGW 4.6.1-3.fc16), GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
     149GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
     150COLLECT_GCC_OPTIONS='-v' '--version' '-mcpu=v7'
     151 c:/opt/rtems-4.11/bin/../lib/gcc/sparc-rtems4.11/4.6.2/../../../../sparc-rtems4.11/bin/as.exe -v -s --version -o C:\DOCUME~1\chris\LOCALS~1\Temp\ccsV
     1528Bb4.o C:\DOCUME~1\chris\LOCALS~1\Temp\ccwIdsUh.s
     153GNU assembler version 2.22 (sparc-rtems4.11) using BFD version (GNU Binutils) 2.22
     154GNU assembler (GNU Binutils) 2.22
     155Copyright 2011 Free Software Foundation, Inc.
     156This program is free software; you may redistribute it under the terms of
     157the GNU General Public License version 3 or later.
     158This program has absolutely no warranty.
     159This assembler was configured for a target of `sparc-rtems4.11'.
     160COMPILER_PATH=c:/opt/rtems-4.11/bin/../libexec/gcc/sparc-rtems4.11/4.6.2/;c:/opt/rtems-4.11/bin/../libexec/gcc/;c:/opt/rtems-4.11/bin/../lib/gcc/sparc
     161-rtems4.11/4.6.2/../../../../sparc-rtems4.11/bin/
     162LIBRARY_PATH=c:/opt/rtems-4.11/bin/../lib/gcc/sparc-rtems4.11/4.6.2/;c:/opt/rtems-4.11/bin/../lib/gcc/;c:/opt/rtems-4.11/bin/../lib/gcc/sparc-rtems4.1
     1631/4.6.2/../../../../sparc-rtems4.11/lib/
     164COLLECT_GCC_OPTIONS='-v' '--version' '-mcpu=v7'
     165 c:/opt/rtems-4.11/bin/../libexec/gcc/sparc-rtems4.11/4.6.2/collect2.exe --version c:/opt/rtems-4.11/bin/../lib/gcc/sparc-rtems4.11/4.6.2/../../../../
     166sparc-rtems4.11/lib/crt0.o -Lc:/opt/rtems-4.11/bin/../lib/gcc/sparc-rtems4.11/4.6.2 -Lc:/opt/rtems-4.11/bin/../lib/gcc -Lc:/opt/rtems-4.11/bin/../lib/
     167gcc/sparc-rtems4.11/4.6.2/../../../../sparc-rtems4.11/lib C:\DOCUME~1\chris\LOCALS~1\Temp\ccsV8Bb4.o -lgcc -lc -lgcc
     168collect2 version 4.6.2 20111026 (RTEMS gcc-4.6.2-9.mgw/newlib-1.20.0-4.mgw) (sparc-elf)
     169c:/opt/rtems-4.11/bin/../lib/gcc/sparc-rtems4.11/4.6.2/../../../../sparc-rtems4.11/bin/ld.exe --version c:/opt/rtems-4.11/bin/../lib/gcc/sparc-rtems4.
     17011/4.6.2/../../../../sparc-rtems4.11/lib/crt0.o -Lc:/opt/rtems-4.11/bin/../lib/gcc/sparc-rtems4.11/4.6.2 -Lc:/opt/rtems-4.11/bin/../lib/gcc -Lc:/opt/r
     171tems-4.11/bin/../lib/gcc/sparc-rtems4.11/4.6.2/../../../../sparc-rtems4.11/lib C:\DOCUME~1\chris\LOCALS~1\Temp\ccsV8Bb4.o -lgcc -lc -lgcc
     172GNU ld (GNU Binutils) 2.22
     173Copyright 2011 Free Software Foundation, Inc.
     174This program is free software; you may redistribute it under the terms of
     175the GNU General Public License version 3 or (at your option) a later version.
     176This program has absolutely no warranty.
     177}}}
     178
    95179You should now have a working set of RTEMS tools.
     180
     181If you wish to work the development version of RTEMS, which currently is 4.11, you will also need the the automake and autoconf packages. These are need to bootstrap the RTEMS source you clone from the master GIT repository.
    96182= RTEMS Build =
    97183