Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Remove old gcc Versions

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
tomtom2017
n00b
n00b
Posts: 8
Joined: Thu Jul 06, 2017 9:10 am

Remove old gcc Versions

  • Quote

Post by tomtom2017 » Fri Jul 14, 2017 3:16 pm

Hello again,

on my gentoo system I have several versions of gcc installed:
4.7.3
4.8.1-r1
4.9.2
6.3.0

I'd like to get rid of maybe 4.7 and 4.8 - but when I try to uninstall those using paludis, I get a conflict, no matter which version I choose.

Code: Select all

I cannot proceed without being permitted to do the following:

X   dev-db/mysql 5.6.36:0::installed
    Will be broken by uninstalls:
    Reasons: dependent upon sys-devel/gcc-4.7.3:4.7.4::installed (DEPEND)
    Cannot proceed without: --uninstalls-may-break or --remove-if-dependent

X   sys-apps/paludis 2.6.0:0::installed
    Will be broken by uninstalls:
    Reasons: dependent upon sys-devel/gcc-4.7.3:4.7.4::installed (DEPEND)
    Cannot proceed without: --uninstalls-may-break or --remove-if-dependent

X   sys-libs/glibc 2.17:2.2::installed
    Will be broken by uninstalls:
    Reasons: dependent upon sys-devel/gcc-4.7.3:4.7.4::installed (DEPEND)
    Cannot proceed without: --uninstalls-may-break or --remove-if-dependent
I don't understand why theses 3 are depending on all gcc-Verisons. Is there something to be done which I am not aware of?
To my understanding, I already switched to the latest gcc

Code: Select all

webserver ~ # gcc --version
gcc (Gentoo 6.3.0 p1.0) 6.3.0
Copyright (C) 2016 Free Software Foundation, Inc.
Could someone please help me?
Thanks!

Tom
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10898
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Fri Jul 14, 2017 3:23 pm

Sure. To fix,
  1. Make sure gcc-config selects a newer compiler (it probably already does).
  2. Run

    Code: Select all

    source /etc/profile; source ~/.bash_profile
  3. Rebuild the packages Paludis is complaining about.
That should do it.

- John
I can confirm that I have received between 0 and 499 National Security Letters.
Top
tomtom2017
n00b
n00b
Posts: 8
Joined: Thu Jul 06, 2017 9:10 am

  • Quote

Post by tomtom2017 » Fri Jul 14, 2017 4:47 pm

Hi John,

thanks for your support.

1. Already did that
2. There is no bash_profile there.
3. Reinstalled all three packages

Paludis still doesn't want to uninstall old gcc-Versions.

This is from the mysql-ebuild:

Code: Select all

DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
Paludis ebuild says

Code: Select all

DEPEND=">=sys-devel/gcc-4.7
glibc-ebuild tells us

Code: Select all

DEPEND+=">=sys-devel/gcc-4.7
So everything should be fine if I uninstall 4.7 because there are still 3 newer versions of gcc installed.
Could this be a bug in paludis or something? I'm lost here.

Thanks again.

Regards,
Thomas[/quote]
Top
baaann
Guru
Guru
Posts: 558
Joined: Mon Jan 23, 2006 4:36 am
Location: uk

  • Quote

Post by baaann » Thu Aug 10, 2017 10:52 am

I am seeing a similar situation with gcc-5.4.0-r3 and app-text/pdftk

Uninstalling app-text/pdftk allows removal of gcc-5.4.0-r3 however after doing so and trying to re-install app-text/pdftk, I get the following

Code: Select all

emerge -av pdftk                                          

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

Calculating dependencies... done!
[ebuild  NS    ] sys-devel/gcc-5.4.0-r3:5.4.0::gentoo [6.4.0:6.4.0::gentoo] USE="cxx fortran gcj (multilib) nls nptl openmp sanitize vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -go -graphite (-hardened) (-jit) (-libssp) -mpx -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 0 KiB
[ebuild  N     ] app-text/pdftk-2.02::gentoo  0 KiB

Total: 2 packages (1 new, 1 in new slot), Size of downloads: 0 KiB
and yet the pdftk ebuild does not depend on a specific version

Code: Select all

="http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/"
SRC_URI="http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/${P}-src.zip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ppc x86 ~amd64-linux"

DEPEND="sys-devel/gcc[gcj]"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${P}-dist/${PN}"

src_prepare() {
        epatch "${FILESDIR}"/${P}-flags.patch
}

src_compile() {
        # Settings by java-config break compilation by gcj.
        unset CLASSPATH
        unset JAVA_HOME

        # Parallel make fails; confirmed, still not fixed in version 2.02.
        emake -j1 -f "${S}"/Makefile.Debian || die "Compilation failed."
}

src_install() {
        dobin pdftk
        doman ../pdftk.1
        dohtml ../pdftk.1.html
}
[/code]
current gcc version

Code: Select all

gcc-config -l
 [1] x86_64-pc-linux-gnu-6.4.0 *
Top
Josef.95
Advocate
Advocate
Posts: 4857
Joined: Mon Sep 03, 2007 9:46 am
Location: Germany

  • Quote

Post by Josef.95 » Thu Aug 10, 2017 1:50 pm

@baaann,
for app-text/pdftk is sys-devel/gcc[gcj] required,
and gcc-5 is currently the last version with USE=gcj available.
(USE=gcj useflag is on gcc:6.4.0 masked).

Example:

Code: Select all

# emerge -pv pdftk

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

Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy "sys-devel/gcc[gcj]".
!!! One of the following packages is required to complete your request:
- sys-devel/gcc-5.4.0-r3::gentoo (Change USE: +gcj)
(dependency required by "app-text/pdftk-2.02::gentoo" [ebuild])
(dependency required by "pdftk" [argument])
Top
baaann
Guru
Guru
Posts: 558
Joined: Mon Jan 23, 2006 4:36 am
Location: uk

  • Quote

Post by baaann » Thu Aug 10, 2017 3:45 pm

Josef.95 wrote:@baaann,
for app-text/pdftk is sys-devel/gcc[gcj] required,
and gcc-5 is currently the last version with USE=gcj available.
(USE=gcj useflag is on gcc:6.4.0 masked).

Example:

Code: Select all

# emerge -pv pdftk

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

Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy "sys-devel/gcc[gcj]".
!!! One of the following packages is required to complete your request:
- sys-devel/gcc-5.4.0-r3::gentoo (Change USE: +gcj)
(dependency required by "app-text/pdftk-2.02::gentoo" [ebuild])
(dependency required by "pdftk" [argument])
Many thanks Josef, I honestly thought I had checked that......but pretty obvious once you do :oops:
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Thu Aug 10, 2017 4:13 pm

@tomtom2017: what does "emerge -p --depclean" show?
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic