Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Duplicate Threads
  • Search

emerge system/gettext error

Threads in this read-only forum cover topics discussed elsewhere in other forums.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
lukaz
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 103
Joined: Sun Jun 20, 2004 9:20 pm
Location: europe.old.ch

emerge system/gettext error

  • Quote

Post by lukaz » Mon Jun 21, 2004 1:19 pm

hi there

I try to install gentoo (stage1) now the second time this week. the 1st time i missed some use-flags and also did not set the compiler-options well. therfor I am on the second go. but i ran both times in dificultnes with gettext. fist time i've gogled and found a solucion but cannot find anything helpfull this time and i also cannot remember how i've fixed it last time - it was late at night ;-) the error msg I came across by "emerge system" look like this (typed it from screen):

error: C++ preprocessor "/lib/cpp" fails sanity check
see 'config.log' for more details
configure: error: /bin/sh './configure' failed for autoconf-lib-link
ERROR: sys-devel/gettext-0.12.1 failed
Function econf, line 365, Exitcode 1
econf failed

the problem looks like this one here:
http://forums.gentoo.org/viewtopic.php?t=187866
or here:
http://article.gmane.org/gmane.linux.gentoo.user/82292
or here:
http://www.okoun.cz/boards/gentoo
or similar here:
http://forums.gentoo.org/viewtopic.php?t=188235
or similar here:
http://forums.gentoo.org/viewtopic.php?t=155307



i could not find the file: config.log and if i try to "emerge gettext" it will also fail with the same msg. also the setting accept_keywords="~x86"/accept_keywords="x86" this or that way did not help.

thx for any help.lukaz.
Top
moocha
Watchman
Watchman
Posts: 5722
Joined: Tue Oct 21, 2003 6:45 pm

  • Quote

Post by moocha » Mon Jun 21, 2004 2:17 pm

It's a long shot, but is the file system that contains /var/tmp mounted with the noexec option by any chance?
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Top
lukaz
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 103
Joined: Sun Jun 20, 2004 9:20 pm
Location: europe.old.ch

  • Quote

Post by lukaz » Mon Jun 21, 2004 3:28 pm

ther are just the root and the boot fs and both are mounted like:

mount /dev/hdax /mnt/blabla and after some otha cmds chroot..... /bin/bash

so, i dont think so. but if I change the "accept_keywords" value do i have to make a export that it takes a effect?

lukaz
Top
DaveAtFraud
n00b
n00b
Posts: 13
Joined: Sun Jun 20, 2004 9:39 pm
Location: Parker, Colorado USA

  • Quote

Post by DaveAtFraud » Mon Jun 21, 2004 5:06 pm

Not sure where the thread http://forums.gentoo.org/viewtopic.php?t=155307 started but this is identical to the problem I have been posting about in 155307. I can pretty much rule out any issues with odd mount options and such since "everything" involved seems to work fine from the command line; emerge just continues to hurl when it gets to the /lib/cpp sanity checks. Everything is in quotes since that means everything that I could find that seems to be involved. Obviously, I'm missing something.
When buying and selling are controlled by legislation, the first things bought and sold are the legislators.
-- P.J. O'Rourke
Top
DaveAtFraud
n00b
n00b
Posts: 13
Joined: Sun Jun 20, 2004 9:39 pm
Location: Parker, Colorado USA

Solution?

  • Quote

Post by DaveAtFraud » Mon Jun 21, 2004 9:03 pm

I may have finally found the right Google question to as: "sanity /lib/cpp". One of the links was to a LFS posting regarding the same error. It can be caused by cpp not being able to find the kernel headers. I won't have a chance to try anything with this for another three or four hours (work sure has a way of intruding on fun). Traditionally, the kernel source is in /usr/src or there will be links there but I'm not sure what Gentoo does at this stage of an install.
When buying and selling are controlled by legislation, the first things bought and sold are the legislators.
-- P.J. O'Rourke
Top
moocha
Watchman
Watchman
Posts: 5722
Joined: Tue Oct 21, 2003 6:45 pm

  • Quote

Post by moocha » Mon Jun 21, 2004 9:48 pm

Do not, ever link /usr/include/linux into the kernel source tree. emerge sys-kernel/linux-headers instead. Search the forum for glibc horror stories if you're curious as to why :).
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Top
DaveAtFraud
n00b
n00b
Posts: 13
Joined: Sun Jun 20, 2004 9:39 pm
Location: Parker, Colorado USA

  • Quote

Post by DaveAtFraud » Mon Jun 21, 2004 10:07 pm

moocha wrote:Do not, ever link /usr/include/linux into the kernel source tree. emerge sys-kernel/linux-headers instead. Search the forum for glibc horror stories if you're curious as to why :).
I'll buy that. Thanks for answering my remaining question which was how to get the kernel headers onto the box Gentooishly. :D

I do want to poke around on the box before doing the suggested emerge. It should be interesting to find out if the headers are there but for some reason cpp isn't finding them or if they aren't there at all. Same question for the stage1 tar ball.

Follow-up: The headers are there and, I guess, where they're supposed to be. Apparently, following the documentation puts them in /usr/include/linux. The next question is, why isn't configure finding them?

Second follow-up: OK. This is really weird. After deciding that the kernel headers were already on the system and where they were supposed to be I was left with the possibility that they weren't being found. I noticed that what both bootstrap.sh and emerge system spit back at me as to the configure options ended with "-srcdir=" so I tried to set that using CFLAGS. That didn't work but I also got a diagnostic that the configure step for bootstrap.sh didn't like the "-mcpu=i686" flag. I changed this to "-march=i686" and now bootstrap.sh is happily grinding away (previously it "finished" in less than a minute).

I'll re-dump the stage 1 tar ball when I get a chance but I'm pretty sure the "-mcpu=i686" was a default value in make.conf. Its either that or it was something obviously wrong and I blindly changed it to i686 thinking it was the -march option. Doh!
When buying and selling are controlled by legislation, the first things bought and sold are the legislators.
-- P.J. O'Rourke
Top
lukaz
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 103
Joined: Sun Jun 20, 2004 9:20 pm
Location: europe.old.ch

-f --> fetch only

  • Quote

Post by lukaz » Tue Jun 22, 2004 7:17 pm

oh, silly mistake

i've bootstraped the short way with -f (fetch only) but never compiled.

but it seams i'm not the only one ;-)

good luck the ones with the real probs.lukaz.
Top
tomk
Bodhisattva
Bodhisattva
User avatar
Posts: 7221
Joined: Tue Sep 23, 2003 1:41 pm
Location: Sat in front of my computer

  • Quote

Post by tomk » Sat Feb 12, 2005 4:18 pm

Moved to Duplicate Threads, please see this FAQ:

http://forums.gentoo.org/viewtopic.php?t=294108
Search | Read | [topic=119906]Answer[/topic] | [topic=28820]Report[/topic] | [topic=160179]Strip[/topic]
Top
Post Reply

9 posts • Page 1 of 1

Return to “Duplicate Threads”

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