Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642112 - app-office/libreoffice- with java USE fails on arm64 (/usr/lib64/jvm/ not found during configure phase)
Summary: app-office/libreoffice- with java USE fails on arm64 (/usr/lib64/jvm/ ...
Status: RESOLVED DUPLICATE of bug 641826
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
Keywords: PATCH
Depends on:
Reported: 2017-12-23 13:10 UTC by sakaki
Modified: 2017-12-27 14:59 UTC (History)
4 users (show)

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

Use "$EPREFIX/usr/lib" as fallback location for --with-jvm-path (libreoffice-fix-jvm-path.patch,703 bytes, patch)
2017-12-23 13:10 UTC, sakaki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sakaki 2017-12-23 13:10:54 UTC
Created attachment 511540 [details, diff]
Use "$EPREFIX/usr/lib" as fallback location for --with-jvm-path


in libreoffice-, (for java USE) the src_configure function sets:


but in libreoffice-, this has changed to:


which, on arm64 at least, resolves to:


Unfortunately, icedtea etc. currently installs symlinks into /usr/lib/jvm/..., and the directory /usr/lib64/jvm does not exist.

This causes an emerge failure on arm64 for libreoffice- (with java USE flag set), during the configure phase. Error message:

configure: error: "/usr/lib64/"jvm not found, point with_jvm_path to \/path/to/\jvm

I have addressed this for users of my 64-bit Gentoo rpi3 image / binhost using the attached patch, but not sure if this is the correct approach.

Thanks! sakaki
Comment 1 Andreas Sturmlechner gentoo-dev 2017-12-24 11:53:58 UTC
What profile are you using here? emerge --info please.
Comment 2 Andreas Sturmlechner gentoo-dev 2017-12-24 12:19:53 UTC
Requesting java/arm64 brains here...
Comment 3 James Le Cuirot gentoo-dev 2017-12-25 12:22:56 UTC

*** This bug has been marked as a duplicate of bug 641826 ***
Comment 4 sakaki 2017-12-27 14:59:38 UTC
Noted that this bug has been closed as a duplicate, but, in case it is useful, here is output of emerge --info, as requested in comment #1:

Portage 2.3.13 (python 3.5.4-final-0, default/linux/arm64/13.0/desktop, gcc-7.2.0, glibc-2.26-r3, 4.10.17-v8-9411792647f6+ aarch64)
System uname: Linux-4.10.17-v8-9411792647f6+-aarch64-with-gentoo-2.4.1
KiB Mem:      986544 total,    529112 free
KiB Swap:    3145720 total,   3145720 free
Timestamp of repository gentoo: Thu, 21 Dec 2017 00:45:01 +0000
Head commit of repository gentoo: 3a8f51b2b1c58bd157f85d9792606db9162cce1c
Head commit of repository sakaki-tools: 5890d06cb31176594edb0aa3d10cc746684ab1aa

Head commit of repository rpi3: 783ae3530e6b76f43c63ba8cca330d77b5f2ad06

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p2) 2.29.1
distcc 3.2rc1 aarch64-unknown-linux-gnu [enabled]
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.1::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:            5.4.0-r3::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.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo

    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: -1000

    location: /usr/local/portage/sakaki-tools
    sync-type: git
    masters: gentoo
    priority: 50

    location: /usr/local/portage/rpi3
    sync-type: git
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="@FREE CC-Sampling-Plus-1.0"
CFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe"
CONFIG_PROTECT="/boot/cmdline.txt /boot/config.txt /etc /usr/lib64/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="-march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distcc distcc-pump 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 webrsync-gpg xattr"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l4"
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"
USE="X a52 aac acl acpi alsa arm64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvdr egl emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gles1 gles2 gpm gtk iconv ipv6 jpeg lcms libnotify lock mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 qt5 readline seccomp session spell ssl startup-notification svg tcpd thunar tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" 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_ARM="edsp neon thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" 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="evdev synaptics" 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="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="fbdev vc4" 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"