Mailing List Archive

gcc mysteriously unmerged itself
Hi everyone,

This morning after my emerge sync portage was in my list of things to
upgrade so I upgraded it to portage-2.0.51. After this I decided to
remerge gcc with multilib support and this happened:

>>> emerge (1 of 1) sys-devel/gcc-3.4.2-r2 to /
>>> md5 src_uri ;-) gcc-3.4.2.tar.bz2
>>> md5 src_uri ;-) protector-3.4.1-1.tar.gz
>>> md5 src_uri ;-) gcc-3.4.2-manpages.tar.bz2
>>> md5 src_uri ;-) gcc-3.4.2-patches-1.1.tar.bz2
>>> md5 src_uri ;-) gcc-3.4.0-piepatches-v8.7.6.5.tar.bz2
>>> md5 src_uri ;-) bounds-checking-gcc-3.4.2-1.00.patch.bz2
>>> Merging sys-devel/gcc-3.4.2-r2 to /
/usr/lib/portage/bin/ebuild.sh: line 129:
/var/tmp/portage/gcc-3.4.2-r2/work/.oldgccchost: No such file or
directory
touch: cannot touch
`/var/tmp/portage/gcc-3.4.2-r2/work/.chkgccversion': No such file or
directory
multilib
>>> Safely unmerging already-installed instance...


Then my actual gcc was unmerged. :( Now if try to emerge it again here
is what happens:


artsucks root # emerge gcc -p

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] sys-devel/gcc-3.4.2-r2


But gcc is not installed anymore. This is what happens while trying to build it:


Calculating dependencies gcc: No such file or directory
/usr/lib/portage/bin/ebuild.sh: line 122:
/var/tmp/portage/gcc-3.4.2-r2/work/.oldgccversion: No such file or
directory
touch: cannot touch
`/var/tmp/portage/gcc-3.4.2-r2/work/.chkgccversion': No such file or
directory
multilib
multilib
!bootstrap
!build
/etc/env.d/gcc/x86_64-pc-linux-gnu-3.4.2 doesnt exist
/usr/lib/portage/bin/ebuild.sh: line 562: [.: too many arguments
[.31;01m*[.0m /usr/bin/gcc-config: Profile does not exist or invalid
setting for /etc/env.d/gcc/x86_64-pc-linux-gnu-3.4.2
[.32;01m*[.0m Switching to x86_64-pc-linux-gnu-3.4.2 compiler...
/usr/bin/gcc-config: line 177:
/etc/env.d/gcc/x86_64-pc-linux-gnu-3.4.2: No such file or directory
gawk: cmd. line:2: fatal: cannot open file
`/etc/env.d/gcc/x86_64-pc-linux-gnu-3.4.2' for reading (No such file
or directory)
 [ ok ]
* Caching service dependencies...
 ...done!
>>> emerge (1 of 1) sys-devel/gcc-3.4.2-r2 to /
>>> md5 src_uri ;-) gcc-3.4.2.tar.bz2
>>> md5 src_uri ;-) protector-3.4.1-1.tar.gz
>>> md5 src_uri ;-) gcc-3.4.2-manpages.tar.bz2
>>> md5 src_uri ;-) gcc-3.4.2-patches-1.1.tar.bz2
>>> md5 src_uri ;-) gcc-3.4.0-piepatches-v8.7.6.5.tar.bz2
>>> md5 src_uri ;-) bounds-checking-gcc-3.4.2-1.00.patch.bz2
>>> Merging sys-devel/gcc-3.4.2-r2 to /
>>> sys-devel/gcc-3.4.2-r2 merged.

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


* GNU info directory index is up-to-date.

Removing multilib from my USE gives the same thing without the two
"multilib" lines above. What would be the best way to solve this? Is
there more infos I should provide?

TIA

Baal
--
The conquering penguin of the tribe of UNIX...

--
gentoo-user@gentoo.org mailing list
Re: gcc mysteriously unmerged itself [ In reply to ]
Quoting Marc-Eric Dupuis <artsucks@gmail.com>:

> This morning after my emerge sync portage was in my list of things to
> upgrade so I upgraded it to portage-2.0.51. After this I decided to
> remerge gcc with multilib support and this happened:

[snip]

> But gcc is not installed anymore.

[snip]

> Removing multilib from my USE gives the same thing without the two
> "multilib" lines above. What would be the best way to solve this? Is
> there more infos I should provide?

Could you perhaps boot from a LiveCD, mount the filesystems, chroot then
re-emerge gcc using the compiler on the CD?

Dave


--
gentoo-user@gentoo.org mailing list
Re: gcc mysteriously unmerged itself [ In reply to ]
David Rea wrote:
> Quoting Marc-Eric Dupuis <artsucks@gmail.com>:
>
>>This morning after my emerge sync portage was in my list of things to
>>upgrade so I upgraded it to portage-2.0.51. After this I decided to
>>remerge gcc with multilib support and this happened:
>
> [snip]
>
>>But gcc is not installed anymore.
>
> [snip]
>
>>Removing multilib from my USE gives the same thing without the two
>>"multilib" lines above. What would be the best way to solve this? Is
>>there more infos I should provide?
>
> Could you perhaps boot from a LiveCD, mount the filesystems, chroot then
> re-emerge gcc using the compiler on the CD?

It doesn't work like that. When you chroot into your install from the LiveCD,
you are using your install's compiler, not the LiveCD's (if it even had one).
You need to get a binary package of gcc and install that. What processor
(Athlon, Athlon-XP, P3, P4, etc.) do you have? I'm sure someone can generate a
binary package from their gcc and let you download it.

--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548


--
gentoo-user@gentoo.org mailing list
gcc mysteriously unmerged itself [ In reply to ]
On Thu, 21 Oct 2004 10:39:47 -0500, Andrew Gaffney
<agaffney@skylineaero.com> wrote:
> David Rea wrote:
>
> It doesn't work like that. When you chroot into your install from the LiveCD,
> you are using your install's compiler, not the LiveCD's (if it even had one).
> You need to get a binary package of gcc and install that. What processor
> (Athlon, Athlon-XP, P3, P4, etc.) do you have? I'm sure someone can generate a
> binary package from their gcc and let you download it.
>

http://dev.gentoo.org/~avenj/bins/

--
gentoo-user@gentoo.org mailing list
Re: gcc mysteriously unmerged itself [ In reply to ]
On Thu, 21 Oct 2004 16:52:22 +0100, David Morgan <david.morgan@gmail.com> wrote:
> On Thu, 21 Oct 2004 10:39:47 -0500, Andrew Gaffney
> <agaffney@skylineaero.com> wrote:
> > David Rea wrote:
> >
> > It doesn't work like that. When you chroot into your install from the LiveCD,
> > you are using your install's compiler, not the LiveCD's (if it even had one).
> > You need to get a binary package of gcc and install that. What processor
> > (Athlon, Athlon-XP, P3, P4, etc.) do you have? I'm sure someone can generate a
> > binary package from their gcc and let you download it.
> >
>
> http://dev.gentoo.org/~avenj/bins/

I am on amd64, what arch are these for? Also, installing a binary gcc
only seems like a partial solution because nothing is done to solve
what caused this in the first place and prevent it from happening
again.

Thanks to all who took time to answer.

Baal
--
The conquering penguin of the tribe of UNIX...

--
gentoo-user@gentoo.org mailing list
Re: gcc mysteriously unmerged itself [ In reply to ]
On Thu, 21 Oct 2004, Marc-Eric Dupuis wrote:

> I am on amd64, what arch are these for? Also, installing a binary gcc
> only seems like a partial solution because nothing is done to solve
> what caused this in the first place and prevent it from happening
> again.


Always always always run emerge -pv to check before doing any emerges!


--
mega- /me'g*/ pref.

[SI] See quantifiers.


--
gentoo-user@gentoo.org mailing list
Re: gcc mysteriously unmerged itself [ In reply to ]
Marc-Eric Dupuis wrote:
> On Thu, 21 Oct 2004 16:52:22 +0100, David Morgan <david.morgan@gmail.com> wrote:
>
>>On Thu, 21 Oct 2004 10:39:47 -0500, Andrew Gaffney
>><agaffney@skylineaero.com> wrote:
>>
>>>David Rea wrote:
>>>
>>>It doesn't work like that. When you chroot into your install from the LiveCD,
>>>you are using your install's compiler, not the LiveCD's (if it even had one).
>>>You need to get a binary package of gcc and install that. What processor
>>>(Athlon, Athlon-XP, P3, P4, etc.) do you have? I'm sure someone can generate a
>>>binary package from their gcc and let you download it.
>>>
>>
>>http://dev.gentoo.org/~avenj/bins/
>
> I am on amd64, what arch are these for? Also, installing a binary gcc
> only seems like a partial solution because nothing is done to solve
> what caused this in the first place and prevent it from happening
> again.

http://bugs.gentoo.org/show_bug.cgi?id=68443

It looks like that is your bug. Those packages above are for x86 instead of
amd64. What version of gcc did you have? Once you get a binary for it, you can
put '-sandbox' in FEATURES in your /etc/make.conf, download a package and
'emerge <package>.tar.bz2', and then 'emerge portage'.

--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548


--
gentoo-user@gentoo.org mailing list
Re: gcc mysteriously unmerged itself [ In reply to ]
On Thursday 21 October 2004 03:42 pm, Ajai Khattri wrote:
> On Thu, 21 Oct 2004, Marc-Eric Dupuis wrote:
> > I am on amd64, what arch are these for? Also, installing a binary gcc
> > only seems like a partial solution because nothing is done to solve
> > what caused this in the first place and prevent it from happening
> > again.
>
> Always always always run emerge -pv to check before doing any emerges!

Um, I may have missed it, tell me how a pretend could prevent this?

Jeff
Re: gcc mysteriously unmerged itself [ In reply to ]
Marc-Eric Dupuis wrote:
> Hi everyone,
>
> This morning after my emerge sync portage was in my list of things to
> upgrade so I upgraded it to portage-2.0.51. After this I decided to
> remerge gcc with multilib support and this happened:

[...]

> * GNU info directory index is up-to-date.
>
> Removing multilib from my USE gives the same thing without the two
> "multilib" lines above. What would be the best way to solve this? Is
> there more infos I should provide?

May be if you uncompress a stage3 tarball in your root dir... it provide
a working system with gcc... after it you might do a new upgrade.

It was just an idea that I had... maybe it can destroy your system too.

[]'s
Mauro

--
gentoo-user@gentoo.org mailing list
Re: gcc mysteriously unmerged itself [ In reply to ]
On Thu, 21 Oct 2004 18:17:09 -0300, Mauro Faccenda <faccenda@gmx.net> wrote:
> May be if you uncompress a stage3 tarball in your root dir... it provide
> a working system with gcc... after it you might do a new upgrade.
>
> It was just an idea that I had... maybe it can destroy your system too.

Ok people you can stop sending ideas. ;) I got a binary gcc package
from a friend and the bug should now be fixed in portage...

Thanks everyone!

Baal
--
The conquering penguin of the tribe of UNIX...

--
gentoo-user@gentoo.org mailing list