public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Hinnerk van Bruinehsen <h.v.bruinehsen@fu-berlin.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user]  glibc-2.17 fails and warning: setlocale: LC_ALL error
Date: Tue, 15 Jul 2014 10:15:26 +0200	[thread overview]
Message-ID: <20140715081526.GB10473@TranscendTheRubicon.zedat.fu-berlin.de> (raw)
In-Reply-To: <53C4DADD.1020607@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3605 bytes --]

On Tue, Jul 15, 2014 at 02:40:13AM -0500, Dale wrote:
> Hinnerk van Bruinehsen wrote:
> > I've taken a look at the bug that is mentioned in the error and there were
> > several things mentioned that are supposed to fix this:
> >
> > 	1. disable auditd (if you have it running) - this was the newest (from '14)
> > 	   So if you have it installed run /etc/init.d/auditd stop
> > 	2. reemerge several packages because python may have issues:
> > 	   - sync your tree
> > 	   - emerge portage (which will likely pull in some python stuff if the box
> > 		 wasn't updated for some time)
> > 	  (- optional: run eselect python and select a sane version and run python
> > 	  updater - this wasn't mentioned but may make sense nonetheless)
> > 	   - emerge linux-headers
> > 	   - emerge glibc (hopefully with success this time)
> >
> > WKR
> > Hinnerk
> 
> I didn't have the audit stuff installed BUT it was turned on in the
> kernel.  I kicked that out and also got rid of all that cgroup stuff I
> don't have any need for.  Rebooted then tried your list.  Audit stuff,
> gone. Sync is maybe a couple days old so should be OK.  Portage is up to
> date.  Python as follows:
> 
> dev-lang/python-2.7.6
> dev-lang/python-3.3.3
> 
> localhost ~ # eselect python list
> Available Python interpreters:
>   [1]   python2.7 *
>   [2]   python3.3
> localhost ~ #
> 
> Updated linux-headers.  It was a little out of sync with kernel
> version.  After all that, I get this:
> 
<SNIP>
> 
> So, the locale junk is gone but glibc is still not liking something. 
> Where did I put that hammer the last time I used it??  ;-) 
> 
> Ideas?  I'm pretty much out of them right now.  My idea is the hammer. 
> lol 

Generally hammers tend to make things worse... ;-)

Can you run;

 printf "#include <unistd.h>\n#include <sys/syscall.h>\nint main(){return \
 syscall(1000)!=-1;}\n" > syscall.c && make syscall && ./syscall && echo $?

(It should be all one line).
It will compile the test that seems to fail on your system and runs it,
expected output would be:

cc     syscall.c   -o syscall
0

The "0" says that all went well, if it reports something else then it's not
just the buildsystem...

If it's the system you'll have to reinstall glibc (no kidding, as it provides
the used headers (though they should be somewhat dependent on linux-headers)).

You could do the following to break out of this chicken-and-egg-problem:
you can download an appropriate stage3-tarball (x86 or amd64) and extract it to
some arbitrary location. Then you essentially do the same as if you would
install gentoo from scratch (bind mount dev and sys and mount proc) and chroot
into it.
Inside the chroot you sync your tree (you could also bind-mount it from the
default location) and emerge glibc again but this time with the --build-pkg
flag set (emerge --buildpkg glibc). As long as you kernel is new enough (which
3.15.5 definitely is) the build should succeed and leave you with a nice binpkg
of glibc sitting in <path-to-chroot>/usr/portage/packages (in case of the
bind mount it should also be there inside your real system). If needed copy
it to /usr/portage/packages and run emerge -K glibc (this will force portage
to use the binpkg).

I hope that this es enough to circumvent the check (if not you could also try
to boot your rig from usb and copy the contents of the binpkg manually).

If the build breaks even inside the chroot run uname -a and take a look if the
kernel you're running acutally reports to be a 3.15.5 one.

Good luck,
Hinnerk



[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2014-07-15  8:15 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-15  1:50 [gentoo-user] glibc-2.17 fails and warning: setlocale: LC_ALL error Dale
2014-07-15  2:02 ` Hinnerk van Bruinehsen
2014-07-15  2:19   ` Dale
2014-07-15  2:35     ` Hinnerk van Bruinehsen
2014-07-15  3:44       ` Dale
2014-07-15  5:33 ` Dale
2014-07-15  7:04   ` Hinnerk van Bruinehsen
2014-07-15  7:40     ` Dale
2014-07-15  8:15       ` Hinnerk van Bruinehsen [this message]
2014-07-15  8:40         ` Hinnerk van Bruinehsen
2014-07-15  9:25           ` Dale
2014-07-15 18:52             ` Douglas J Hunley
2014-07-15 19:18               ` Dale
2014-07-16  7:32             ` Dale
2014-07-16  7:46               ` Helmut Jarausch
2014-07-16  8:43                 ` Dale
2014-07-16  9:19                   ` Dale
2014-07-16 10:33                     ` J. Roeleveld
2014-07-16 15:44                       ` Dark Templar
2014-07-16 17:26                         ` Dale
2014-07-16 21:09                           ` Mick
2014-07-16 21:34                             ` Dale
2014-07-17  4:52                           ` J. Roeleveld
2014-07-17  7:19                             ` J. Roeleveld
2014-07-17  9:03                               ` Dale
2014-07-17  9:19                                 ` J. Roeleveld
2014-07-17 10:45                                   ` J. Roeleveld
2014-07-18  9:18                                     ` Dale
2014-07-18  9:38                                       ` J. Roeleveld
2014-07-18 12:44                                       ` Jc García
2014-07-17  9:20                                 ` Peter Humphrey
2014-07-17 13:24                                   ` Peter Humphrey
2014-07-16 17:21                       ` Dale
2014-07-17  0:39                         ` [gentoo-user] " walt
2014-07-17  1:01                           ` Dale
2014-07-17 21:41 ` [gentoo-user] SNIP " Dale
2014-07-17 22:08   ` Mick
2014-07-18  3:55     ` Dale
2014-07-18  4:32       ` Jc García
2014-07-17 22:48   ` Peter Humphrey
2014-07-18  5:54     ` Mick
2014-07-18  8:12       ` Peter Humphrey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140715081526.GB10473@TranscendTheRubicon.zedat.fu-berlin.de \
    --to=h.v.bruinehsen@fu-berlin.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox