Monday 8 November 2010

install gcc

readynas1:~# dpkg -l gcc*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
un  gcc                     (no description available)
un  gcc-2.95                (no description available)
un  gcc-3.2                 (no description available)
ii  gcc-3.3        1:3.3.5-13     The GNU C compiler
ii  gcc-3.3-base   1:3.3.5-13     The GNU Compiler Collection (base package)
un  gcc-3.3-doc             (no description available)
readynas1:~# apt-get install gcc
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  cpp
Suggested packages:
  cpp-doc make manpages-dev autoconf automake libtool flex bison gdb gcc-doc
The following NEW packages will be installed:
  cpp gcc
0 upgraded, 2 newly installed, 0 to remove and 74 not upgraded.
Need to get 40.3kB of archives.
After unpacking 180kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.debian.org sarge/main cpp 4:3.3.5-3 [29.6kB]
Get:2 http://archive.debian.org sarge/main gcc 4:3.3.5-3 [10.8kB]
Fetched 40.3kB in 0s (73.6kB/s)
Selecting previously deselected package cpp.
(Reading database ... 17452 files and directories currently installed.)
Unpacking cpp (from .../cpp_4%3a3.3.5-3_sparc.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a3.3.5-3_sparc.deb) ...
Setting up cpp (4:3.3.5-3) ...
Setting up gcc (4:3.3.5-3) ...
readynas1:~# gcc -version
gcc: unrecognized option `-version'
gcc: no input files
readynas1:~# gcc -help
gcc: unrecognized option `-help'
gcc: no input files
readynas1:~# gcc -?
gcc: unrecognized option `-?'
gcc: no input files
readynas1:~# gcc --help
Usage: gcc [options] file...
Options:
  -pass-exit-codes         Exit with highest error code from a phase
  --help                   Display this information
  --target-help            Display target specific command line options
  (Use '-v --help' to display command line options of sub-processes)
  -dumpspecs               Display all of the built in spec strings
  -dumpversion             Display the version of the compiler
  -dumpmachine             Display the compiler's target processor
  -print-search-dirs       Display the directories in the compiler's search path
  -print-libgcc-file-name  Display the name of the compiler's companion library
  -print-file-name=   Display the full path to library 
  -print-prog-name=  Display the full path to compiler component 
  -print-multi-directory   Display the root directory for versions of libgcc
  -print-multi-lib         Display the mapping between command line options and
                           multiple library search directories
  -print-multi-os-directory Display the relative path to OS libraries
  -Wa,            Pass comma-separated  on to the assembler
  -Wp,            Pass comma-separated  on to the preprocessor
  -Wl,            Pass comma-separated  on to the linker
  -Xlinker            Pass  on to the linker
  -save-temps              Do not delete intermediate files
  -pipe                    Use pipes rather than intermediate files
  -time                    Time the execution of each subprocess
  -specs=            Override built-in specs with the contents of 
  -std=          Assume that the input sources are for 
  -B            Add  to the compiler's search paths
  -b              Run gcc for target , if installed
  -V              Run gcc version number , if installed
  -v                       Display the programs invoked by the compiler
  -###                     Like -v but options quoted and commands not executed
  -E                       Preprocess only; do not compile, assemble or link
  -S                       Compile only; do not assemble or link
  -c                       Compile and assemble, but do not link
  -o                 Place the output into 
  -x             Specify the language of the following input files
                           Permissible languages include: c c++ assembler none
                           'none' means revert to the default behavior of
                           guessing the language based on the file's extension

Options starting with -g, -f, -m, -O, -W, or --param are automatically
 passed on to the various sub-processes invoked by gcc.  In order to pass
 other options on to these processes the -W options must be used.

For bug reporting instructions, please see:
.
For Debian GNU/Linux specific bug reporting instructions, please see:
.
readynas1:~# gcc -V
gcc: `-V' option must have argument
readynas1:~# gcc -v
Reading specs from /usr/lib/gcc-lib/sparc-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --with-cpu=v7 --enable-objc-gc sparc-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)
readynas1:~#

No comments:

Post a Comment