1 |
Phil Sexton wrote: |
2 |
> Could someone expound on these 3 commands? I don't really understand |
3 |
> the man and info pages on these. |
4 |
> |
5 |
> gcc -v |
6 |
> gcc --version |
7 |
> (I thought the previous two were the same.) |
8 |
> cat /proc/version |
9 |
|
10 |
gcc -v tells you what programs are invoked by gcc. gcc being a |
11 |
collection of compilers, this can differ quite a bit depending on |
12 |
your configuration. |
13 |
|
14 |
***** |
15 |
# gcc -v |
16 |
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/specs |
17 |
Configured with: |
18 |
/var/tmp/portage/gcc-3.4.4-r1/work/gcc-3.4.4/configure --prefix=/usr |
19 |
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.4 |
20 |
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include |
21 |
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4 |
22 |
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/man |
23 |
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/info |
24 |
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3 |
25 |
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec |
26 |
--enable-nls --without-included-gettext --with-system-zlib |
27 |
--disable-checking --disable-werror --disable-libunwind-exceptions |
28 |
--disable-multilib --disable-libgcj --enable-languages=c,c++,f77 |
29 |
--enable-shared --enable-threads=posix --enable-__cxa_atexit |
30 |
--enable-clocale=gnu |
31 |
Thread model: posix |
32 |
gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8) |
33 |
***** |
34 |
|
35 |
gcc --version very simply tells you the version of gcc and spams you |
36 |
about the GPL ;-) |
37 |
|
38 |
***** |
39 |
# gcc --version |
40 |
gcc (GCC) 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8) |
41 |
Copyright (C) 2004 Free Software Foundation, Inc. |
42 |
This is free software; see the source for copying conditions. There |
43 |
is NO |
44 |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR |
45 |
PURPOSE. |
46 |
***** |
47 |
|
48 |
cat /proc/version tells you a bunch of stuff about your kernel, not |
49 |
gcc specifically. It does, however, mention with which version of gcc |
50 |
your kernel was compiled. |
51 |
|
52 |
***** |
53 |
# cat /proc/version |
54 |
Linux version 2.6.15-gentoo-r1 (root@dell) (gcc version 3.4.4 (Gentoo |
55 |
3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)) #1 SMP PREEMPT Tue Jan 24 |
56 |
19:46:43 EST 2006 |
57 |
***** |
58 |
-- |
59 |
gentoo-user@g.o mailing list |