Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 643954 - app-i18n/mozc-2.20.2673.102 fails on big-endian architectures: FAILED: gen/rewriter/usage_base_conj_suffix.data gen/rewriter/usage_conj_index.data gen/rewriter/usage_conj_suffix.data gen/rewriter/usage_item_array.data gen/rewriter/usage_string_array.data
Summary: app-i18n/mozc-2.20.2673.102 fails on big-endian architectures: FAILED: gen/re...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Arfrever Frehtes Taifersar Arahesis
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 642714
  Show dependency tree
 
Reported: 2018-01-08 22:37 UTC by Sergei Trofimovich (RETIRED)
Modified: 2018-02-21 20:47 UTC (History)
1 user (show)

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


Attachments
app-i18n-mozc-2.20.2673.102-build.log (app-i18n-mozc-2.20.2673.102-build.log,522.15 KB, text/x-log)
2018-01-08 22:37 UTC, Sergei Trofimovich (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2018-01-08 22:37:29 UTC
Created attachment 513838 [details]
app-i18n-mozc-2.20.2673.102-build.log

Failed test as part of keywording in bug #642714
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2018-01-08 22:38:51 UTC
# emerge --info

!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:

        default/linux/powerpc/ppc64/17.0/64bit-userland/desktop/gnome/systemd

You may use the following command to upgrade:

        eselect profile set default/linux/powerpc/ppc64/17.0/64bit-userland/desktop/gnome/systemd

Portage 2.3.19 (python 3.5.4-final-0, default/linux/powerpc/ppc64/13.0/64bit-userland/desktop/gnome/systemd, gcc-6.4.0, glibc-2.26-r5, 4.9.16-gentoo ppc64)
=================================================================
System uname: Linux-4.9.16-gentoo-ppc64-POWER8_-architected-,_altivec_supported-with-gentoo-2.4.1
KiB Mem:    24805420 total,   6596040 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 08 Jan 2018 10:45:01 +0000
Head commit of repository gentoo: 18137c56f149ef7f48936b25d5bb8ed06257e4a3
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6::gentoo, 3.5.4-r1::gentoo, 3.6.4::gentoo
dev-util/cmake:           3.10.1::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.5::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::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo, 7.2.0::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r5::gentoo
Repositories:

gentoo
    location: /bound/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="ppc64 ~ppc64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/i2pd/certificates"
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"
DISTDIR="/bound/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict stricter test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j13 -l12"
PKGDIR="/usr/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="/dev/shm"
USE="X a52 aac acl alsa berkdb big-endian bluetooth branding bzip2 cairo cdda cdr cli client colord crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk ibm iconv icu introspection ipv6 jpeg lcms ldap libnotify libsecret mad mng modules mp3 mp4 mpeg nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pcre16 pdf playlist png policykit ppc64 ppds pulseaudio python qt3support qt5 readline sdl seccomp spell sqlite ssl startup-notification svg systemd tcpd text tiff tracker truetype udev udisks unicode upower usb vala vorbis wxwidgets x264 xattr xcb xkb xml xv xvfb xvid zlib" ABI_PPC="64" 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" 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="libinput keyboard mouse" 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-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="fbdev mga nv r128 radeon dummy v4l" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Arfrever Frehtes Taifersar Arahesis 2018-01-08 22:46:42 UTC
[1082/1415] cd ../../rewriter; ../out_linux/Release/gen_usage_rewriter_dictionary_main "--usage_data_file=../third_party/japanese_usage_dictionary/usage_dict.txt" "--cforms_file=../data/rules/cforms.def" "--output_base_conjugation_suffix=../out_linux/Release/gen/rewriter/usage_base_conj_suffix.data" "--output_conjugation_suffix=../out_linux/Release/gen/rewriter/usage_conj_suffix.data" "--output_conjugation_index=../out_linux/Release/gen/rewriter/usage_conj_index.data" "--output_usage_item_array=../out_linux/Release/gen/rewriter/usage_item_array.data" "--output_string_array=../out_linux/Release/gen/rewriter/usage_string_array.data"
FAILED: gen/rewriter/usage_base_conj_suffix.data gen/rewriter/usage_conj_index.data gen/rewriter/usage_conj_suffix.data gen/rewriter/usage_item_array.data gen/rewriter/usage_string_array.data
cd ../../rewriter; ../out_linux/Release/gen_usage_rewriter_dictionary_main "--usage_data_file=../third_party/japanese_usage_dictionary/usage_dict.txt" "--cforms_file=../data/rules/cforms.def" "--output_base_conjugation_suffix=../out_linux/Release/gen/rewriter/usage_base_conj_suffix.data" "--output_conjugation_suffix=../out_linux/Release/gen/rewriter/usage_conj_suffix.data" "--output_conjugation_index=../out_linux/Release/gen/rewriter/usage_conj_index.data" "--output_usage_item_array=../out_linux/Release/gen/rewriter/usage_item_array.data" "--output_string_array=../out_linux/Release/gen/rewriter/usage_string_array.data"
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2018-01-08 23:07:09 UTC
Fails the same with MAKEOPTS=-j1.

Looking at gen_usage_rewriter_dictionary_main.cc (source of failing tool) it looks like it won't work on big-endian:

...
// * Prerequisite
// Little endian is assumed.
...
  // Output base conjugation suffix data.
  {
    OutputFileStream ostream(FLAGS_output_base_conjugation_suffix.c_str(),
                             ios_base::out | ios_base::binary);
    for (const auto &conj : conjugation_list) {
      const uint32 key_suffix_index =
          Lookup(string_index, baseform_map[conj].key_suffix);
      const uint32 value_suffix_index =
          Lookup(string_index, baseform_map[conj].value_suffix);
      ostream.write(reinterpret_cast<const char *>(&key_suffix_index), 4);
      ostream.write(reinterpret_cast<const char *>(&value_suffix_index), 4);
    }
  }
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2018-02-20 22:11:23 UTC
Tested on little-endian powerpc64. Seems to work just fine.
Comment 5 Arfrever Frehtes Taifersar Arahesis 2018-02-21 20:47:46 UTC
Unfortunately Mozc supports only little-endian architectures.