From: "Konstantinos Bekiaris" <konstantinos@bekiaris.org>
To: <gentoo-user@lists.gentoo.org>
Subject: RE: [gentoo-user] Re: revdep-rebuild keeps reinstalling binutils
Date: Sun, 14 Feb 2010 22:01:31 +0200 [thread overview]
Message-ID: <003901caadb0$8522a510$8f67ef30$@org> (raw)
In-Reply-To: <hl7bv9$upm$1@ger.gmane.org>
kostas@Gentoo /usr/bin $ ls -al gcc*
-rwxr-xr-x 1 root root 14504 Jun 17 2008 gcc
lrwxrwxrwx 1 root root 62 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
kostas@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:news@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 <w41ter@gmail.com
> <mailto:w41ter@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 root 58 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 root 58 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 root 58 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.
next prev parent reply other threads:[~2010-02-14 20:02 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-03 21:45 [gentoo-user] revdep-rebuild keeps reinstalling binutils Harry Putnam
2010-02-03 21:53 ` Alan McKinnon
2010-02-04 18:11 ` [gentoo-user] " Harry Putnam
2010-02-04 18:29 ` Doug Hunley
2010-02-03 22:12 ` [gentoo-user] " Steven
2010-02-04 14:13 ` Leon Feng
2010-02-04 15:05 ` Helmut Jarausch
2010-02-04 15:47 ` Neil Bothwick
2010-02-05 23:46 ` [gentoo-user] " Harry Putnam
2010-02-06 5:58 ` Leon Feng
2010-02-07 1:01 ` Harry Putnam
2010-02-06 8:47 ` Neil Bothwick
2010-02-04 20:44 ` [gentoo-user] " Steven
[not found] ` <e49fec5b1002062202n5d083b0bue9ca8ee243dd4da@mail.gmail.com>
2010-02-07 6:05 ` Konstantinos Bekiaris
2010-02-07 20:41 ` [gentoo-user] " walt
2010-02-07 21:18 ` Konstantinos Bekiaris
2010-02-08 3:48 ` Keith Dart
[not found] ` <e49fec5b1002072218p60e0816ewb00ded4a601ab6da@mail.gmail.com>
2010-02-08 6:19 ` Konstantinos Bekiaris
2010-02-08 20:50 ` walt
2010-02-09 6:27 ` Konstantinos Bekiaris
2010-02-09 18:53 ` walt
2010-02-13 9:15 ` Konstantinos Bekiaris
2010-02-13 23:18 ` walt
2010-02-14 20:01 ` Konstantinos Bekiaris [this message]
2010-02-14 20:04 ` Konstantinos Bekiaris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='003901caadb0$8522a510$8f67ef30$@org' \
--to=konstantinos@bekiaris.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox