Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510378 - dev-python/pypy-2.3: build failure
Summary: dev-python/pypy-2.3: build failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-15 07:22 UTC by Patrick Lauer
Modified: 2017-10-15 09:48 UTC (History)
2 users (show)

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


Attachments
Full build log (build.log.bz2,32.48 KB, application/octet-stream)
2014-05-15 07:24 UTC, Patrick Lauer
Details
patch against pypy-2.3.ebuild (pypy-2.3.1.ebuild.patch,1.79 KB, patch)
2014-06-11 10:42 UTC, Jana Saout
Details | Diff
fixed patch against pypy-2.3.ebuild (pypy-2.3.1.ebuild.patch,1.79 KB, patch)
2014-06-11 12:52 UTC, Jana Saout
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2014-05-15 07:22:03 UTC
This is about the best context I can find for the build failure:

[platform:Error] pypy_module_rctime_interp_time.c:575:13: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
[platform:Error]   l_v1365625 = RPyField(l_v1365551, tm_zone);
[platform:Error]              ^
[platform:Error] Traceback (most recent call last):
[platform:Error]   File "/var/tmp/portage/dev-python/pypy-2.3/work/pypy-2.3-src/rpython/translator/c/gcc/trackgcroot.py", line 2074, in <module>
[platform:Error]     tracker.process(f, g, filename=fn)
[platform:Error]   File "/var/tmp/portage/dev-python/pypy-2.3/work/pypy-2.3-src/rpython/translator/c/gcc/trackgcroot.py", line 1967, in process
[platform:Error]     tracker = parser.process_function(lines, filename)
[platform:Error]   File "/var/tmp/portage/dev-python/pypy-2.3/work/pypy-2.3-src/rpython/translator/c/gcc/trackgcroot.py", line 1482, in process_function
[platform:Error]     table = tracker.computegcmaptable(self.verbose)
[platform:Error]   File "/var/tmp/portage/dev-python/pypy-2.3/work/pypy-2.3-src/rpython/translator/c/gcc/trackgcroot.py", line 53, in computegcmaptable
[platform:Error]     self.parse_instructions()
[platform:Error]   File "/var/tmp/portage/dev-python/pypy-2.3/work/pypy-2.3-src/rpython/translator/c/gcc/trackgcroot.py", line 215, in parse_instructions
[platform:Error]     self.find_missing_visit_method(opname)
[platform:Error]   File "/var/tmp/portage/dev-python/pypy-2.3/work/pypy-2.3-src/rpython/translator/c/gcc/trackgcroot.py", line 245, in find_missing_visit_method
[platform:Error]     raise UnrecognizedOperation(opname)
[platform:Error] __main__.UnrecognizedOperation: blsr
[platform:Error] make: *** [rpython_jit_metainterp_optimizeopt_rewrite.gcmap] Error 1
[platform:Error] make: *** Waiting for unfinished jobs....
[b693a] translation-task}
[Timer] Timings:
[Timer] annotate                       ---  714.3 s
[Timer] rtype_lltype                   --- 2374.7 s
[Timer] pyjitpl_lltype                 --- 1972.6 s
[Timer] backendopt_lltype              ---  345.1 s
[Timer] stackcheckinsertion_lltype     ---  773.5 s
[Timer] database_c                     ---  467.5 s
[Timer] source_c                       ---  817.7 s
[Timer] compile_c                      ---  412.1 s
[Timer] ===========================================
[Timer] Total:                         --- 7877.5 s
[translation:info] Error:
[translation:info]    File "/var/tmp/portage/dev-python/pypy-2.3/work/pypy-2.3-src/rpython/translator/goal/translate.py", line 316, in main
[translation:info]     drv.proceed(goals)
[translation:info]    File "/var/tmp/portage/dev-python/pypy-2.3/work/pypy-2.3-src/rpython/translator/driver.py", line 531, in proceed
[translation:info]     return self._execute(goals, task_skip = self._maybe_skip())
[translation:info]    File "/var/tmp/portage/dev-python/pypy-2.3/work/pypy-2.3-src/rpython/translator/tool/taskengine.py", line 114, in _execute
[translation:info]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:info]    File "/var/tmp/portage/dev-python/pypy-2.3/work/pypy-2.3-src/rpython/translator/driver.py", line 276, in _do
[translation:info]     res = func()
[translation:info]    File "/var/tmp/portage/dev-python/pypy-2.3/work/pypy-2.3-src/rpython/translator/driver.py", line 497, in task_compile_c
[translation:info]     cbuilder.compile(**kwds)
[translation:info]    File "/var/tmp/portage/dev-python/pypy-2.3/work/pypy-2.3-src/rpython/translator/c/genc.py", line 371, in compile
[translation:info]     extra_opts)
[translation:info]    File "/var/tmp/portage/dev-python/pypy-2.3/work/pypy-2.3-src/rpython/translator/platform/posix.py", line 195, in execute_makefile
[translation:info]     self._handle_error(returncode, stdout, stderr, path.join('make'))
Comment 1 Patrick Lauer gentoo-dev 2014-05-15 07:24:40 UTC
Created attachment 376974 [details]
Full build log
Comment 2 Patrick Lauer gentoo-dev 2014-05-15 07:25:24 UTC
Portage 2.2.10 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.19, 3.14.2-gentoo x86_64)
=================================================================
System uname: Linux-3.14.2-gentoo-x86_64-AMD_A10-7700K_APU_with_Radeon-TM-_R7_Graphics-with-gentoo-2.2
KiB Mem:    15289828 total,  12332792 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6-r1, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo x11
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/ http://mirrors.stuhome.net/gentoo/ http://gentoo.mirrors.hoobly.com/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/home/portage"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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/x11"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds python qt3support qt4 readline sdl session spell sqlite sse sse2 ssl startup-notification svg tcpd tiff tk truetype tty-helpers udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" 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" 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 ublox ubx" INPUT_DEVICES="keyboard mouse 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_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fglrx" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 3 Mike Gilbert gentoo-dev 2014-05-15 17:02:51 UTC
Here's the problem:

__main__.UnrecognizedOperation: blsr

The the translator does not know what to do with the blsr instruction. You should create a bug report upstream.

In the mean time, remove -march=native from CFLAGS, or disable the jit use flag.
Comment 4 Jana Saout 2014-05-20 06:05:27 UTC
Fixed upstream:

https://bitbucket.org/pypy/pypy/commits/a8c3e162040953afc3e8a04d10373e27a38472eb

I hope this will go into 2.3.1
Comment 6 Jana Saout 2014-06-11 10:10:36 UTC
Works well with the latest ebuild. Note that a few paths have to be fixed, since it seems the pypy people don't upload the source tarballs anymore, but refer to bitbucket's own on-the-fly packaging of tagged source trees or whatever (the release-2.3.1.tar.bz2 link), see the homepage. Doesn't have any other impact though.

Another important note: They added support for the gdbm package using a new cffi wrapper. Unfortunately, there seems to be an issue with the packaging routine. The cffi cache (in /usr/lib64/pypy/lib_pypy/__pycache__) for that particular cffi package isn't created during packaging. Which means, that if you do an "import gdbm" as non-root, you'll get a file permission error on that directory when pypy tries to build the appropriate .so file. The packaged __pycache__ directory only contains the three .so files that it did before.

Running a simple "import gdbm" during the install process should "fix" that issue. I guess they won't do a 2.3.2 release just for that, but it should be reported upstream anyway, I guess.
Comment 7 Jana Saout 2014-06-11 10:42:59 UTC
Created attachment 378688 [details, diff]
patch against pypy-2.3.ebuild

(sorry for abusing the bug)

Oh, Gentoo is doing the generation of the cffi cache itself, not using the upstream packaging (note to self: look at the ebuild before making any claims).
So no upstream reporting, just hast to be added to the ebuild then. Nevermind. :o

I am currently doing two test build with USE=gdbm and USE=-gdbm on the ebuild using the atteched patch vs pypy-2.3.ebuild, which should handle the gdbm addition.
Comment 8 Jana Saout 2014-06-11 12:52:43 UTC
Created attachment 378700 [details, diff]
fixed patch against pypy-2.3.ebuild

Ok, without the stupid typo, this ebuild patch works. (build-tested with USE=gdm and USE=-gdbm).
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-10-15 09:48:45 UTC
Fixed upstream as noted in #c4.