Generating lib/rdoc/markdown/literals.rb... /usr/bin/ruby24 /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/bin/kpeg -fsv -o lib/rdoc/markdown/literals.rb lib/rdoc/markdown/literals.kpeg /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/grammar.rb:133:in `initialize': invalid character property name {Zl}: /\n|\r\n?|\p{Zl}|\p{Zp}/ (RegexpError) from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/grammar.rb:133:in `new' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/grammar.rb:133:in `initialize' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/grammar.rb:764:in `new' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/grammar.rb:764:in `reg' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:1250:in `_regexp' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2172:in `_value' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2262:in `_values' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2345:in `_expression' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2567:in `_statement' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2829:in `_statements' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2843:in `_statements' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2843:in `_statements' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2843:in `_statements' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2843:in `_statements' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2843:in `_statements' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2879:in `_root' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:196:in `parse' from /usr/lib/ruby/gems/2.4.0/gems/kpeg-1.1.0/bin/kpeg:63:in `<main>' rake aborted! Command failed with status (1): [/usr/bin/ruby24 /usr/lib/ruby/gems/2.4.0/g...] /var/tmp/portage/dev-ruby/rdoc-6.0.0/work/ruby24/rdoc-6.0.0/Rakefile:74:in `block (2 levels) in <top (required)>' Tasks: TOP => generate => lib/rdoc/markdown/literals.rb
emerge --info '=dev-ruby/rdoc-6.0.0::gentoo' fatal: Not a git repository (or any parent up to mount point /usr) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). Portage 2.3.16 (python 3.5.4-final-0, default/linux/x86/17.0/desktop, gcc-7.2.0, glibc-2.26-r3, 4.14.4-gentoo i686) ================================================================= System Settings ================================================================= System uname: Linux-4.14.4-gentoo-i686-Intel-R-_Celeron-R-_2957U_@_1.40GHz-with-gentoo-2.4.1 KiB Mem: 3966808 total, 712980 free KiB Swap: 4194300 total, 4194300 free Timestamp of repository gentoo: Thu, 07 Dec 2017 07:30:01 +0000 sh bash 4.4_p12 ld GNU gold (Gentoo 2.29.1 p2 2.29.1) 1.14 distcc 3.2rc1 i686-gentoo-linux-gnu [disabled] app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.26.1-r1::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.5.4-r1::gentoo dev-util/cmake: 3.10.0::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.34.11::gentoo sys-apps/sandbox: 2.12::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.15.1-r1::gentoo sys-devel/binutils: 2.29.1-r1::gentoo sys-devel/gcc: 7.2.0::gentoo sys-devel/gcc-config: 1.9.0-r1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: git://anongit.gentoo.org/repo/gentoo.git priority: -1000 local location: /data/nas/xavier/portage/n0n4m3/usr/local/portage/overlay masters: gentoo priority: 0 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="@FREE freedist as-is" CBUILD="i686-gentoo-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=atom -mtune=atom" CHOST="i686-gentoo-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=atom -mtune=atom" DISTDIR="/var/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n --buildpkg" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed" MAKEOPTS="-j5 -l3" PKGDIR="/var/portage/packages" 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 --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acpi alsa branding bzip2 cairo cli cracklib crypt cups cxx dbus dri dts emboss encode exif fam firefox flac gif glamor gpm gtk iconv jpeg lcms libnotify libsamplerate mad mmx mng modules mp3 mp4 mpeg ncurses nls nptl ocr ogg opengl openmp osc pam pango pcre pdf png ppds qt5 readline sane scanner seccomp session sndfile snmp spell sqlite sse sse2 ssl ssse3 startup-notification svg tcpd tiff truetype udev unicode usb vorbis wmf wxwidgets x264 x86 xattr xcb xinerama xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="hda-intel usb-audio virmidi" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" L10N="fr nl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr fr_FR fr_BE nl nl_BE nl_NL" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="arm i386" QEMU_USER_TARGETS="arm i386" RUBY_TARGETS="ruby24" SANE_BACKENDS="hp" 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: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 508636 [details] build.log
switching from ruby23 to ruby24 and uninstalling ruby23 fixed the problem
(In reply to Xavier Miller from comment #3) > switching from ruby23 to ruby24 and uninstalling ruby23 fixed the problem nope... was OK on one machine, but not one other...
Looking at your emerge --info settings it seems that you are using the "C" locale, is that correct? Could you try with a utf-8 based locale?
Hi, Setting the locale fixes the problem. I was in a build chroot, and eselect locale was not set.
(In reply to Xavier Miller from comment #6) > Hi, > > Setting the locale fixes the problem. I was in a build chroot, and eselect > locale was not set. Just bumped into this same bug, but I had selected my main language as the locale and it still crashed. Setting it to utf-8 seems to work around the issue.
*** Bug 643174 has been marked as a duplicate of this bug. ***
Me too: >>> Preparing source in /scratch/var/tmp/portage/dev-ruby/rdoc-6.0.1/work ... * Running prepare phase for all ... * Running source copy phase for ruby23 ... * Running source copy phase for ruby24 ... * Running source copy phase for ruby25 ... >>> Source prepared. >>> Configuring source in /scratch/var/tmp/portage/dev-ruby/rdoc-6.0.1/work ... >>> Source configured. >>> Compiling source in /scratch/var/tmp/portage/dev-ruby/rdoc-6.0.1/work ... * Running compile phase for ruby23 ... Generating lib/rdoc/rd/block_parser.rb... /usr/bin/ruby23 /usr/lib64/ruby/gems/2.3.0/gems/racc-1.4.14/bin/racc -l -o lib/rdoc/rd/block_parser.rb lib/rdoc/rd/block_parser.ry Generating lib/rdoc/rd/inline_parser.rb... /usr/bin/ruby23 /usr/lib64/ruby/gems/2.3.0/gems/racc-1.4.14/bin/racc -l -o lib/rdoc/rd/inline_parser.rb lib/rdoc/rd/inline_parser.ry Generating lib/rdoc/markdown.rb... /usr/bin/ruby23 /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/bin/kpeg -fsv -o lib/rdoc/markdown.rb lib/rdoc/markdown.kpeg Wrote RDoc::Markdown to lib/rdoc/markdown.rb Generating lib/rdoc/markdown/literals.rb... /usr/bin/ruby23 /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/bin/kpeg -fsv -o lib/rdoc/markdown/literals.rb lib/rdoc/markdown/literals.kpeg /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/grammar.rb:133:in `initialize': invalid character property name {Zl}: /\n|\r\n?|\p{Zl}|\p{Zp}/ (RegexpError) from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/grammar.rb:133:in `new' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/grammar.rb:133:in `initialize' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/grammar.rb:764:in `new' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/grammar.rb:764:in `reg' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:1250:in `_regexp' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2172:in `_value' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2262:in `_values' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2345:in `_expression' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2567:in `_statement' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2829:in `_statements' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2843:in `_statements' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2843:in `_statements' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2843:in `_statements' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2843:in `_statements' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2843:in `_statements' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:2879:in `_root' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:292:in `apply' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/lib/kpeg/format_parser.rb:196:in `parse' from /usr/lib64/ruby/gems/2.3.0/gems/kpeg-1.1.0/bin/kpeg:63:in `<main>' rake aborted! Command failed with status (1): [/usr/bin/ruby23 /usr/lib64/ruby/gems/2.3.0...] /scratch/var/tmp/portage/dev-ruby/rdoc-6.0.1/work/ruby23/rdoc-6.0.1/Rakefile:74:in `block (2 levels) in <top (required)>' Tasks: TOP => generate => lib/rdoc/markdown/literals.rb (See full trace by running task with --trace) * ERROR: dev-ruby/rdoc-6.0.1::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 124: Called src_compile * environment, line 4490: Called ruby-ng_src_compile * environment, line 4182: Called _ruby_each_implementation 'each_ruby_compile' * environment, line 521: Called _ruby_invoke_environment 'ruby23' 'each_ruby_compile' * environment, line 646: Called each_ruby_compile * environment, line 962: Called die * The specific snippet of code: * ${RUBY} -S rake generate || die # locale LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= # Right, the following helped: LANG=en_US.UTF-8 emerge -1 dev-ruby/rdoc
Same on my machine :)
It also fails with paludis
*** Bug 654916 has been marked as a duplicate of this bug. ***
It turns out that this is a bug in kpeg. I have added kpeg-1.1.0-r1 with a patch and rdoc 6.x versions now depend on this.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12ee15be33783573e73ab0ad27629daf88788121 commit 12ee15be33783573e73ab0ad27629daf88788121 Author: Hans de Graaff <graaff@gentoo.org> AuthorDate: 2018-05-20 07:56:26 +0000 Commit: Hans de Graaff <graaff@gentoo.org> CommitDate: 2018-05-20 07:56:26 +0000 dev-ruby/rdoc: fix building with LANG=C Depend on a fixed version of dev-ruby/kpeg to allow building with LANG=C Closes: https://bugs.gentoo.org/640150 Package-Manager: Portage-2.3.36, Repoman-2.3.9 dev-ruby/rdoc/rdoc-6.0.1.ebuild | 2 +- dev-ruby/rdoc/rdoc-6.0.4.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)