Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565178 - dev-libs/elfutils: i386.mnemonics generation is broken in some locales (e.g. cs_CZ)
Summary: dev-libs/elfutils: i386.mnemonics generation is broken in some locales (e.g. ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 572080 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-11-09 06:48 UTC by M. Prášek
Modified: 2016-02-16 20:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,24.06 KB, text/plain)
2015-11-09 21:27 UTC, M. Prášek
Details
emerge --info (emerge.info,7.74 KB, text/plain)
2015-11-09 21:31 UTC, M. Prášek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description M. Prášek 2015-11-09 06:48:51 UTC
In file included from /var/tmp/portage/dev-libs/elfutils-0.164/work/elfutils-0.164/libcpu/i386_disasm.c:80:0:
./i386.mnemonics:118:1: error: redeclaration of enumerator 'MNE_fdecstp'
 MNE(fdecstp)
 ^
./i386.mnemonics:101:1: note: previous definition of 'MNE_fdecstp' was here
 MNE(fdecstp)
 ^
In file included from /var/tmp/portage/dev-libs/elfutils-0.164/work/elfutils-0.164/libcpu/i386_disasm.c:89:0:
./i386.mnemonics:118:43: warning: initialized field overwritten [-Woverride-init]
 MNE(fdecstp)


Reproducible: Always

Steps to Reproduce:
every ime  emerging elfutils asd part of upograding older system with  emerge --update --deep world 
Actual Results:  
In file included from /var/tmp/portage/dev-libs/elfutils-0.164/work/elfutils-0.164/libcpu/i386_disasm.c:80:0:
./i386.mnemonics:118:1: error: redeclaration of enumerator 'MNE_fdecstp'
 MNE(fdecstp)
 ^
./i386.mnemonics:101:1: note: previous definition of 'MNE_fdecstp' was here
 MNE(fdecstp)
 ^
In file included from /var/tmp/portage/dev-libs/elfutils-0.164/work/elfutils-0.164/libcpu/i386_disasm.c:89:0:
./i386.mnemonics:118:43: warning: initialized field overwritten [-Woverride-init]
 MNE(fdecstp)

Expected Results:  
compilling without error

this stop me from upgrading the system.
Comment 1 Rafał Mużyło 2015-11-09 13:30:18 UTC
Attach full build log.

Also "asd part of upograding older system" - just how "older" are we talking about ?
Comment 2 Michael Palimaka (kensington) gentoo-dev 2015-11-09 15:11:47 UTC
Please attach the full build log and add emerge --info.
Comment 3 M. Prášek 2015-11-09 21:27:27 UTC
Created attachment 416488 [details]
build log
Comment 4 M. Prášek 2015-11-09 21:28:24 UTC
(In reply to Rafał Mużyło from comment #1)
> Attach full build log.
> 
> Also "asd part of upograding older system" - just how "older" are we talking
> about ?

Aroun 2 years without  ful update
Comment 5 M. Prášek 2015-11-09 21:31:16 UTC
Created attachment 416490 [details]
emerge --info
Comment 6 SpanKY gentoo-dev 2015-11-10 01:17:45 UTC
(In reply to M. Prášek from comment #5)

you should not be setting LC_ALL in your make.conf.  there's no valid reason to do so.  this is what LANG is for.

at any rate, this is locale related, but i suspect it's due to a bug in glibc.  we hit this in bug 564936 already.
Comment 7 M. Prášek 2015-11-10 06:36:35 UTC
(In reply to SpanKY from comment #6)
> (In reply to M. Prášek from comment #5)
> 
> you should not be setting LC_ALL in your make.conf.  there's no valid reason
> to do so.  this is what LANG is for.
> 
> at any rate, this is locale related, but i suspect it's due to a bug in
> glibc.  we hit this in bug 564936 already.

I remove LC_ALL from /etc/env.d/02locale, env-update  and reboot. 
Does not help

export LC_ALL="" && emerge elfutils     does not work

however: 

export LC_ALL="C" && emerge elfutils     WORK

so definietly a locale problem.
Comment 8 SpanKY gentoo-dev 2015-11-10 06:51:33 UTC
(In reply to M. Prášek from comment #7)

LC_ALL="" is the same thing as `unset LC_ALL` in which case your LANG takes over.  this is to be expected.
Comment 9 M. Prášek 2015-11-10 07:48:21 UTC
(In reply to SpanKY from comment #8)
> (In reply to M. Prášek from comment #7)
> 
> LC_ALL="" is the same thing as `unset LC_ALL` in which case your LANG takes
> over.  this is to be expected.


Fix me if I am wrong. But build result should not be dependent on locale.
Comment 10 M. Prášek 2015-11-10 07:49:26 UTC
(In reply to SpanKY from comment #8)
> (In reply to M. Prášek from comment #7)
> 
> LC_ALL="" is the same thing as `unset LC_ALL` in which case your LANG takes
> over.  this is to be expected.

anyvay , thanx for pointing me to right direction.
Comment 11 SpanKY gentoo-dev 2015-11-10 18:14:12 UTC
(In reply to M. Prášek from comment #9)

no one said otherwise.  i was pointing out LC_ALL doesn't work the way you think it works.
Comment 12 SpanKY gentoo-dev 2016-01-18 09:40:44 UTC
*** Bug 572080 has been marked as a duplicate of this bug. ***
Comment 13 SpanKY gentoo-dev 2016-02-16 20:52:48 UTC
this should be fixed with glibc-2.22-r2+.  please test & re-open if it doesn't.