FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 02-13-2010, 08:15 AM
Konstantinos Bekiaris
 
Default revdep-rebuild keeps reinstalling binutils

On Tue, Feb 9, 2010 at 8:53 PM, walt <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".
 
Old 02-13-2010, 10:18 PM
walt
 
Default 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.
 
Old 02-14-2010, 07:04 PM
Konstantinos Bekiaris
 
Default revdep-rebuild keeps reinstalling binutils

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.


*



On Sun, Feb 14, 2010 at 1:18 AM, walt <w41ter@gmail.com> wrote:


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.





--
Greetings, Daemon!
 

Thread Tools




All times are GMT. The time now is 02:36 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org