This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Arfrever
Recipients Arfrever, akuchling, asmodai, mark.dickinson, r.david.murray, rpetrov, skrah, vstinner
Date 2010-07-13.19:40:12
SpamBayes Score 0.00018004121
Marked as misclassified No
Message-id <>
These changes break building of Python 3.* in some locales in Gentoo.

running build
running build_ext
Traceback (most recent call last):
  File "./", line 1812, in <module>
  File "./", line 1807, in main
  File "/var/tmp/portage/dev-lang/python-3.2_pre20100711/work/Python-3.2_pre20100711/Lib/distutils/", line 152, in setup
  File "/var/tmp/portage/dev-lang/python-3.2_pre20100711/work/Python-3.2_pre20100711/Lib/distutils/", line 946, in run_commands
  File "/var/tmp/portage/dev-lang/python-3.2_pre20100711/work/Python-3.2_pre20100711/Lib/distutils/", line 965, in run_command
  File "/var/tmp/portage/dev-lang/python-3.2_pre20100711/work/Python-3.2_pre20100711/Lib/distutils/command/", line 127, in run
  File "/var/tmp/portage/dev-lang/python-3.2_pre20100711/work/Python-3.2_pre20100711/Lib/distutils/", line 315, in run_command
  File "/var/tmp/portage/dev-lang/python-3.2_pre20100711/work/Python-3.2_pre20100711/Lib/distutils/", line 965, in run_command
  File "/var/tmp/portage/dev-lang/python-3.2_pre20100711/work/Python-3.2_pre20100711/Lib/distutils/command/", line 393, in run
  File "./", line 151, in build_extensions
    missing = self.detect_modules()
  File "./", line 539, in detect_modules
    for ln in fp:
  File "/var/tmp/portage/dev-lang/python-3.2_pre20100711/work/Python-3.2_pre20100711/Lib/encodings/", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 20: ordinal not in range(128)
make: *** [sharedmods] Error 1

In lt_LT.UTF-8 locale, readline_termcap_lib file contains:
	ne dinaminis paleidžiamasis failas

In en_US.UTF-8 locale, this file would contain:
	not a dynamic executable

do_readline is "/usr/lib64/".

/usr/lib64/ is a linker script with the following content:
/* GNU ld script
   Since Gentoo has critical dynamic libraries in /lib, and the static versions
   in /usr/lib, we need to have a "fake" dynamic lib in /usr/lib, otherwise we
   run into linking problems.  This "fake" dynamic lib is a linker script that
   redirects the linker to the real lib.  And yes, this works in the cross-
   compiling scenario as the sysroot-ed linker will prepend the real path.

   See bug for more info.
OUTPUT_FORMAT ( elf64-x86-64 )
GROUP ( /lib64/ )

I think that using ldd is a wrong idea.
Date User Action Args
2010-07-13 19:40:15Arfreversetrecipients: + Arfrever, akuchling, mark.dickinson, vstinner, asmodai, rpetrov, r.david.murray, skrah
2010-07-13 19:40:14Arfreversetmessageid: <>
2010-07-13 19:40:13Arfreverlinkissue7384 messages
2010-07-13 19:40:12Arfrevercreate