Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Building media-libs/lcms-2.6-r1 failed
Date: Wed, 29 Oct 2014 19:20:23
Message-Id: CADPrc80fva1O0opvFgYzcQLkhXvtb4647uGCNg+s5nt+Whs-kg@mail.gmail.com
In Reply to: Re: [gentoo-user] Building media-libs/lcms-2.6-r1 failed by Gevisz
1 On Wed, Oct 29, 2014 at 1:10 PM, Gevisz <gevisz@×××××.com> wrote:
2 > On Wed, 29 Oct 2014 19:25:20 +0200 Alexander Kapshuk <alexander.kapshuk@×××××.com> wrote:
3 >
4 >> On Wed, Oct 29, 2014 at 6:05 PM, Gevisz <gevisz@×××××.com> wrote:
5 >> > After today's # emerge-webrsyc
6 >> > # emerge --update --deep --with-bdeps=y --newuse --backtrack=90 --ask world
7 >> > failed with the following message:
8 >> >
9 >> > These are the packages that would be merged, in order:
10 >> >
11 >> > Calculating dependencies... done!
12 >> > [ebuild U ] media-libs/lcms-2.6-r1 [2.5] USE="threads%*" ABI_X86="(64%*) (-32) (-x32)"
13 >> > [ebuild U ] net-misc/wget-1.16 [1.14]
14 >> > [ebuild U ] media-gfx/imagemagick-6.8.9.9 [6.8.8.10-r1]
15 >> >
16 > <skipped>
17 >> >
18 >> > I think that something may be wrong with sys-devel/gcc-4.8.3 as my problems begun when
19 >> > I have updated it from sys-devel/gcc-4.7.3-r1 this Monday. Namely, just after this only
20 >> > update, # emerge @preserved-rebuild
21 >> > failed to rebuild app-text/pdftk-1.44 that was not updated that time and built well with
22 >> > sys-devel/gcc-4.7.3-r1. Then I recalled that to build app-text/pdftk I had to add gcj use
23 >> > flag to sys-devel/gcc. So, as I am not fond of Java, I just unmerged app-text/pdftk.
24 >> > Bu now it seems that I had to unmerge media-libs/lcms and all packages that depend on it.
25 >> >
26 >> > May be it would be easier to unmerge sys-devel/gcc-4.8.3 and return back to
27 >> > sys-devel/gcc-4.7.3-r1 but I do not know how to do it properly.
28 >> >
29 >>
30 >> Did you remember to run 'gcc-config -f 1' after updating gcc as root?
31 >
32 > No, I did not remember to run 'gcc-config -f 1' because I never knew that it should be done
33 > and no portage message advised me to do so. `man gcc' or `man gcc-config' also report that
34 > there is no manual on these packets. Gentoo's Upgrading GCC wiki also says nothing about
35 > this command...
36 >
37 >> What's the output of 'gcc-config -l'?
38 >
39 > # gcc-config -l
40 > * gcc-config: Active gcc profile is invalid!
41 >
42 > [1] x86_64-pc-linux-gnu-4.8.3
43 >
44 > Nice!
45 >
46 > Ok, trying # gcc-config -f 1
47 > * Switching native-compiler to x86_64-pc-linux-gnu-4.8.3 ...
48 >>>> Regenerating /etc/ld.so.cache... [ ok ]
49 >
50 > * If you intend to use the gcc from the new profile in an already
51 > * running shell, please remember to do:
52 >
53 > * . /etc/profile
54 >
55 >
56 > What exactly shall I remember to do?
57 >
58 > Ok, # gcc-config -l
59 > [1] x86_64-pc-linux-gnu-4.8.3 *
60 >
61 > Now # emerge --update --deep --with-bdeps=y --newuse --backtrack=90 --ask world
62 > emerges all three above packages.
63 >
64 > Trying to emerge pdftk. Done.
65 >
66 > Ok. Thank you. But why there was no hint about it after updating gcc?
67 >
68 > Well, there was a reference to Gentoo's Upgrading GCC wiki
69 > but nothing more...
70
71 From the toolchain eclass[1]:
72
73 # if we're installing a genuinely different compiler version,
74 # we should probably tell the user -how- to switch to the new
75 # gcc version, since we're not going to do it for him/her.
76 # We don't want to switch from say gcc-3.3 to gcc-3.4 right in
77 # the middle of an emerge operation (like an 'emerge -e world'
78 # which could install multiple gcc versions).
79 # Only warn if we're installing a pkg as we might be called from
80 # the pkg_{pre,post}rm steps. #446830
81 if [[ ${EBUILD_PHASE} == *"inst" ]] ; then
82 einfo "The current gcc config appears valid, so it will not be"
83 einfo "automatically switched for you. If you would like to"
84 einfo "switch to the newly installed gcc version, do the"
85 einfo "following:"
86 echo
87 einfo "gcc-config ${CTARGET}-${GCC_CONFIG_VER}"
88 einfo "source /etc/profile"
89 echo
90 fi
91
92 This gets printed if you "genuinely" install a different compiler
93 version. If it didn't, it is a bug and should be reported.
94
95 Regards.
96
97 [1] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?view=markup
98 --
99 Canek Peláez Valdés
100 Profesor de asignatura, Facultad de Ciencias
101 Universidad Nacional Autónoma de México

Replies

Subject Author
Re: [gentoo-user] Building media-libs/lcms-2.6-r1 failed Gevisz <gevisz@×××××.com>