dev-lang/python-3.1.1 won't compille Reproducible: Always Steps to Reproduce: 1. nice -n 19 emerge -avDu dev-lang/python 2. 3. Actual Results: Failed to build these modules: _tkinter running build_scripts creating build/scripts-3.1 copying and adjusting /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Tools/scripts/pydoc3 -> build/scripts-3.1 copying and adjusting /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Tools/scripts/idle3 -> build/scripts-3.1 copying and adjusting /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Tools/scripts/2to3 -> build/scripts-3.1 changing mode of build/scripts-3.1/pydoc3 from 644 to 755 changing mode of build/scripts-3.1/idle3 from 644 to 755 changing mode of build/scripts-3.1/2to3 from 644 to 755 make: *** [sharedmods] Error 1 * * ERROR: dev-lang/python-3.1.1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3946: Called _eapi2_src_compile * ebuild.sh, line 638: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/python-3.1.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-3.1.1/temp/environment'. Expected Results: successful compilation emerge --info Portage 2.2_rc40 (!../usr/portage/profiles/default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r4-i686-Intel-R-_Pentium-R-_M_processor_1.73GHz-with-gentoo-1.12.11.1 Timestamp of tree: Wed, 02 Sep 2009 05:55:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.8-r1 dev-lang/python: 2.4.4-r9, 2.5.4-r2, 2.6.2-r1, 3.1 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.4-r2 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer" DISTDIR="/mnt/nfs_portage/distfiles" FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans" GENTOO_MIRRORS="rsync://192.168.1.1/gentoo-portage/distfiles rsync://192.168.1.1/gentoo-portage/ rsync://ftp6.linux.cz/pub/linux/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo" LANG="cs_CZ.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="cs us" PKGDIR="/mnt/nfs_portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/mnt/nfs_portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip X acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo faad fam firefox fortran gdbm gif gpm gstreamer gtk hal iconv ipv6 isdnlog jack java jpeg kde ldap libnotify mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection sdl session slang spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs us" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Looks like you didn't paste enough, error is probably a few lines back.
OK here is more i686-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -L. -fno-strict-aliasing -DNDEBUG -march=pentium-m -O2 -pipe -fomit-frame-pointer -I. -IInclude -I./Include build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/_ctypes.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/callbacks.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/callproc.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/stgdict.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/cfield.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/malloc_closure.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src/prep_cif.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src/x86/ffi.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src/x86/sysv.o -L/usr/local/lib -L. -lpython3.1 -o build/lib.linux-i686-3.1/_ctypes.so Failed to build these modules: _tkinter running build_scripts creating build/scripts-3.1 copying and adjusting /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Tools/scripts/pydoc3 -> build/scripts-3.1 copying and adjusting /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Tools/scripts/idle3 -> build/scripts-3.1 copying and adjusting /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Tools/scripts/2to3 -> build/scripts-3.1 changing mode of build/scripts-3.1/pydoc3 from 644 to 755 changing mode of build/scripts-3.1/idle3 from 644 to 755 changing mode of build/scripts-3.1/2to3 from 644 to 755 make: *** [sharedmods] Error 1
*** Bug 283481 has been marked as a duplicate of this bug. ***
or might be better like this: i686-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -march=pentium-m -O2 -pipe -fomit-frame-pointer -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_tkinter.c -o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_tkinter.o In file included from /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_tkinter.c:67: /usr/include/tk.h:23:3: error: #error Tk 8.4 must be compiled with tcl.h from Tcl 8.4 creating build/temp.linux-i686-3.1/libffi checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... i686-pc-linux-gnu-gcc -pthread checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc -pthread accepts -g... yes checking for i686-pc-linux-gnu-gcc -pthread option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of i686-pc-linux-gnu-gcc -pthread... none checking dependency style of i686-pc-linux-gnu-gcc -pthread... none checking whether i686-pc-linux-gnu-gcc -pthread and cc understand -c and -o together... yes checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ld used by i686-pc-linux-gnu-gcc -pthread... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -pthread -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking whether we are using the GNU C++ compiler... yes checking whether i686-pc-linux-gnu-g++ -pthread accepts -g... yes checking dependency style of i686-pc-linux-gnu-g++ -pthread... none checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -pthread -E checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... gfortran checking whether we are using the GNU Fortran 77 compiler... yes checking whether gfortran accepts -g... yes checking the maximum length of command line arguments... 805306365 checking command to parse /usr/bin/nm -B output from i686-pc-linux-gnu-gcc -pthread object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if i686-pc-linux-gnu-gcc -pthread supports -fno-rtti -fno-exceptions... no checking for i686-pc-linux-gnu-gcc -pthread option to produce PIC... -fPIC checking if i686-pc-linux-gnu-gcc -pthread PIC flag -fPIC works... yes checking if i686-pc-linux-gnu-gcc -pthread static flag -static works... yes checking if i686-pc-linux-gnu-gcc -pthread supports -c -o file.o... yes checking whether the i686-pc-linux-gnu-gcc -pthread linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether to enable maintainer-specific portions of Makefiles... no checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking for mmap... yes checking for sys/mman.h... (cached) yes checking for mmap... (cached) yes checking whether read-only mmap of a plain file works... yes checking whether mmap from /dev/zero works... yes checking for MAP_ANON(YMOUS)... yes checking whether mmap with MAP_ANON(YMOUS) works... yes checking for ANSI C header files... (cached) yes checking for memcpy... yes checking for working alloca.h... yes checking for alloca... yes checking for double... yes checking size of double... 8 checking for long double... yes checking size of long double... 12 checking whether byte ordering is bigendian... no checking assembler .cfi pseudo-op support... yes checking whether .eh_frame section should be read-only... yes checking for __attribute__((visibility("hidden")))... yes configure: creating ./config.status config.status: creating include/ffi.h config.status: creating fficonfig.py config.status: creating fficonfig.h config.status: linking /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src/x86/ffitarget.h to include/ffitarget.h config.status: linking /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/include/ffi_common.h to include/ffi_common.h config.status: executing depfiles commands config.status: executing include commands config.status: executing src commands building '_ctypes' extension creating build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi creating build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src creating build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src/x86 i686-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -march=pentium-m -O2 -pipe -fomit-frame-pointer -Wa,--noexecstack -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/_ctypes.c -o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/_ctypes.o i686-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -march=pentium-m -O2 -pipe -fomit-frame-pointer -Wa,--noexecstack -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/callbacks.c -o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/callbacks.o i686-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -march=pentium-m -O2 -pipe -fomit-frame-pointer -Wa,--noexecstack -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/callproc.c -o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/callproc.o i686-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -march=pentium-m -O2 -pipe -fomit-frame-pointer -Wa,--noexecstack -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/stgdict.c -o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/stgdict.o i686-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -march=pentium-m -O2 -pipe -fomit-frame-pointer -Wa,--noexecstack -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/cfield.c -o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/cfield.o i686-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -march=pentium-m -O2 -pipe -fomit-frame-pointer -Wa,--noexecstack -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/malloc_closure.c -o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/malloc_closure.o i686-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -march=pentium-m -O2 -pipe -fomit-frame-pointer -Wa,--noexecstack -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src/prep_cif.c -o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src/prep_cif.o i686-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -march=pentium-m -O2 -pipe -fomit-frame-pointer -Wa,--noexecstack -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src/x86/ffi.c -o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src/x86/ffi.o i686-pc-linux-gnu-gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -march=pentium-m -O2 -pipe -fomit-frame-pointer -Wa,--noexecstack -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c -Ibuild/temp.linux-i686-3.1/libffi/include -Ibuild/temp.linux-i686-3.1/libffi -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1 -c /var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src/x86/sysv.S -o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src/x86/sysv.o i686-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -L. -fno-strict-aliasing -DNDEBUG -march=pentium-m -O2 -pipe -fomit-frame-pointer -I. -IInclude -I./Include build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/_ctypes.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/callbacks.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/callproc.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/stgdict.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/cfield.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/malloc_closure.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src/prep_cif.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src/x86/ffi.o build/temp.linux-i686-3.1/var/tmp/portage/dev-lang/python-3.1.1/work/Python-3.1.1/Modules/_ctypes/libffi/src/x86/sysv.o -L/usr/local/lib -L. -lpython3.1 -o build/lib.linux-i686-3.1/_ctypes.so Failed to build these modules: _tkinter
Next time attach !!! And yes: /usr/include/tk.h:23:3: error: #error Tk 8.4 must be compiled with tcl.h from Tcl 8.4 so it's probably a mismatch between tcl and tk.
my Tk is 8.5.7 nice -n 19 emerge -avD tk tcl These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-lang/tcl-8.5.7 USE="-debug -threads" 0 kB [ebuild R ] dev-lang/tk-8.5.7 USE="truetype -debug -threads" 0 kB
Something must be wrong with your system. This is from tk.h of 8.5: #if (TCL_MAJOR_VERSION != 8) || (TCL_MINOR_VERSION != 5) # error Tk 8.5 must be compiled with tcl.h from Tcl 8.5 #endif Try reemerging both and see if there's something in /usr/local that's messing things up.
Thanks, reemerging helped nice -n 19 emerge -avD tk tcl python