Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-python/pypy-2.0.2 unexpected prebuilt constant
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sbdmmg
n00b
n00b


Joined: 01 Jul 2010
Posts: 34
Location: NJ, USA

PostPosted: Sat Sep 07, 2013 2:26 pm    Post subject: dev-python/pypy-2.0.2 unexpected prebuilt constant Reply with quote

Hello,

When emerging dev-python/pypy-2.0.2, I get the error below. I was able to successfully build this version of pypy in the past on the same machine. Now it somehow broke...any idea about what could be the reason for it? I don't see this issue on the gentoo bugzilla.

Thank you!

Davide



Code:

 * Repository: gentoo
 * Maintainer: nirbheek@gentoo.org python@gentoo.org
 * USE:        bzip2 elibc_glibc jit kernel_linux ncurses userland_GNU x86
 * FEATURES:   preserve-libs sandbox
 * Checking for at least 2 gigabytes RAM ...
 [ ok ]
>>> Unpacking source...
>>> Unpacking pypy-2.0.2-src.tar.bz2 to /var/tmp/portage/dev-python/pypy-2.0.2/work
>>> Source unpacked in /var/tmp/portage/dev-python/pypy-2.0.2/work
>>> Preparing source in /var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src ...
 * Applying 1.9-scripts-location.patch ...
 [ ok ]
 * Applying 1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch ...
 [ ok ]
 * Applying 2.0.2-distutils-fix_handling_of_executables_and_flags.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src ...
/usr/bin/python2.7 rpython/bin/rpython --batch -Ojit --jit-backend=x86-without-sse2 --make-jobs=5 pypy/goal/targetpypystandalone --withmod-bz2 --withmod-_minimal_curses
[translation:info] 2.7.5 (default, Aug 23 2013, 22:10:59)
[translation:info] [GCC 4.6.3]
[platform:msg] Set platform with 'host' cc=None, using cc='i686-pc-linux-gnu-gcc'
[translation:info] Translating target as defined by pypy/goal/targetpypystandalone
[platform:execute] i686-pc-linux-gnu-gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -O2 -march=i686 -pipe /var/tmp/portage/dev-python/pypy-2.0.2/temp/usession-release-2.0.x-0/gcctest.c -o /var/tmp/portage/dev-pyt\
hon/pypy-2.0.2/temp/usession-release-2.0.x-0/gcctest.o

<...snip...>

[translation:ERROR] Error:
[translation:ERROR]  Traceback (most recent call last):
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/translator/goal/translate.py", line 321, in main
[translation:ERROR]     drv.proceed(goals)
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/translator/driver.py", line 733, in proceed
[translation:ERROR]     return self._execute(goals, task_skip = self._maybe_skip())
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/translator/tool/taskengine.py", line 114, in _execute
[translation:ERROR]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/translator/driver.py", line 284, in _do
[translation:ERROR]     res = func()
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/translator/driver.py", line 372, in task_pyjitpl_lltype
[translation:ERROR]     backend_name=self.config.translation.jit_backend, inline=True)
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/jit/metainterp/warmspot.py", line 49, in apply_jit
[translation:ERROR]     warmrunnerdesc.finish()
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/jit/metainterp/warmspot.py", line 234, in finish
[translation:ERROR]     self.annhelper.finish()
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/rtyper/annlowlevel.py", line 242, in finish
[translation:ERROR]     self.finish_rtype()
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/rtyper/annlowlevel.py", line 292, in finish_rtype
[translation:ERROR]     rtyper.specialize_more_blocks()
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/rtyper/rtyper.py", line 250, in specialize_more_blocks
[translation:ERROR]     self.specialize_block(block)
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/rtyper/rtyper.py", line 402, in specialize_block
[translation:ERROR]     self.translate_hl_to_ll(hop, varmapping)
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/rtyper/rtyper.py", line 531, in translate_hl_to_ll
[translation:ERROR]     resultvar = hop.dispatch()
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/rtyper/rtyper.py", line 759, in dispatch
[translation:ERROR]     return translate_meth(self)
[translation:ERROR]    File "<60120-codegen /var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/rtyper/rtyper.py:601>", line 4, in translate_op_call_args
[translation:ERROR]     return r_arg1.rtype_call_args(hop)
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/rtyper/rpbc.py", line 711, in rtype_call_args
[translation:ERROR]     return self.redispatch_call(hop, call_args=True)
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/rtyper/rpbc.py", line 738, in redispatch_call
[translation:ERROR]     hop.llops, hop)
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/rtyper/rclass.py", line 462, in rtype_new_instance
[translation:ERROR]     return rinstance.new_instance(llops, classcallhop)
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/rtyper/lltypesystem/rclass.py", line 535, in new_instance
[translation:ERROR]     r.convert_desc_or_const(value))
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/rtyper/rmodel.py", line 116, in convert_desc_or_const
[translation:ERROR]     return self.convert_const(desc_or_const.value)
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/rtyper/lltypesystem/rpbc.py", line 181, in convert_const
[translation:ERROR]     funcdesc = self.rtyper.annotator.bookkeeper.getdesc(value)
[translation:ERROR]    File "/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/rpython/annotator/bookkeeper.py", line 540, in getdesc
[translation:ERROR]     raise Exception("%s: %r" % (msg, pyobj))
[translation:ERROR]  Exception: unexpected prebuilt constant: <staticmethod object at 0xcd23c5c>
[translation] batch mode, not calling interactive helpers
 * ERROR: dev-python/pypy-2.0.2 failed (compile phase):
 *   compile error
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 3219:  Called die
 * The specific snippet of code:
 *       "${@}" || die "compile error";
 *
 * If you need support, post the output of `emerge --info '=dev-python/pypy-2.0.2'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pypy-2.0.2'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/pypy-2.0.2/temp/build.log'.


Below is the emerge --info output:

Code:

$ emerge --info dev-python/pypy
Portage 2.1.12.2 (default/linux/x86/13.0, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.8.13-gentoo-i686-Intel-R-_Core-TM-_i5-3427U_CPU_@_1.80GHz-with-gentoo-2.2
KiB Mem:     3329264 total,    472344 free
KiB Swap:    3999996 total,   2152692 free
Timestamp of tree: Sat, 07 Sep 2013 04:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
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, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo zugaina dev-zero science ramereth x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ rsync://mirror.mcs.anl.gov/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/zugaina /var/lib/layman/dev-zero /var/lib/layman/science /var/lib/layman/ramereth /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bzip2 cdr cli consolekit cracklib crypt cxx dbus divx dri dvd flac fortran gdbm gif iconv icu id3 ipv6 kde lame midi modules mp3 mp4 mplayer mudflap ncurses nls nptl ogg opengl openmp pam pcre policykit pulseaudio qt3support qt4 readline realmedia session ssl svg tcpd udev unicode v4l v4l2 video webkit wmp x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 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" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

dev-python/pypy-2.0.2 was built with the following:
USE="bzip2 jit ncurses ssl xml -doc -examples -sandbox -shadowstack -sqlite"
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Mon Sep 09, 2013 7:45 pm    Post subject: Reply with quote

According to emerge:
Code:
 Repository: gentoo
 * Maintainer: nirbheek@gentoo.org python@gentoo.org
 * USE:        bzip2 elibc_glibc jit kernel_linux ncurses userland_GNU x86
 * FEATURES:   preserve-libs sandbox


Sandbox is on

According to emerge --info sandbox is on
Code:
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"


Code:
USE="bzip2 jit ncurses ssl xml -doc -examples -sandbox -shadowstack -sqlite"


In this case -sandbox may not be valid
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
BruceG
n00b
n00b


Joined: 21 Jul 2003
Posts: 27
Location: Saskatoon, SK, Canada

PostPosted: Mon Jul 28, 2014 11:59 pm    Post subject: Reply with quote

I also am getting this error when I try to emerge dev-python/pypy-2.3.1-r1::gentoo:

Code:
 * Package:    dev-python/pypy-2.3.1-r1
 * Repository: gentoo
 * Maintainer: alice.ferrazzi@gmail.com python@gentoo.org,proxy-maint@gentoo.org
 * USE:        abi_x86_32 bzip2 elibc_glibc jit kernel_linux ncurses sqlite userland_GNU x86
 * FEATURES:   preserve-libs userpriv usersandbox
 * Checking for at least 2 GiB RAM ...
 [ ok ]
>>> Unpacking source...

<...snip...>

[translation:info] Error:
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/translator/goal/translate.py", line 316, in main
[translation:info]     drv.proceed(goals)
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/translator/driver.py", line 531, in proceed
[translation:info]     return self._execute(goals, task_skip = self._maybe_skip())
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/translator/tool/taskengine.py", line 114, in _execute
[translation:info]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/translator/driver.py", line 276, in _do
[translation:info]     res = func()
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/translator/driver.py", line 359, in task_pyjitpl_lltype
[translation:info]     backend_name=self.config.translation.jit_backend, inline=True)
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/jit/metainterp/warmspot.py", line 50, in apply_jit
[translation:info]     warmrunnerdesc.finish()
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/jit/metainterp/warmspot.py", line 243, in finish
[translation:info]     self.annhelper.finish()
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/rtyper/annlowlevel.py", line 226, in finish
[translation:info]     self.finish_rtype()
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/rtyper/annlowlevel.py", line 276, in finish_rtype
[translation:info]     rtyper.specialize_more_blocks()
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/rtyper/rtyper.py", line 218, in specialize_more_blocks
[translation:info]     self.specialize_block(block)
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/rtyper/rtyper.py", line 336, in specialize_block
[translation:info]     self.translate_hl_to_ll(hop, varmapping)
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/rtyper/rtyper.py", line 465, in translate_hl_to_ll
[translation:info]     resultvar = hop.dispatch()
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/rtyper/rtyper.py", line 687, in dispatch
[translation:info]     return translate_meth(self)
[translation:info]    File "<59414-codegen /tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/rtyper/rtyper.py:535>", line 4, in translate_op_call_args
[translation:info]     return r_arg1.rtype_call_args(hop)
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/rtyper/rpbc.py", line 664, in rtype_call_args
[translation:info]     return self.redispatch_call(hop, call_args=True)
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/rtyper/rpbc.py", line 691, in redispatch_call
[translation:info]     hop.llops, hop)
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/rtyper/rclass.py", line 467, in rtype_new_instance
[translation:info]     return rinstance.new_instance(llops, classcallhop)
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/rtyper/lltypesystem/rclass.py", line 534, in new_instance
[translation:info]     r.convert_desc_or_const(value))
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/rtyper/rmodel.py", line 116, in convert_desc_or_const
[translation:info]     return self.convert_const(desc_or_const.value)
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/rtyper/lltypesystem/rpbc.py", line 158, in convert_const
[translation:info]     funcdesc = self.rtyper.annotator.bookkeeper.getdesc(value)
[translation:info]    File "/tmp/portage/dev-python/pypy-2.3.1-r1/work/pypy-2.3.1-src/rpython/annotator/bookkeeper.py", line 394, in getdesc
[translation:info]     raise Exception("%s: %r" % (msg, pyobj))
[translation:ERROR] Exception: unexpected prebuilt constant: <staticmethod object at 0xfb1b81f4>
[translation] batch mode, not calling interactive helpers
 * ERROR: dev-python/pypy-2.3.1-r1::gentoo failed (compile phase):
 *   compile error


This happens both with and without sandbox in either USE or FEATURES.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum