If I emerged python-2.5 with LC_ALL=de_DE@euro (and LANG=de_DE@euro), the compile fails: i686-pc-linux-gnu-gcc -pthread -c -fno-strict-aliasing -DNDEBUG -march=athlon-xp -O2 -pipe -I. -I./Include -fPIC -DPy_BUILD_CORE -o Python/graminit.o Python/graminit.c i686-pc-linux-gnu-gcc -pthread -c -fno-strict-aliasing -DNDEBUG -march=athlon-xp -O2 -pipe -I. -I./Include -fPIC -DPy_BUILD_CORE -DSVNVERSION=\"`LANG=C svnversion .`\" -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c i686-pc-linux-gnu-gcc: ": Datei oder Verzeichnis nicht gefunden ./Modules/getbuildinfo.c: In Funktion
If I emerged python-2.5 with LC_ALL=de_DE@euro (and LANG=de_DE@euro), the compile fails: i686-pc-linux-gnu-gcc -pthread -c -fno-strict-aliasing -DNDEBUG -march=athlon-xp -O2 -pipe -I. -I./Include -fPIC -DPy_BUILD_CORE -o Python/graminit.o Python/graminit.c i686-pc-linux-gnu-gcc -pthread -c -fno-strict-aliasing -DNDEBUG -march=athlon-xp -O2 -pipe -I. -I./Include -fPIC -DPy_BUILD_CORE -DSVNVERSION=\"`LANG=C svnversion .`\" -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c i686-pc-linux-gnu-gcc: ": Datei oder Verzeichnis nicht gefunden ./Modules/getbuildinfo.c: In Funktion »_Py_svnversion«: ./Modules/getbuildinfo.c:44: Fehler: fehlendes abschließendes Zeichen " make: *** [Modules/getbuildinfo.o] Fehler 1 !!! ERROR: dev-lang/python-2.5-r1 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile python-2.5-r1.ebuild, line 186: Called die !!! Parallel make failed !!! If you need support, post the topmost build error, and the call stack if relevant. Setting LANG and LC_ALL to 'C' fixes this.
Please, reopen with error messages in English and emerge --info.
Yes, I made the mistake once, but this time the German error messages are no mistake. When I recompile with LC_ALL=C/LANG=C, the error disappears... so I can't provide English error messages, sorry.
Portage 2.1.2_pre2-r7 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.18-ck1 i686) ================================================================= System uname: 2.6.18-ck1 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.12.5 Last Sync: Mon, 09 Oct 2006 13:50:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4, 2.5-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="" ANT_HOME="/usr/share/ant-core" ARCH="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CLASSPATH="." CLEAN_DELAY="5" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CVS_RSH="ssh" CXXFLAGS="-march=athlon-xp -O2 -pipe" DCCC_PATH="/usr/lib/distcc/bin" DISTCC_LOG="" DISTCC_VERBOSE="0" DISTDIR="/usr/portage/distfiles" EDITOR="/bin/nano" ELIBC="glibc" EMERGE_DEFAULT_OPTS="--verbose" EMERGE_WARNING_DELAY="10" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -P ${DISTDIR} ${URI}" GCC_SPECS="" GDK_USE_XFT="1" GDM_LANG="de_DE@euro" GENERATION="2" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" G_BROKEN_FILENAMES="1" G_FILENAME_ENCODING="UTF-8" HOME="/root" INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.17/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info" INPUT_DEVICES="keyboard mouse" JAVAC="/etc/java-config-2/current-system-vm/bin/javac" JAVA_HOME="/etc/java-config-2/current-system-vm" JDK_HOME="/etc/java-config-2/current-system-vm" KERNEL="linux" LANG="de_DE@euro" LC_ALL="de_DE@euro" LDFLAGS="-Wl,-O1" LESS="-R -M --shift 5" LESSOPEN="|lesspipe.sh %s" LINGUAS="de en" LOGNAME="root" MAKEOPTS="-j2" MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.17/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man:/opt/sun-jdk-1.4.2.12/man:/etc/java-config/system-vm/man/:/usr/qt/3/doc/man:/opt/vmware/server/man" OPENGL_PROFILE="nvidia" PAGER="/usr/bin/less" PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/opt/sun-jdk-1.4.2.12/bin:/opt/sun-jdk-1.4.2.12/jre/bin:/opt/sun-jdk-1.4.2.12/jre/javaws:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/vmware/server/bin" PKGDIR="/usr/portage/packages" PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig" PORTAGE_ARCHLIST="ppc s390 amd64 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha ppc-macos hppa x86" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_BIN_PATH="/usr/lib/portage/bin" PORTAGE_CALLER="emerge" PORTAGE_CONFIGROOT="/" PORTAGE_DEBUG="0" PORTAGE_DEPCACHEDIR="/var/cache/edb/dep" PORTAGE_ELOG_CLASSES="log warn error" PORTAGE_ELOG_MAILFROM="portage" PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}" PORTAGE_ELOG_MAILURI="root" PORTAGE_GID="250" PORTAGE_INST_GID="0" PORTAGE_INST_UID="0" PORTAGE_PYM_PATH="/usr/lib/portage/pym" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_RSYNC_RETRIES="3" PORTAGE_TMPDIR="/var/tmp" PORTAGE_WORKDIR_MODE="0700" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/christian/data/sec/gentoo /usr/portage/local/layman/portage-xgl" PRELINK_PATH="" PRELINK_PATH_MASK="/usr/lib/gstreamer-0.10:/usr/lib/gstreamer-0.8:/lib/modules:/usr/lib/locale:/usr/lib/wine:/usr/lib/valgrind:*.la:*.png:*.py:*.pl:*.pm:*.sh:*.xml:*.xslt:*.a:*.js" PWD="/root" PYTHONDOCS="/usr/share/doc/python-docs-2.4.3/html" PYTHONPATH="/usr/lib/portage/pym" QMAKESPEC="linux-g++" QTDIR="/usr/qt/3" RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -P ${DISTDIR} ${URI}" ROOT="/" ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/opt/sun-jdk-1.4.2.12/bin:/opt/sun-jdk-1.4.2.12/jre/bin:/opt/sun-jdk-1.4.2.12/jre/javaws:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/vmware/server/bin" RPMDIR="/usr/portage/rpm" SHELL="/bin/bash" SHLVL="1" STAGE1_USE="nptl nptlonly unicode" SYNC="rsync://194.97.4.250/gentoo-portage" TERM="xterm" USE="x86 3dnow X alsa apache2 berkdb bitmap-fonts cairo cdr cli crypt cups dbus dlloader dri dvd dvdr elibc_glibc emboss encode fam firefox fortran gdbm gif glitz gpm gstreamer gtk gtk2 hal input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kernel_linux libg++ linguas_de linguas_en mad mikmod mmx mp3 mpeg ncurses nls nptl nptlonly nvidia ogg opengl pam pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spl sse sseext ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_dummy video_cards_nvidia vorbis win32codecs xml xorg xv zlib" USER="root" USERLAND="GNU" USE_EXPAND="CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS" USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND" USE_ORDER="env:pkg:conf:defaults" VIDEO_CARDS="nvidia dummy" VMHANDLE="sun-jdk-1.4" XARGS="xargs -r" _="/usr/bin/emerge" __GL_YIELD="NOTHING"
(In reply to comment #2) > Yes, I made the mistake once, but this time the German error messages are no > mistake. When I recompile with LC_ALL=C/LANG=C, the error disappears... so I > can't provide English error messages, sorry. This time it was wrong more or less again: As jakub told me on IRC, I should have tried to compile with LC_ALL/LANG=en_US.UTF-8, but this builds correctly, so no English error messages again... (The command svnversion is invoked somewhere in Makefile.pre.in and the English output is 'exported' in some cases while the output in other languages differs ('exportiert' in German)...) (and emerge --info was too verbose as well, as I had --verbose in my default opts -- sorry) Now again the error with translated messages: i686-pc-linux-gnu-gcc: ": No such file or directory ./Modules/getbuildinfo.c: In function "_Py_svnversion": ./Modules/getbuildinfo.c:44: Error: missing terminating char " make: *** [Modules/getbuildinfo.o] Error 1 [I'm really sorry to cause so much trouble for so "trivial" bugs... :/]
Created attachment 99330 [details, diff] This is what did the trick for me. (apply to unpacked Python source) Changes LANG=C to LC_ALL=C so that svnversion will always use standard locale. I added this patch to python-2.5-r1.ebuild and successfully installed it from a shell with LC_ALL=de_DE.UTF-8.
Same problem with LC_ALL=de_DE.UTF-8
hello? anyone cares to fix the ebuild meanwhile <g>? no pun intended, sry, but this bug is open since month now, hmm..
Fixed in 2.5.1.
thx for the fix! but could you also add the "~amd64" flag please? yes - 2.5.1 it compiles fine here. i added amd64 manually sofar. thx!