Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475174 - dev-python/psutil-0.7.1-r1000 failed (compile phase): * Building failed with PyPy 2.0 (Python 2.7) in distutils_building() function
Summary: dev-python/psutil-0.7.1-r1000 failed (compile phase): * Building failed wi...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-29 05:48 UTC by Tom Li
Modified: 2013-06-30 05:43 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Li 2013-06-29 05:48:19 UTC
* Building of dev-python/psutil-0.7.1-r1000 with PyPy 2.0 (Python 2.7)...
CPP="x86_64-pc-linux-gnu-cpp" CC="x86_64-pc-linux-gnu-gcc" CXX="x86_64-pc-linux-gnu-g++" LDSHARED="x86_64-pc-linux-gnu-gcc -shared" LDCXXSHARED="x86_64-pc-linux-gnu-g++ -shared" pypy-c2.0 setup.py build -b build-2.7-pypy-2.0
running build
running build_py
creating build-2.7-pypy-2.0
creating build-2.7-pypy-2.0/lib.linux-x86_64-2.7
creating build-2.7-pypy-2.0/lib.linux-x86_64-2.7/psutil
copying psutil/_error.py -> build-2.7-pypy-2.0/lib.linux-x86_64-2.7/psutil
copying psutil/_psposix.py -> build-2.7-pypy-2.0/lib.linux-x86_64-2.7/psutil
copying psutil/__init__.py -> build-2.7-pypy-2.0/lib.linux-x86_64-2.7/psutil
copying psutil/_compat.py -> build-2.7-pypy-2.0/lib.linux-x86_64-2.7/psutil
copying psutil/_common.py -> build-2.7-pypy-2.0/lib.linux-x86_64-2.7/psutil
copying psutil/_psosx.py -> build-2.7-pypy-2.0/lib.linux-x86_64-2.7/psutil
copying psutil/_pslinux.py -> build-2.7-pypy-2.0/lib.linux-x86_64-2.7/psutil
copying psutil/error.py -> build-2.7-pypy-2.0/lib.linux-x86_64-2.7/psutil
copying psutil/_psbsd.py -> build-2.7-pypy-2.0/lib.linux-x86_64-2.7/psutil
copying psutil/_psmswindows.py -> build-2.7-pypy-2.0/lib.linux-x86_64-2.7/psutil
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building '_psutil_linux' extension
creating build-2.7-pypy-2.0/temp.linux-x86_64-2.7
creating build-2.7-pypy-2.0/temp.linux-x86_64-2.7/psutil
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -fomit-frame-pointer -Werror=implicit-function-declaration -fPIC -I/usr/lib64/pypy2.0/include -c psutil/_psutil_linux.c -o build-2.7-pypy-2.0/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
psutil/_psutil_linux.c: In function ‘get_process_cpu_affinity’:
psutil/_psutil_linux.c:182:5: error: implicit declaration of function ‘sched_getaffinity’ [-Werror=implicit-function-declaration]
     if (sched_getaffinity(pid, len, (cpu_set_t *)&mask) < 0) {
     ^
psutil/_psutil_linux.c: In function ‘set_process_cpu_affinity’:
psutil/_psutil_linux.c:202:5: error: implicit declaration of function ‘sched_setaffinity’ [-Werror=implicit-function-declaration]
     if (sched_setaffinity(pid, len, (cpu_set_t *)&mask)) {
     ^
cc1: some warnings being treated as errors
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
 * ERROR: dev-python/psutil-0.7.1-r1000 failed (compile phase):
 *   Building failed with PyPy 2.0 (Python 2.7) in distutils_building() function
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3665:  Called distutils_src_compile
 *   environment, line 1093:  Called python_execute_function 'distutils_building'
 *   environment, line 1827:  Called die
 * The specific snippet of code:
 *                       die "${_python[failure_message]}";
 * 
 * If you need support, post the output of `emerge --info '=dev-python/psutil-0.7.1-r1000'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/psutil-0.7.1-r1000'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/psutil-0.7.1-r1000/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/psutil-0.7.1-r1000/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/psutil-0.7.1-r1000/work/psutil-0.7.1'
 * S: '/var/tmp/portage/dev-python/psutil-0.7.1-r1000/work/psutil-0.7.1'

Reproducible: Always




Portage 2.3.6-r1 (funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-4.8.0, glibc-2.15-r4, 3.9.7-e-nvidia x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.9.7-e-nvidia-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2.0
KiB Mem:     8136108 total,   1572888 free
KiB Swap:    2128872 total,   1838872 free
Timestamp of tree: Fri, 28 Jun 2013 17:15:01 +0000
ld GNU gold (GNU Binutils 2.22) 1.11
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.2.0-r1000
dev-lang/python:          2.7.5-r1000, 3.3.2-r1000
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2.0-r4
sys-apps/openrc:          0.10.2-r9
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3, 4.7.2, 4.8.0
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r4
Repositories: gentoo stuff luman alice gamerlay gentoo-zh kde miramir local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA google-chrome AdobeFlash-10.3 AdobeFlash-11.x PUEL skype-4.0.0.7-copyright Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs candy ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/ http://mirrors.163.com/gentoo"
LANG="zh_CN.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="zh_CN en_US zh cn"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/stuff /var/lib/layman/luman /var/lib/layman/alice /var/lib/layman/gamerlay /var/lib/layman/gentoo-zh /var/lib/layman/kde /var/lib/layman/miramir /usr/local/portage"
SYNC="git://github.com/funtoo/ports-2012.git"
SYNC_USER="root"
USE="X aac acl alac alsa amd64 archive berkdb bluetooth bzip2 cairo cdda cjk consolekit cracklib crypt cuda cups cxx dbus fbcondecor flac g3dvl gdbm gif gstreamer gzip iconv icu infinality introspection ios ipod ipv6 java jpeg kde mad mmx mng modules mp3 mtp mudflap multilib ncurses networkmanager nls nptl nsplugin ogg opengl openmp pam pcre plasma policykit pulseaudio python python2 python3 qt qt3support qt4 readline resolvconf s3tc samba sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 tcpd theora udisks unicode vaapi vala vdpau vim-syntax vorbis xinerama xml zlib zsh-completion" ABI_X86="64" 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 authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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" GRUB_PLATFORMS="efi-64 multiboot pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport wiki-publisher" LINGUAS="zh_CN en_US zh cn" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_ABIS="2.7 3.3 2.7-pypy-2.0" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK

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

dev-python/psutil-0.7.1-r1000 was built with the following:
USE="" PYTHON_ABIS="2.7 3.3 -2.5 -2.6 -2.7-pypy-1.9 -2.7-pypy-2.0 -3.1 -3.2 -3.4" PYTHON_TARGETS="python2_7 python3_3"
Comment 1 Arfrever Frehtes Taifersar Arahesis 2013-06-29 07:24:44 UTC
A potential fix was committed. Please wait maybe 6 - 12 hours, synchronize the tree and try installation of dev-python/psutil again.
Comment 2 Tom Li 2013-06-29 10:23:25 UTC
Do you really committed it?
I can't found any new commit in the repo.
Comment 3 Arfrever Frehtes Taifersar Arahesis 2013-06-30 00:06:11 UTC
You tried too early. Try now.
Comment 4 Tom Li 2013-06-30 04:20:17 UTC
I don't think so. Ather I sync the tree, the newest version is still 0.7.1. And I also take a look at http://packages.gentoo.org/package/dev-python/psutil and http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-python/psutil/?diff_format=c, But I didn't see any newer version
Comment 5 Arfrever Frehtes Taifersar Arahesis 2013-06-30 05:32:29 UTC
Comment #0 shows Funtoo, not Gentoo. The newest version of dev-python/psutil available in Funtoo is 0.7.1-r1000.
http://git.funtoo.org/ports-2012/tree/dev-python/psutil?h=funtoo.org

(Gentoo bug tracker is not appropriate for Funtoo bugs.)
Comment 6 Tom Li 2013-06-30 05:43:17 UTC
Ok, I'll report it at Funtoo's bug tracker.
I'm going to confirm the bug if it exist in Gentoo.