View previous topic :: View next topic |
Author |
Message |
rojanu Guru
Joined: 02 Feb 2004 Posts: 361 Location: London
|
Posted: Sun Sep 03, 2006 12:15 am Post subject: Confused gcc |
|
|
Hi!
It seems that I have 2 versions of gcc where I have one
Code: | # gcc-config -l
[1] i686-pc-linux-gnu-3.4.4
[2] i686-pc-linux-gnu-3.4.4-hardened
[3] i686-pc-linux-gnu-3.4.4-hardenednopie
[4] i686-pc-linux-gnu-3.4.4-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.4-hardenednossp
[6] i686-pc-linux-gnu-4.1.1 *
| but when I tried to prune Code: | # emerge -Pp gcc
>>> These are the packages that would be unmerged:
>>> No packages selected for removal by prune. |
Code: | # emerge -C =gcc-3.4.4
--- Couldn't find '=gcc-3.4.4' to unmerge.
>>> No packages selected for removal by unmerge. | why gcc-config is showing version 3.4.4 _________________ "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714 |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Sun Sep 03, 2006 12:21 am Post subject: |
|
|
That may be 3.4.4-r1 _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
|
rojanu Guru
Joined: 02 Feb 2004 Posts: 361 Location: London
|
Posted: Sun Sep 03, 2006 1:40 am Post subject: |
|
|
Unfortunately it is not _________________ "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714 |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sun Sep 03, 2006 1:52 am Post subject: |
|
|
If you have gentoolkit installed, you can run "equery l -d" to get a list of all slotted packages with dupes. Run that and see if both versions of gcc are listed. It could be that your portage has gotten messed up somehow. _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
|
rojanu Guru
Joined: 02 Feb 2004 Posts: 361 Location: London
|
Posted: Sun Sep 03, 2006 2:05 am Post subject: |
|
|
nope gcc is not listed _________________ "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714 |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sun Sep 03, 2006 2:18 am Post subject: |
|
|
In that case, portage believes that it is no longer installed. Can you verify that it is by looking in /usr/i686-pc-linux-gnu/gcc-bin/? There may still be a directory there for it that only contains invalid symbolic links. I only have 4.1.1 installed on my machine and this is what I found when I looked (even though gcc-config only reports 4.1.1):
Code: | /home/bubba $ l /usr/i686-pc-linux-gnu/gcc-bin/
total 8
drwxr-xr-x 2 root root 4096 Aug 29 08:03 3.4.4/
drwxr-xr-x 2 root root 4096 Aug 31 01:42 4.1.1/
/home/bubba $ l /usr/i686-pc-linux-gnu/gcc-bin/3.4.4/
total 0
lrwxrwxrwx 1 root root 21 Aug 28 23:49 c++ -> i686-pc-linux-gnu-c++
lrwxrwxrwx 1 root root 21 Aug 28 23:49 g++ -> i686-pc-linux-gnu-g++
lrwxrwxrwx 1 root root 21 Aug 28 23:49 g77 -> i686-pc-linux-gnu-g77
lrwxrwxrwx 1 root root 21 Aug 28 23:49 gcc -> i686-pc-linux-gnu-gcc
lrwxrwxrwx 1 root root 21 Aug 28 23:49 i686-pc-linux-gnu-gcc-3.4.4 -> i686-pc-linux-gnu-gcc
|
Notice that all of those are broken symbolic links. (and I'm going to remove that entire directory shortly) _________________
Bones McCracker wrote: | On the other hand, regex is popular with the ladies. |
|
|
Back to top |
|
|
rojanu Guru
Joined: 02 Feb 2004 Posts: 361 Location: London
|
Posted: Sun Sep 03, 2006 12:22 pm Post subject: |
|
|
ok, here is what I have Code: | # ls /usr/i686-pc-linux-gnu/gcc-bin/ -l
total 1
drwxr-xr-x 2 root root 424 Feb 14 2006 3.4.4
drwxr-xr-x 2 root root 528 Sep 3 04:43 4.1.1
deskuzun ali # ls /usr/i686-pc-linux-gnu/gcc-bin/3.4.4/ -l
total 516
lrwxrwxrwx 1 root root 21 Jul 9 13:54 c++ -> i686-pc-linux-gnu-c++
-rwxr-xr-x 1 root root 91024 Feb 14 2006 cpp
lrwxrwxrwx 1 root root 21 Jul 9 13:54 g++ -> i686-pc-linux-gnu-g++
lrwxrwxrwx 1 root root 21 Jul 9 13:54 g77 -> i686-pc-linux-gnu-g77
lrwxrwxrwx 1 root root 21 Jul 9 13:54 gcc -> i686-pc-linux-gnu-gcc
-rwxr-xr-x 1 root root 16405 Feb 14 2006 gccbug
-rwxr-xr-x 1 root root 21928 Feb 14 2006 gcov
-rwxr-xr-x 2 root root 94740 Feb 14 2006 i686-pc-linux-gnu-c++
-rwxr-xr-x 2 root root 94740 Feb 14 2006 i686-pc-linux-gnu-g++
-rwxr-xr-x 1 root root 95764 Feb 14 2006 i686-pc-linux-gnu-g77
-rwxr-xr-x 1 root root 90592 Feb 14 2006 i686-pc-linux-gnu-gcc
lrwxrwxrwx 1 root root 21 Jul 9 13:54 i686-pc-linux-gnu-gcc-3.4.4 -> i686-pc-linux-gnu-gcc
| So, it is installed. Shall I just remove it _________________ "Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714 |
|
Back to top |
|
|
|