Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 758320 - app-office/libreoffice-7.0.3.1 fails to emerge, claiming that /usr/bin/ant does not work
Summary: app-office/libreoffice-7.0.3.1 fails to emerge, claiming that /usr/bin/ant do...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-03 18:14 UTC by Richard Cox
Modified: 2020-12-07 15:10 UTC (History)
1 user (show)

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


Attachments
build log (build.log.bz2,7.49 KB, text/plain)
2020-12-03 18:16 UTC, Richard Cox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Cox 2020-12-03 18:14:51 UTC
emerge of libreoffice fails in the configure phase with the following error:

checking for ant... /usr/bin/ant
checking if /usr/bin/ant works... configure: error: Ant does not work - Some Java projects will not build!

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-office/libreoffice-7.0.3.1/work/libreoffice-7.0.3.1/config.log
 * ERROR: app-office/libreoffice-7.0.3.1::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  125:  Called src_configure
 *             environment, line 5742:  Called econf '--with-system-dicts' '--with-system-epoxy' '--with-system-headers' '--with-system-jars' '--with-system-libs' '--enable-build-opensymbol' '--enable-cairo-canvas' '--enable-largefile' '--enable-mergelibs' '--enable-neon' '--enable-python=system' '--enable-randr' '--enable-release-build' '--disable-breakpad' '--disable-bundle-mariadb' '--disable-ccache' '--disable-epm' '--disable-fetch-external' '--disable-gtk3-kde5' '--disable-online-update' '--disable-openssl' '--disable-pdfium' '--disable-vlc' '--with-extra-buildid=Gentoo official package' '--enable-extension-integration' '--with-external-dict-dir=/usr/share/myspell' '--with-external-hyph-dir=/usr/share/myspell' '--with-external-thes-dir=/usr/share/myspell' '--with-external-tar=/var/tmp/portage/app-office/libreoffice-7.0.3.1/distdir' '--with-lang=' '--with-parallelism=8' '--with-system-ucpp' '--with-tls=nss' '--with-vendor=Gentoo Foundation' '--with-x' '--without-fonts' '--without-myspell-dicts' '--with-help=html' '--without-helppack-integration' '--with-system-gpgmepp' '--without-system-jfreereport' '--without-system_apache_commons' '--without-system-sane' '--without-system-qrcodegen' '--disable-report-builder' '--disable-sdremote-bluetooth' '--disable-coinmp' '--enable-cups' '--enable-dbus' '--disable-debug' '--disable-evolution2' '--disable-firebird-sdbc' '--enable-gstreamer-1-0' '--enable-gtk3' '--enable-kf5' '--enable-qt5' '--disable-ldap' '--disable-odk' '--disable-pdfimport' '--disable-postgresql-sdbc' '--disable-skia' '--without-lxml' '--without-system-coinmp' '--without-gdrive-client-id' '--without-gdrive-client-secret' '--with-java' '--without-doxygen' '--enable-dconf' '--enable-gio' '--disable-ext-nlpsolver' '--disable-scripting-beanshell' '--disable-scripting-javascript' '--disable-ext-wiki-publisher' '--without-junit' '--without-system-hsqldb' '--with-ant-home=/usr/share/ant' '-with-jdk-home=/usr/lib64/openjdk-11'
 *        phase-helpers.sh, line  680:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *              die "$@"
 * 
 * If you need support, post the output of `emerge --info '=app-office/libreoffice-7.0.3.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-office/libreoffice-7.0.3.1::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =libreoffice-7.0.3.1
 * The complete build log is located at '/var/tmp/portage/app-office/libreoffice-7.0.3.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-7.0.3.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-office/libreoffice-7.0.3.1/work/libreoffice-7.0.3.1'
 * S: '/var/tmp/portage/app-office/libreoffice-7.0.3.1/work/libreoffice-7.0.3.1'


Reproducible: Always

Steps to Reproduce:
1.emerge -uDN app-office/libreoffice
2.
3.
Actual Results:  
emerge fails as described above.

Expected Results:  
emerge is successful

Portage 3.0.11 (python 3.8.6-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.32-r3, 5.9.11-gentoo x86_64)
=================================================================
System uname: Linux-5.9.11-gentoo-x86_64-Intel-R-_Core-TM-_i9-9900K_CPU_@_3.60GHz-with-glibc2.2.5
KiB Mem:    32823904 total,   8724108 free
KiB Swap:   16777212 total,  15273364 free
Timestamp of repository gentoo: Thu, 03 Dec 2020 04:45:01 +0000
Head commit of repository gentoo: b7215d58c210f0b250eaf2ac0078299fc4ad3a3a
Head commit of repository java: fa5711b35fdd36112cadee95cbb5a56cfa492dcc

sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/cmake:           3.19.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo, 10.2.0-r3::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://zbox/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: no

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

java
    location: /usr/local/portage/layman/java
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/java.git
    masters: gentoo
    priority: 50

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/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"
EMERGE_DEFAULT_OPTS=" --quiet-build=n --with-bdeps=y --autounmask=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l4"
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="/var/tmp"
USE="X a52 aac aacplus acl acpi activities aes alsa amd64 aspell avx berkdb branding bzip2 cairo cdda cdr cli crypt css cups curl dbus declarative doc dri dts dvd dvdnav dvdr elogind emboss encode eselect exif ffmpeg flac fortran gdbm gif gpm gstreamer gtk gui hunspell iconv icu ipv6 jack java jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc libwww lm_sensors mad matroska mmx mmxext mng mp3 mp4 mpeg multilib multislot mysql ncurses nls nptl nsplugin ogg openexr opengl openmp openrc oss pam pango pcre pdf perl phonon plasma png policykit popcnt ppds python qml qt5 rdesktop readline samba sdl seccomp semantic-desktop session spell spl split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd theora threads tiff tools truetype udev udisks unicode upower usb v4l v4l2 vaapi vdpau vlc vorbis vpx widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid xvmc zlib" ABI_X86="32 64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-5" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby25 ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Richard Cox 2020-12-03 18:16:19 UTC
Created attachment 676594 [details]
build log
Comment 2 Richard Cox 2020-12-07 15:08:20 UTC
I figured it was something simple that I overlooked and it was.  The reason I got this error was that my java-vm was not set up with eselect.  I verified this by simply doing an eselect java-vm list.  My installed JAVA vm was listed, but not set to either system or user vm.  I corrected this with the following:
eselect java-vm openjdk-bin-8 system.  After that the error disappears.