Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388173 - dev-lang/rakudo-2011.07 fails to emerge because of not implemented get_pointer()
Summary: dev-lang/rakudo-2011.07 fails to emerge because of not implemented get_pointer()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-23 05:13 UTC by Juergen Rose
Modified: 2011-10-28 15:51 UTC (History)
4 users (show)

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


Attachments
/var/tmp/portage/dev-lang/rakudo-2011.07/temp/build.log (build.log,17.82 KB, text/plain)
2011-10-23 05:14 UTC, Juergen Rose
Details
dev-lang/nqp/nqp-2011.10.ebuild (nqp-2011.10.ebuild,905 bytes, text/plain)
2011-10-27 09:07 UTC, Martin von Gagern
Details
dev-lang/rakudo/rakudo-2011.10.ebuild (rakudo-2011.10.ebuild,1.11 KB, text/plain)
2011-10-27 09:09 UTC, Martin von Gagern
Details
Rakudo ebuild changes (388173a.patch,791 bytes, patch)
2011-10-27 09:10 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2011-10-23 05:13:48 UTC
'emerge rakudo' fails with:
...
cd src/ops && x86_64-pc-linux-gnu-gcc -c -o perl6_ops.o -I/usr/include/parrot/3.9.0 -I/usr/include/parrot/3.9.0/pmc -march=native -O2 -pipe -DHASATTRIBUTE_CONST  -DHASATTRIBUTE_DEPRECATED  -DHASATTRIBUTE_MALLOC  -DHASATTRIBUTE_NONNULL  -DHASATTRIBUTE_NORETURN  -DHASATTRIBUTE_PURE  -DHASATTRIBUTE_UNUSED  -DHASATTRIBUTE_WARN_UNUSED_RESULT  -DHASATTRIBUTE_HOT  -DHASATTRIBUTE_COLD  -DHAS_GETTEXT -I/usr/lib64/libffi-3.0.10/include   -fPIC -g -falign-functions=16 -funit-at-a-time -fexcess-precision=standard -maccumulate-outgoing-args -W -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wdisabled-optimization -Wdiv-by-zero -Wenum-compare -Wendif-labels -Wextra -Wformat -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit -Wimport -Winit-self -Winline -Winvalid-pch -Wjump-misses-init -Wlogical-op -Wmissing-braces -Wmissing-field-initializers -Wno-missing-format-attribute -Wmissing-include-dirs -Wmultichar -Wpacked -Wparentheses -Wpointer-arith -Wpointer-sign -Wreturn-type -Wsequence-point -Wsign-compare -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch -Wswitch-default -Wtrigraphs -Wundef -Wno-unused -Wunknown-pragmas -Wvariadic-macros -Wwrite-strings -Wc++-compat -Wdeclaration-after-statement -Werror=declaration-after-statement -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wnonnull -Wold-style-definition -Wstrict-prototypes -fvisibility=hidden  perl6_ops.c
cd src/ops && x86_64-pc-linux-gnu-gcc -o perl6_ops.so perl6_ops.o -Wl,-O1 -Wl,--as-needed  -shared -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -fPIC  -lnsl -ldl -lm -lcrypt -lutil -lpthread -lrt -lgmp -lreadline  -lffi    -lpthread -ldl -lm   -L/usr/lib64  -licuuc -licudata  -lpthread -ldl -lm   
/usr/bin/perl5.12.4 -MExtUtils::Command -e cp src/pmc/perl6_group.so src/ops/perl6_ops.so dynext
/usr/bin/perl5.12.4 -MExtUtils::Command -e chmod 755 dynext/perl6_group.so
/usr/bin/perl5.12.4 -MExtUtils::Command -e chmod 755 dynext/perl6_ops.so
/usr/bin/perl5.12.4 -e "" > src/gen/core.pir
/usr/bin/perl5.12.4 build/gen_version.pl > src/gen/version.pir
/usr/bin/parrot  -o src/gen/perl6.pbc src/Perl6/Compiler.pir
/usr/bin/parrot  src/gen/perl6.pbc --target=pir  \
    src/gen/core.pm > src/gen/core.pir
/usr/bin/perl5.12.4 build/gen_version.pl > src/gen/version.pir
/usr/bin/parrot  -o perl6.pbc src/Perl6/Compiler.pir
/usr/bin/pbc_to_exe perl6.pbc
/usr/bin/parrot  perl6.pbc  --target=pir --output=Test.pir Test.pm
get_pointer() not implemented in class 'P6metaclass'
current instr.: 'parrot;P6protoobject;WHICH' pc 812052 (src/gen/perl6-grammar.pir:65) (src/gen/core.pm:1)
called from Sub '&infix:<===>' pc 811660 (src/gen/perl6-grammar.pir:21) (src/gen/core.pm:1)
called from Sub 'perl6;ClassHOW;compose_composables' pc 4622 (src/glue/run.pir:856)
called from Sub 'perl6;ClassHOW;compose' pc 3466 (src/glue/phasers.pir:330)
called from Sub 'perl6;Match;!class_init_2637' pc 808349 (src/gen/perl6-grammar.pir:191997) (src/gen/core.pm:7383)
called from Sub '' pc 368270 (src/gen/perl6-grammar.pir:8833) (src/gen/core.pm:4757)
make: *** [Test.pir] Error 1
make: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-gcc -o perl6.o -I"/usr/include/parrot/3.9.0" -march=native -O2 -pipe -DHASATTRIBUTE_CONST  -DHASATTRIBUTE_DEPRECATED  -DHASATTRIBUTE_MALLOC  -DHASATTRIBUTE_NONNULL  -DHASATTRIBUTE_NORETURN  -DHASATTRIBUTE_PURE  -DHASATTRIBUTE_UNUSED  -DHASATTRIBUTE_WARN_UNUSED_RESULT  -DHASATTRIBUTE_HOT  -DHASATTRIBUTE_COLD  -DHAS_GETTEXT -I/usr/lib64/libffi-3.0.10/include    -c perl6.c
Compiled: perl6.o
x86_64-pc-linux-gnu-gcc -o perl6 "perl6.o" "/usr/lib64/parrot/3.9.0/parrot_config.o"  -L/usr/lib64 -lparrot -Wl,-E -Wl,-O1 -Wl,--as-needed   -lnsl -ldl -lm -lcrypt -lutil -lpthread -lrt -lgmp -lreadline  -lffi    -lpthread -ldl -lm   -L/usr/lib64  -licuuc -licudata  -lpthread -ldl -lm   
Linked: perl6
emake failed
 * ERROR: dev-lang/rakudo-2011.07 failed (compile phase):
 *   emake failed


Reproducible: Always




root@lynx:/root(18)# emerge --info =dev-lang/rakudo-2011.07
Portage 2.1.10.30 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 3.0.7-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.7-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Sat, 22 Oct 2011 21:00:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3::sage-on-gentoo, 3.2.2
dev-util/cmake:           2.8.6-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
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-r4
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo lordvan x11 arcon qting-edge ibormuth bicatali science sage-on-gentoo java-overlay sunrise proaudio local x-cpan g-octave
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10.1 cadsoft Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://ftp.easynet.nl/mirror/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de fr"
MAKEOPTS="-j3"
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="/var/lib/layman/lordvan /var/lib/layman/x11 /var/lib/layman/arcon /var/lib/layman/qting-edge /var/lib/layman/ibormuth /var/lib/layman/bicatali /var/lib/layman/science /var/lib/layman/sage-on-gentoo /var/lib/layman/java-overlay /var/lib/layman/sunrise /var/lib/layman/pro-audio /usr/local/portage /var/lib/cpan /var/lib/g-octave"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit R X Xaw3d a52 aac abiword acl acpi admin afs alsa amd64 ao apache2 applet archive arpack asf aspell assistant atlas audacious audiofile automap automount bash-completion beagle berkdb blas blast bluetooth boo boost branding bzip2 cairo cardbus cdda cddb cdf cdio cdparanoia cdr cg cgi chm cli consolekit corba cracklib crypt css cuda cups curl cxx daap db dbase dbi dbm dbus declarative designer devhelp device-mapper dga dia djvu doc dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds elf emacs emboss emf encode epiphany evo examples exif expat extensions extra extras fam fame ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpx fts3 fuse galago garmin gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp ginac git glade glib glpk gml gmp gmtsuppl gnome gnome-keyring gnome-print gnuplot gnutls gphoto2 gpm grammar graphics graphtft graphviz grass gs gsl gsm gstreamer gtk gudev guile harness hddtemp hdf hdf5 hdri http httpd hvm hwdb iconv icq icu id3 ide imagemagick imap innodb inotify ipod ipv6 irda ithreads jabber jadetex java java6 jbig john jpeg jpeg2k kdrive kerberos kpathsea kqemu kvm ladspa lame lapack laptop latex latex3 lcms ldap lensfun libffi libgda libnotify libsamplerate lirc lua lzo mad mail maildir mapnik math matroska mkl mmx mmxext mng modules mono moonlight motif mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pango pcre pda pdf perl plotutils plugins png podcast policykit portaudio posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 quicktime readline reiserfs reports rle romio rpc rrdcgi rrdtool sage samba sasl science sdk sdl secure-delete semantic-desktop server session sip slang slp smbclient smp sms sndfile snmp soup sox speex spell sql sqlite sse sse2 sse4 ssl ssse3 startup-notification stlport subtitles subversion suexec svg svm swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs tgif theora thinkpad threads thunderbird tidy tiff tk tools truetype udev unicode usb userlocales utempter v4l2 vaapi video virtualbox vorbis wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xattr xcb xemacs xext xft xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc yaml zlib zvbi" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-wt220u" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nouveau vesa" 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

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

dev-lang/rakudo-2011.07 was built with the following:
USE="doc (multilib)"



root@lynx:/root(19)# emerge -pqv =dev-lang/rakudo-2011.07
[ebuild   R   ] dev-lang/rakudo-2011.07  USE="doc"
Comment 1 Juergen Rose 2011-10-23 05:14:41 UTC
Created attachment 290587 [details]
/var/tmp/portage/dev-lang/rakudo-2011.07/temp/build.log
Comment 2 Tanktalus 2011-10-24 16:46:38 UTC
https://github.com/rakudo/rakudo/downloads shows a 2011.10 release.  I suspect that if we update this, we will likely be fine.
Comment 3 Tanktalus 2011-10-24 16:49:38 UTC
Ok, the upgrade may not be seamless - I just tried it, and it failed immediately.  Will take some time to produce an ebuild for this.  In the meantime, I wonder if parrot 3.9 should be masked?
Comment 4 Martin von Gagern 2011-10-27 09:07:59 UTC
Created attachment 290991 [details]
dev-lang/nqp/nqp-2011.10.ebuild

Ebuild for NQP, the "Not Quite Perl" bootstrap compiler.

Read http://perlgeek.de/blog-en/perl-6/why-rakudo-needs-nqp.html for details.

This version uses a fixed tag, 2011.10 in this case, and downloads the corresponding tarball from github. I also have a version using git-2.eclass and fetching a specific tag, but I don't think that's necessary just now.

Not sure about a number of things, like whether there is a better HOMEPAGE, whether "multilib" is appropriate, whether the parrot dep should be bumped, and so on. Perhaps you can find out more. This is a start, though.
Comment 5 Martin von Gagern 2011-10-27 09:09:23 UTC
Created attachment 290993 [details]
dev-lang/rakudo/rakudo-2011.10.ebuild

And this is the updated rakudo ebuild, adjusted to make use of nqp.
It passes all tests for me.
Comment 6 Martin von Gagern 2011-10-27 09:10:13 UTC
Created attachment 290995 [details, diff]
Rakudo ebuild changes

And here are the differences between the latest rakudo ebuild in the portage tree and the ebuild I just attached.
Comment 7 Patrick Lauer gentoo-dev 2011-10-28 15:22:09 UTC
+  28 Oct 2011; Patrick Lauer <patrick@gentoo.org> +rakudo-2011.10.ebuild:
+  Bump for #388173, ebuild mods by Martin von Gagern

Thanks :)

nqp tests might fail, but it seems to work well.
Comment 8 Martin von Gagern 2011-10-28 15:51:35 UTC
You should probably adjust the deps in older rakudo ebuilds to prevent this bug here from still occurring for them.
I.e. have them RDEPEND on <dev-lang/parrot-3.9