Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC File collisions[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 646
Location: Tokyo, Japan

PostPosted: Mon Dec 29, 2014 4:44 pm    Post subject: GCC File collisions[SOLVED] Reply with quote

When I do a world update gcc keeps failing due to "file collisions". I've checked the wiki and forums but can't find a way to solve this. It seems to me that if I uninstall gcc and try to reinstall it it would cause more problems?

Quote:
sys-devel/gcc-4.8.3:4.8::gentoo
* /etc/env.d/gcc/x86_64-pc-linux-gnu-4.8.3
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/32/crtendS.o
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/32/libgfortran.so.3.0.0
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/32/libquadmath.so.0.0.0
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/crtbegin.o
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/crtbeginS.o
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/crtbeginT.o
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/crtend.o
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/crtendS.o
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/crtfastmath.o
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/crtprec32.o
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/crtprec64.o
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/crtprec80.o
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/libgcc_s.so.1
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/libgfortran.so.3.0.0
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/libgomp.so.1.0.0
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/libquadmath.so.0.0.0
* /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/libstdc++.so.6.0.19
* /usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.3/info/libgomp.info
* /usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.3/info/libquadmath.info
*
* Package 'sys-devel/base-gcc-4.8.3' NOT merged due to file collisions.
* If necessary, refer to your elog messages for the whole content of the
* above message.
*
* Please include /var/tmp/portage/sys-devel/base-gcc-4.8.3/work/gcc-build-logs.tar.bz2 in your bug report.


Last edited by Budoka on Fri Jan 02, 2015 8:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 40642
Location: 56N 3W

PostPosted: Mon Dec 29, 2014 8:32 pm    Post subject: Reply with quote

Budoka,

Unless you have gcc, you can't emerge gcc, so don't uninstall it just yet.
What does gcc-config -l tell you?

If you have several versions, you can rip out gcc-4.8.3 then rebuild it with a different version of gcc.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 12258

PostPosted: Tue Dec 30, 2014 2:00 am    Post subject: Re: GCC File collisions??? Reply with quote

Budoka wrote:
Quote:
* Package 'sys-devel/base-gcc-4.8.3' NOT merged due to file collisions.
* If necessary, refer to your elog messages for the whole content of the
* above message.
*
* Please include /var/tmp/portage/sys-devel/base-gcc-4.8.3/work/gcc-build-logs.tar.bz2 in your bug report.
What is this "base-gcc" package? I do not see it in Portage, and it seems to conflict with the simple "gcc" of the same version.
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 646
Location: Tokyo, Japan

PostPosted: Tue Dec 30, 2014 4:18 am    Post subject: Reply with quote

NeddySeagoon wrote:
Budoka,

Unless you have gcc, you can't emerge gcc, so don't uninstall it just yet.
What does gcc-config -l tell you?

If you have several versions, you can rip out gcc-4.8.3 then rebuild it with a different version of gcc.


Code:
# gcc-config -l
 [1] x86_64-pc-linux-gnu-4.8.3 *


Thanks. So that means I only have one version right?
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 646
Location: Tokyo, Japan

PostPosted: Tue Dec 30, 2014 4:20 am    Post subject: Re: GCC File collisions??? Reply with quote

Hu wrote:
Budoka wrote:
Quote:
* Package 'sys-devel/base-gcc-4.8.3' NOT merged due to file collisions.
* If necessary, refer to your elog messages for the whole content of the
* above message.
*
* Please include /var/tmp/portage/sys-devel/base-gcc-4.8.3/work/gcc-build-logs.tar.bz2 in your bug report.
What is this "base-gcc" package? I do not see it in Portage, and it seems to conflict with the simple "gcc" of the same version.


Haven't a clue. I am just doing a world update, However, it is in portage...

Code:
 sys-devel/base-gcc [2]
     Available versions: 
     (4.6)  ~4.6.4^s
     (4.7)  ~4.7.3^s 4.7.3-r1^s 4.7.4^s
     (4.8)  4.8.3^s
       {altivec awt (+)cxx doc fixed-point (+)fortran gcj go graphite hardened libssp mudflap multilib multislot (+)nls nopie nossp (+)nptl objc objc++ objc-gc (+)openmp regression-test +sanitize vanilla}
     Homepage:            http://gcc.gnu.org/
     Description:         The GNU Compiler Collection
Back to top
View user's profile Send private message
kurly
Apprentice
Apprentice


Joined: 02 Apr 2012
Posts: 245

PostPosted: Tue Dec 30, 2014 5:30 am    Post subject: Reply with quote

Are you asking about a Gentoo system or a Sabayon system?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 40642
Location: 56N 3W

PostPosted: Tue Dec 30, 2014 11:36 am    Post subject: Reply with quote

Budoka

My gentoo tells me
Code:
$ emerge -pv sys-devel/base-gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "sys-devel/base-gcc".


Further, if it was in the main tree, it should have block against sys-devel/gcc, since you may not have both installed at the same time.
As you found out, they both try to install the same files.

As you say, you only have one gcc, but in your case, the root cause is attemptitg to install a non gentoo portage tree package.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 5648
Location: Room 101

PostPosted: Tue Dec 30, 2014 1:06 pm    Post subject: Re: GCC File collisions??? Reply with quote

Budoka wrote:
Hu wrote:
What is this "base-gcc" package? I do not see it in Portage, and it seems to conflict with the simple "gcc" of the same version.

Haven't a clue. I am just doing a world update, However, it is in portage...

Code:
 sys-devel/base-gcc [2]

Budoka ... that "[2]" donotes its from another repo, eix will have shown which but it was sniped from your output. Looks to me as though its from sabayon.

Generally its a good idea to mask all packages from a repo, then selectively unmask those you want, this way you don't get packages from the main tree being replaced by those included in another repo. So, for example:

/etc/portage/package.mask
Code:
*/*::foo-overlay

/etc/portage/package.unmask
Code:
sys-fs/mdev-like-a-boss::foo-overlay

All packages, except sys-fs/mdev-like-a-boss, are masked from ::foo-overlay.

HTH & best ... khay
Back to top
View user's profile Send private message
hasufell
Retired Dev
Retired Dev


Joined: 29 Oct 2011
Posts: 429

PostPosted: Tue Dec 30, 2014 2:51 pm    Post subject: Re: GCC File collisions??? Reply with quote

khayyam wrote:
Generally its a good idea to mask all packages from a repo, then selectively unmask those you want, this way you don't get packages from the main tree being replaced by those included in another repo. So, for example:

/etc/portage/package.mask
Code:
*/*::foo-overlay

/etc/portage/package.unmask
Code:
sys-fs/mdev-like-a-boss::foo-overlay

All packages, except sys-fs/mdev-like-a-boss, are masked from ::foo-overlay.

Yes, you can also point people here https://wiki.gentoo.org/wiki/Overlay#Using_unsafe_overlays where this is described
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 646
Location: Tokyo, Japan

PostPosted: Fri Jan 02, 2015 8:37 pm    Post subject: Reply with quote

Thank you everyone for your advice and help. I had installed the Sabayon Overlay at some point to add a package that it contained and had totally forgotten about it. I actually didn't realize that it was another distro and if I had wouldn't have done so. Anyway, I removed the overlay and was able to successfully complete world update. Unfortunately my system was borked after doing so but will address that in a new thread.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum