Gentoo Archives: gentoo-user

From: Jeff Cranmer <jcranmer01@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] glibc - C preprocessor "/lib/cpp" fails sanity check
Date: Sun, 21 Dec 2008 17:30:03
Message-Id: 200812211230.26020.jcranmer01@earthlink.net
In Reply to: Re: [gentoo-user] glibc - C preprocessor "/lib/cpp" fails sanity check by Jeff Cranmer
1 On Sunday 21 December 2008 11:52:11 am Jeff Cranmer wrote:
2 > On Sunday 21 December 2008 11:11:59 am Justin wrote:
3 > > Jeff Cranmer schrieb:
4 > > > I have a problem with my gentoo system
5 > > >
6 > > > I am trying to update, and I get a C preprocessor "/lib/cpp" fails
7 > > > sanity check error on a number of packages.
8 > > >
9 > > > After a bit of searching, the solution that I come across most often is
10 > > > to recompile glibc and gcc. Unfortunately, when I try to compile
11 > > > glibc, I get the same sanity check error. Catch 22.
12 > > >
13 > > > Can anyone help me get around this 'insanity'?
14 > > >
15 > > > Thanks
16 > > >
17 > > > Jeff
18 > >
19 > > Can you provide some more information please? Logs etc?
20 >
21 > Here is the end of the output.
22 >
23 > checking whether we are using the GNU C compiler... yes
24 > checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
25 > checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89...
26 > unsupported checking how to run the C preprocessor... /lib/cpp
27 > configure: error: C preprocessor "/lib/cpp" fails sanity check
28 > See `config.log' for more details.
29 > *
30 > * ERROR: sys-libs/glibc-2.9_p20081201 failed.
31 > * Call stack:
32 > * ebuild.sh, line 49: Called src_compile
33 > * environment, line 3457: Called eblit-run 'src_compile'
34 > * environment, line 1115: Called eblit-glibc-src_compile
35 > * src_compile.eblit, line 179: Called src_compile
36 > * environment, line 3457: Called eblit-run 'src_compile'
37 > * environment, line 1115: Called eblit-glibc-src_compile
38 > * src_compile.eblit, line 187: Called toolchain-glibc_src_compile
39 > * src_compile.eblit, line 120: Called
40 > glibc_do_configure 'src_compile'
41 > * src_compile.eblit, line 97: Called die
42 > * The specific snippet of code:
43 > * "${S}"/configure ${myconf} || die "failed to configure glibc"
44 > * The die message:
45 > * failed to configure glibc
46 > *
47 > * If you need support, post the topmost build error, and the call stack if
48 > relevant.
49 > * A complete build log is located
50 > at '/var/tmp/portage/sys-libs/glibc-2.9_p20081201/temp/build.log'.
51 > * The ebuild environment file is located
52 > at '/var/tmp/portage/sys-libs/glibc-2.9_p20081201/temp/environment'.
53 > *
54 >
55 > * Messages for package sys-libs/glibc-2.9_p20081201:
56 >
57 > *
58 > * ERROR: sys-libs/glibc-2.9_p20081201 failed.
59 > * Call stack:
60 > * ebuild.sh, line 49: Called src_compile
61 > * environment, line 3457: Called eblit-run 'src_compile'
62 > * environment, line 1115: Called eblit-glibc-src_compile
63 > * src_compile.eblit, line 179: Called src_compile
64 > * environment, line 3457: Called eblit-run 'src_compile'
65 > * environment, line 1115: Called eblit-glibc-src_compile
66 > * src_compile.eblit, line 187: Called toolchain-glibc_src_compile
67 > * src_compile.eblit, line 120: Called
68 > glibc_do_configure 'src_compile'
69 > * src_compile.eblit, line 97: Called die
70 > * The specific snippet of code:
71 > * "${S}"/configure ${myconf} || die "failed to configure glibc"
72 > * The die message:
73 > * failed to configure glibc
74 > *
75 > * If you need support, post the topmost build error, and the call stack if
76 > relevant.
77 > * A complete build log is located
78 > at '/var/tmp/portage/sys-libs/glibc-2.9_p20081201/temp/build.log'.
79 > * The ebuild environment file is located
80 > at '/var/tmp/portage/sys-libs/glibc-2.9_p20081201/temp/environment'.
81 >
82 > I've attached the build.log, but can't find config.log. Where is this
83 > normally located?
84 >
85 > Jeff
86
87 After finding this link with a possible solution,
88 http://www.linux-solved.com/post/gnu-stubs-32-h-No-such-file-or-directory-multilib-SOLVED-564.html
89
90 I downloaded binaries of glibc and gcc
91
92 I emerged gcc from a binary successfully, but when I tried to install the
93 glibc binary, it failed because the binary I found was rev 2.6.1, and the
94 present version is glibc-2.9_p20081201, so emerge would not allow the
95 downgrade.
96
97 The error was
98 * Sanity check to keep you from breaking your system:
99 * Downgrading glibc is not supported and a sure way to destruction
100 *
101 * ERROR: sys-libs/glibc-2.6.1 failed.
102 * Call stack:
103 * ebuild.sh, line 49: Called pkg_setup
104 * environment, line 3275: Called die
105 * The specific snippet of code:
106 * die "aborting to save your system";
107 * The die message:
108 * aborting to save your system
109 *
110 * If you need support, post the topmost build error, and the call stack if
111 relevant.
112 * A complete build log is located
113 at '/var/tmp/portage/sys-libs/glibc-2.6.1/temp/build.log'.
114 * The ebuild environment file is located
115 at '/var/tmp/portage/sys-libs/glibc-2.6.1/temp/environment'.
116
117 I then tried emerge binutils glibc gcc after running source /etc/profile and
118 env-update.
119
120 binutils emerged successfully, but glibc still failed with the same sanity
121 check error.
122
123 Does anyone know where I can get the latest binary for an amd64 system, or
124 otherwise get around this issue?
125
126 Thanks
127
128 Jeff

Replies

Subject Author
Re: [gentoo-user] glibc - C preprocessor "/lib/cpp" fails sanity check Qian Qiao <qian.qiao@×××××.com>