Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394135 - dev-lang/python-3.1.4-r3 fails to compile with MAKEOPTS = "-j8"
Summary: dev-lang/python-3.1.4-r3 fails to compile with MAKEOPTS = "-j8"
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 12:20 UTC by J. Espert
Modified: 2011-12-13 16:58 UTC (History)
0 users

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


Attachments
output of emerge --info =dev-lang/python-3.1.4-r3 (emerge.info,4.41 KB, text/plain)
2011-12-13 16:56 UTC, J. Espert
Details
build log (build.log,49.92 KB, text/plain)
2011-12-13 16:57 UTC, J. Espert
Details
output of emerge -pqv =dev-lang/python-3.1.4-r3 (emerge.pqv,151 bytes, text/plain)
2011-12-13 16:57 UTC, J. Espert
Details
ebuild environment (environment,226.43 KB, text/plain)
2011-12-13 16:58 UTC, J. Espert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J. Espert 2011-12-09 12:20:53 UTC
dev-lang/python-3.1.4-r3 fails to compile on my machine (a Sandy Bridge Xeon workstation) if MAKEOPTS="-j8" is set. It works properly with MAKEOPTS="-j1". I also tried MAKEOPTS="-j4" and it worked, so maybe a high number of jobs is needed to show the bug.

The idea to use MAKEOPTS="-j1" comes from http://forums.gentoo.org/viewtopic-t-892978-start-0.html . It's for a different version, but works on my system nonetheless.


Reproducible: Always

Steps to Reproduce:
1.MAKEOPTS="-j8" emerge --oneshot python

Actual Results:  
Compilation fails.

Console:
running build
running build_ext
building dbm using gdbm
error: @LIBFFI_INCLUDEDIR@/ffi.h: No such file or directory
make: *** [sharedmods] Error 1
emake failed
 * ERROR: dev-lang/python-3.1.4-r3 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 5728:  Called die
 * The specific snippet of code:
 *       emake EPYTHON="python${PV%%.*}" || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-lang/python-3.1.4-r3',
 * the complete build log and the output of 'emerge -pqv =dev-lang/python-3.1.4-r3'.
 * The complete build log is located at '/var/tmp/portage/dev-lang/python-3.1.4-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-3.1.4-r3/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/python-3.1.4-r3/work/Python-3.1.4'

>>> Failed to emerge dev-lang/python-3.1.4-r3, Log file:

>>>  '/var/tmp/portage/dev-lang/python-3.1.4-r3/temp/build.log'

 * Messages for package dev-lang/python-3.1.4-r3:

 * ERROR: dev-lang/python-3.1.4-r3 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 5728:  Called die
 * The specific snippet of code:
 *       emake EPYTHON="python${PV%%.*}" || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-lang/python-3.1.4-r3',
 * the complete build log and the output of 'emerge -pqv =dev-lang/python-3.1.4-r3'.
 * The complete build log is located at '/var/tmp/portage/dev-lang/python-3.1.4-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/python-3.1.4-r3/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/python-3.1.4-r3/work/Python-3.1.4'



emerge --info =dev-lang/python-3.1.4-r3
Portage 2.1.10.11 (default/linux/amd64/10.0/no-multilib, gcc-4.5.3, glibc-2.13-r4, 2.6.39 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.39-x86_64-Intel-R-_Xeon-R-_CPU_E31245_@_3.30GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 09 Dec 2011 10:00:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/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="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri gdbm gnutls gpm iconv mmx modules mudflap ncurses nls nptl nptlonly pam pcre pppd readline session sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-lang/python-3.1.4-r3 was built with the following:
USE="gdbm ncurses readline ssl threads (wide-unicode) xml -build -doc -examples -ipv6 -sqlite -tk -wininst"
CFLAGS="-march=native -O2 -fwrapv"
CXXFLAGS="-march=native -O2 -fwrapv"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -L."






Expected Results:  
The package compiles.
Comment 1 Agostino Sarubbo gentoo-dev 2011-12-09 13:49:48 UTC
Please attach full build log of failure
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2011-12-12 09:25:18 UTC
using MAKEOPTS=j1 works but it tend to miss the root of the problem and will likely not be accepted as a form of resolution.  This can be a gcc bug.  If you have them, eselect a different version of gcc, older and newer and re-emerge.  If you get success, then best settle for that, or consider re-submitting it as a gcc bug
Comment 3 J. Espert 2011-12-13 16:56:56 UTC
Created attachment 295691 [details]
output of emerge --info =dev-lang/python-3.1.4-r3
Comment 4 J. Espert 2011-12-13 16:57:40 UTC
Created attachment 295693 [details]
build log
Comment 5 J. Espert 2011-12-13 16:57:59 UTC
Created attachment 295695 [details]
output of emerge -pqv =dev-lang/python-3.1.4-r3
Comment 6 J. Espert 2011-12-13 16:58:28 UTC
Created attachment 295697 [details]
ebuild environment