RE: [gentoo-user] Re: revdep-rebuild keeps reinstalling binutils
kos...@gentoo /usr/bin $ ls -al gcc* -rwxr-xr-x 1 root root 14504 Jun 17 2008 gcc lrwxrwxrwx 1 root root62 Jan 24 06:25 gcc-4.3.4 - /usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/x86_64-pc-linux-gnu-gcc -rwxr-xr-x 1 root root 21711 Jan 24 01:46 gcc-config kos...@gentoo /usr/bin $ Maybe I have to boot from a live cd, chroot to the hard-disk files, emerge gcc, reboot and after that emerge -uDN world. Gcc seems to be ok from here, the problems is somewhere else. -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of walt Sent: Sunday, February 14, 2010 1:18 AM To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Re: revdep-rebuild keeps reinstalling binutils Konstantinos Bekiaris wrote: On Tue, Feb 9, 2010 at 8:53 PM, walt w41...@gmail.com mailto:w41...@gmail.com wrote: On 02/08/2010 10:27 PM, Konstantinos Bekiaris wrote: What do you have in /etc/env.d/gcc/? I have this: #ls -l /etc/env.d/gcc/ total 16 -rw-r--r-- 1 root root 32 2010-02-08 11:53 config-i686-pc-linux-gnu -rw-r--r-- 1 root root 235 2009-01-29 12:33 i686-pc-linux-gnu-4.1.2 -rw-r--r-- 1 root root 235 2009-07-04 09:02 i686-pc-linux-gnu-4.3.2 -rw-r--r-- 1 root root 235 2010-01-10 12:29 i686-pc-linux-gnu-4.3.4 Do you still have any version of gcc installed? drwxr-xr-x 2 root root 4096 Jan 24 13:16 . drwxr-xr-x 5 root root 4096 Jan 24 13:17 .. lrwxrwxrwx 1 root root 25 Jan 24 06:25 .NATIVE - x86_64-pc-linux-gnu-4.1.2 -rw-r--r-- 1 root root 34 Jan 24 06:25 config-x86_64-pc-linux-gnu -rw-r--r-- 1 root root 381 Jan 24 06:25 x86_64-pc-linux-gnu-4.3.4 There's one problem. .NATIVE is pointing at a non-existent file. Assuming your machine really does have gcc-4.3.4, .NATIVE should be pointing at x86_64-pc-linux-gnu-4.3.4, and the contents of config-x86_64-pc-linux-gnu should be: CURRENT=x86_64-pc-linux-gnu-4.3.4 I don't know why there are two different ways to point at the same gcc, but that's the way gcc-config does it. Correct those two files and see if it helps. I think that i have gcc, the problem is that it is not correctly linked with tha appropriate files-libraries. You can run /usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/gcc directly to see if it works. It works, when i am in the folder /usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/ and i tried ./gcc, it works. Can you please show me the way i must put the links in order to work from anywhere(sym links or hard links)? I think it is ln -s //usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/gcc folder. This is weird. I have a small binary /usr/bin/gcc which is obviously just a stub for starting the version of gcc you select with gcc-config. The weird part is that no package claims that file so I don't know how it got there but the date suggests it was put there by gcc-4.3.4. $ls -l /usr/bin/gcc* -rwxr-xr-x 1 root root 9572 2010-01-10 12:29 /usr/bin/gcc *** this one lrwxrwxrwx 1 root root58 2009-01-29 12:34 /usr/bin/gcc-4.1.2 - /usr/i686-pc-linux-gnu/gcc-bin/4.1.2/i686-pc-linux-gnu-gcc lrwxrwxrwx 1 root root58 2009-07-04 09:03 /usr/bin/gcc-4.3.2 - /usr/i686-pc-linux-gnu/gcc-bin/4.3.2/i686-pc-linux-gnu-gcc lrwxrwxrwx 1 root root58 2010-01-10 12:29 /usr/bin/gcc-4.3.4 - /usr/i686-pc-linux-gnu/gcc-bin/4.3.4/i686-pc-linux-gnu-gcc -rwxr-xr-x 1 root root 21711 2010-02-13 14:33 /usr/bin/gcc-config Do you have a similar /usr/bin/gcc? It seems to run whatever file /etc/env.d/gcc/.NATIVE is pointing to, so that symlink must be right for /usr/bin/gcc to work properly.
Re: [gentoo-user] Re: revdep-rebuild keeps reinstalling binutils
kos...@gentoo /usr/bin $ ls -al gcc* -rwxr-xr-x 1 root root 14504 Jun 17 2008 gcc lrwxrwxrwx 1 root root62 Jan 24 06:25 gcc-4.3.4 - /usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/x86_64-pc-linux-gnu-gcc -rwxr-xr-x 1 root root 21711 Jan 24 01:46 gcc-config kos...@gentoo /usr/bin $ Maybe I have to boot from a live cd, chroot to the hard-disk files, emerge gcc, reboot and after that emerge -uDN world. Gcc seems to be ok from here, the problems is somewhere else. On Sun, Feb 14, 2010 at 1:18 AM, walt w41...@gmail.com wrote: Konstantinos Bekiaris wrote: On Tue, Feb 9, 2010 at 8:53 PM, walt w41...@gmail.com mailto:w41...@gmail.com wrote: On 02/08/2010 10:27 PM, Konstantinos Bekiaris wrote: What do you have in /etc/env.d/gcc/? I have this: #ls -l /etc/env.d/gcc/ total 16 -rw-r--r-- 1 root root 32 2010-02-08 11:53 config-i686-pc-linux-gnu -rw-r--r-- 1 root root 235 2009-01-29 12:33 i686-pc-linux-gnu-4.1.2 -rw-r--r-- 1 root root 235 2009-07-04 09:02 i686-pc-linux-gnu-4.3.2 -rw-r--r-- 1 root root 235 2010-01-10 12:29 i686-pc-linux-gnu-4.3.4 Do you still have any version of gcc installed? drwxr-xr-x 2 root root 4096 Jan 24 13:16 . drwxr-xr-x 5 root root 4096 Jan 24 13:17 .. lrwxrwxrwx 1 root root 25 Jan 24 06:25 .NATIVE - x86_64-pc-linux-gnu-4.1.2 -rw-r--r-- 1 root root 34 Jan 24 06:25 config-x86_64-pc-linux-gnu -rw-r--r-- 1 root root 381 Jan 24 06:25 x86_64-pc-linux-gnu-4.3.4 There's one problem. .NATIVE is pointing at a non-existent file. Assuming your machine really does have gcc-4.3.4, .NATIVE should be pointing at x86_64-pc-linux-gnu-4.3.4, and the contents of config-x86_64-pc-linux-gnu should be: CURRENT=x86_64-pc-linux-gnu-4.3.4 I don't know why there are two different ways to point at the same gcc, but that's the way gcc-config does it. Correct those two files and see if it helps. I think that i have gcc, the problem is that it is not correctly linked with tha appropriate files-libraries. You can run /usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/gcc directly to see if it works. It works, when i am in the folder /usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/ and i tried ./gcc, it works. Can you please show me the way i must put the links in order to work from anywhere(sym links or hard links)? I think it is ln -s //usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/gcc folder. This is weird. I have a small binary /usr/bin/gcc which is obviously just a stub for starting the version of gcc you select with gcc-config. The weird part is that no package claims that file so I don't know how it got there but the date suggests it was put there by gcc-4.3.4. $ls -l /usr/bin/gcc* -rwxr-xr-x 1 root root 9572 2010-01-10 12:29 /usr/bin/gcc *** this one lrwxrwxrwx 1 root root58 2009-01-29 12:34 /usr/bin/gcc-4.1.2 - /usr/i686-pc-linux-gnu/gcc-bin/4.1.2/i686-pc-linux-gnu-gcc lrwxrwxrwx 1 root root58 2009-07-04 09:03 /usr/bin/gcc-4.3.2 - /usr/i686-pc-linux-gnu/gcc-bin/4.3.2/i686-pc-linux-gnu-gcc lrwxrwxrwx 1 root root58 2010-01-10 12:29 /usr/bin/gcc-4.3.4 - /usr/i686-pc-linux-gnu/gcc-bin/4.3.4/i686-pc-linux-gnu-gcc -rwxr-xr-x 1 root root 21711 2010-02-13 14:33 /usr/bin/gcc-config Do you have a similar /usr/bin/gcc? It seems to run whatever file /etc/env.d/gcc/.NATIVE is pointing to, so that symlink must be right for /usr/bin/gcc to work properly. -- Greetings, Daemon!
Re: [gentoo-user] Re: revdep-rebuild keeps reinstalling binutils
On Tue, Feb 9, 2010 at 8:53 PM, walt w41...@gmail.com wrote: On 02/08/2010 10:27 PM, Konstantinos Bekiaris wrote: What do you have in /etc/env.d/gcc/? I have this: #ls -l /etc/env.d/gcc/ total 16 -rw-r--r-- 1 root root 32 2010-02-08 11:53 config-i686-pc-linux-gnu -rw-r--r-- 1 root root 235 2009-01-29 12:33 i686-pc-linux-gnu-4.1.2 -rw-r--r-- 1 root root 235 2009-07-04 09:02 i686-pc-linux-gnu-4.3.2 -rw-r--r-- 1 root root 235 2010-01-10 12:29 i686-pc-linux-gnu-4.3.4 Do you still have any version of gcc installed? drwxr-xr-x 2 root root 4096 Jan 24 13:16 . drwxr-xr-x 5 root root 4096 Jan 24 13:17 .. lrwxrwxrwx 1 root root 25 Jan 24 06:25 .NATIVE - x86_64-pc-linux-gnu-4.1.2 -rw-r--r-- 1 root root 34 Jan 24 06:25 config-x86_64-pc-linux-gnu -rw-r--r-- 1 root root 381 Jan 24 06:25 x86_64-pc-linux-gnu-4.3.4 There's one problem. .NATIVE is pointing at a non-existent file. Assuming your machine really does have gcc-4.3.4, .NATIVE should be pointing at x86_64-pc-linux-gnu-4.3.4, and the contents of config-x86_64-pc-linux-gnu should be: CURRENT=x86_64-pc-linux-gnu-4.3.4 I don't know why there are two different ways to point at the same gcc, but that's the way gcc-config does it. Correct those two files and see if it helps. I think that i have gcc, the problem is that it is not correctly linked with tha appropriate files-libraries. You can run /usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/gcc directly to see if it works. It works, when i am in the folder /usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/ and i tried ./gcc, it works. Can you please show me the way i must put the links in order to work from anywhere(sym links or hard links)? I think it is ln -s //usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4/gcc folder.
Re: [gentoo-user] Re: revdep-rebuild keeps reinstalling binutils
What do you have in /etc/env.d/gcc/? I have this: #ls -l /etc/env.d/gcc/ total 16 -rw-r--r-- 1 root root 32 2010-02-08 11:53 config-i686-pc-linux-gnu -rw-r--r-- 1 root root 235 2009-01-29 12:33 i686-pc-linux-gnu-4.1.2 -rw-r--r-- 1 root root 235 2009-07-04 09:02 i686-pc-linux-gnu-4.3.2 -rw-r--r-- 1 root root 235 2010-01-10 12:29 i686-pc-linux-gnu-4.3.4 Do you still have any version of gcc installed? drwxr-xr-x 2 root root 4096 Jan 24 13:16 . drwxr-xr-x 5 root root 4096 Jan 24 13:17 .. lrwxrwxrwx 1 root root 25 Jan 24 06:25 .NATIVE - x86_64-pc-linux-gnu-4.1.2 -rw-r--r-- 1 root root 34 Jan 24 06:25 config-x86_64-pc-linux-gnu -rw-r--r-- 1 root root 381 Jan 24 06:25 x86_64-pc-linux-gnu-4.3.4 I think that i have gcc, the problem is that it is not correctly linked with tha appropriate files-libraries.
Re: [gentoo-user] Re: revdep-rebuild keeps reinstalling binutils
On Sun, Feb 7, 2010 at 10:41 PM, walt w41...@gmail.com wrote: On 02/06/2010 10:05 PM, Konstantinos Bekiaris wrote: ...i upgrade my system through emerge -uDN world and then i run emerge --depclean and revdep-rebuild. After that when i tried gcc/g++ i get: gcc-config: error: could not run/locate 'gcc'. Additionally, i noticed that there is a problem with python, because when i try to use vi i get: vi: error while loading shared libraries: libpython2.5.so.1.0: cannot open shared object file: No such file or directory. If i try to emerge -uDN world, the upgrade fails. Also, the revdep-rebuild fails. I attached a log. Any ideas? I'm guessing that depclean removed some packages that are still needed. Do you have python-2.6.4 on your machine? You should. What about gcc-config-1.4.1 and gcc-4.3.4? vi is linked to an obsolete version of python, so it needs to be re-emerged manually if revdep-rebuild won't run properly. I'm guessing that vi may not be the only package that's linked against an obsolete python library, so python-updater may be worth a try. Ok, nice approach. The problem is that no package can be installed because the compiler gcc is not working...this is Gentoo...everything has to do with compiling. The solution of the problem starts with fixing gcc by hand. (You are right about python, i have an older version).So?
Re: [gentoo-user] Re: revdep-rebuild keeps reinstalling binutils
=== On Sun, 02/07, Konstantinos Bekiaris wrote: === Ok, nice approach. The problem is that no package can be installed because the compiler gcc is not working...this is Gentoo...everything has to do with compiling. The solution of the problem starts with fixing gcc by hand. (You are right about python, i have an older version).So? === try gcc-config first. See if that clears it up. then source /etc/profile. -- Keith Dart -- -- ~ Keith Dart ke...@dartworks.biz public key: ID: 19017044 http://www.dartworks.biz/ =
Re: [gentoo-user] Re: revdep-rebuild keeps reinstalling binutils
On Fri, 05 Feb 2010 17:46:05 -0600, Harry Putnam wrote: Was the expectation that running `lafilefixer --justfixit' would stop revdep-rebuild from continuously finding a broken binutils? That sometimes happens as lafilefixer fixes some problems that revdep-rebuild want to re-emerge to fix. -- Neil Bothwick signature.asc Description: PGP signature
Re: [gentoo-user] Re: revdep-rebuild keeps reinstalling binutils
在 2010年2月6日星期六 07:46:05,Harry Putnam 写道: Neil Bothwick n...@digimed.co.uk writes: On Thu, 4 Feb 2010 22:13:20 +0800, Leon Feng wrote: I have seen this for weeks, but since I upgrade to portage-2.2* at the same time, do not know whether it is related. My revdep-rebuild out is listed below, anyone has a solution? Are you also running the testing gentoolkit? Otherwise you're trying to use the old revdep-rebuild wit the new portage, which may have unexpected consequences. Have you run lafilefixer --justfixit? This should always be the first step when revdep-rebuild reports problems. You were speaking to Leon no me (The OP), but since my output was identical, I'll report too: I'm running ~x86 on everything and latest version of gentoolkit (I don't have gentoolkit-dev installed) I've emerged lafilefixer (thanks Steve) and ran lafilefixer --justfixit Then ran revdep-rebuild again it still finds broken binutils so I'm letting it `oneshot' the emerge. Was the expectation that running `lafilefixer --justfixit' would stop revdep-rebuild from continuously finding a broken binutils? Or was I expected to run lafilefixer --justfixit and then rebuild binutils once more? In any case I did the later and now the oneshot has finished and a rerun of revdep-rebuild again finds the same `broken' binutils Apparently no progress has occurred.. Same here. I am running ~x86 too. lafilefixer --justfixit and reemerged glibc do no work. I will try out the patch in bug 298651 soon. Leon