Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] libreoffice-7.0.3.1 fails - Ant does not work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Skippy204
Guru
Guru


Joined: 09 May 2008
Posts: 339
Location: Colorado, USA

PostPosted: Mon Dec 07, 2020 2:13 pm    Post subject: [solved] libreoffice-7.0.3.1 fails - Ant does not work Reply with quote

Code:

checking whether to use system liblangtag... yes
checking for liblangtag >= 0.4.0... yes
checking which libpng to use... external
checking for libpng... yes
checking whether to use specific JVM search path at runtime... no
checking for ant... /usr/bin/ant
checking if /usr/bin/ant works... configure: error: Ant does not work - Some Java projects will not build!



Full build.log here:
https://dpaste.com/7CCBCV4MB

ant is installed
Code:

 skippy $ eix ant-core
[I] dev-java/ant-core
     Available versions:  1.10.9^t{tbz2} {doc source ELIBC="FreeBSD"}
     Installed versions:  1.10.9^t{tbz2}(08:41:45 PM 10/01/2020)(-doc -source ELIBC="-FreeBSD")
     Homepage:            https://ant.apache.org/
     Description:         Java-based build tool similar to 'make' that uses XML configuration files


This version of libreoffice is currently installed. It did build correctly in the past.

Code:
app-office/libreoffice-7.0.3.1::gentoo was built with the following:
USE="branding cups dbus gstreamer gtk java ldap mariadb -accessibility -base -bluetooth -clang -coinmp -custom-cflags -debug -eds -firebird -googledrive -kde -odk -pdfimport -postgres -test -vulkan" ABI_X86="(64)" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8 -python3_9"
FEATURES="unknown-features-warn sandbox fixlafiles sfperms ebuild-locks usersandbox userfetch clean-logs qa-unresolved-soname-deps unmerge-logs unmerge-orphans usersync buildpkg binpkg-dostrip protect-owned assume-digests xattr userpriv config-protect-if-modified binpkg-logs binpkg-docompress ipc-sandbox pid-sandbox distlocks news network-sandbox merge-sync parallel-fetch strict multilib-strict preserve-libs"






Code:

 root # emerge --info '=app-office/libreoffice-7.0.3.1::gentoo'
Portage 3.0.11 (python 3.8.6-final-0, default/linux/amd64/17.1, gcc-10.2.0, glibc-2.32-r3, 5.8.15-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.8.15-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-glibc2.2.5
KiB Mem:    24627256 total,    603676 free
KiB Swap:   19535036 total,  19533484 free
Timestamp of repository gentoo: Mon, 07 Dec 2020 04:00:01 +0000
Head commit of repository gentoo: ed122be08931392fd783a3331e554b9be90859ef
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
ccache version 4.1 [disabled]
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:          2.7.18-r4::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/ccache:          4.1::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.16.3-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            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://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

Skippy
    location: /usr/local/portage/skippy
    masters: gentoo

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

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/angband/gamedata/ /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 /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"
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 buildpkg clean-logs 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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.evowise.com/gentoo/ http://mirror.leaseweb.com/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.cs.utah.edu/ https://mirrors.evowise.com/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j6"
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 acl aim alsa amd64 amrnb amrub arts aspell berkdb bzip2 cdda cddb cdr cli consolekit crypt css dbus dillo dri dvd dvdr encode exif extensions extras ffmpeg flac fontconfig fortran fts3 gdbm gimp gnutls graphicsmagick gstreamer gtk hddtemp iconv id3tag imap ipod ipv6 jack jadetex java jpeg jpeg2k kde kipi ladspa lcms ldap libglvnd libsamplerate libtirpc lm_sensors mad midi mikmod mjpeg mmx mng mono mp3 mp4 mpeg mplayer multilib musepack musicbrainz mysql ncurses nls nptl nvidia offensive ogg opengl openmp oscar pam pcre pdf png policykit portaudio qt3support quicktime readline redeyes scanner seccomp secure-delete semantic-desktop smp sndfile soundtouch spamassassin spell split-usr sql sqlite sse sse2 ssl svg tcpd theora tiff twolame udev ukit unicode vamp vcd vorbis wavpack wmf xattr xinerama xmp xvid xvmc zlib" ABI_X86="32 64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel intel8x0 intel8x0m" 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="mmx mmxext sse sse2" 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" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="en en_GB en_US" 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="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

app-office/libreoffice-7.0.3.1::gentoo was built with the following:
USE="branding cups dbus gstreamer gtk java ldap mariadb -accessibility -base -bluetooth -clang -coinmp -custom-cflags -debug -eds -firebird -googledrive -kde -odk -pdfimport -postgres -test -vulkan" ABI_X86="(64)" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8 -python3_9"
FEATURES="unknown-features-warn sandbox fixlafiles sfperms ebuild-locks usersandbox userfetch clean-logs qa-unresolved-soname-deps unmerge-logs unmerge-orphans usersync buildpkg binpkg-dostrip protect-owned assume-digests xattr userpriv config-protect-if-modified binpkg-logs binpkg-docompress ipc-sandbox pid-sandbox distlocks news network-sandbox merge-sync parallel-fetch strict multilib-strict preserve-libs"


Last edited by Skippy204 on Tue Dec 08, 2020 3:19 am; edited 1 time in total
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1602
Location: Just over the horizon

PostPosted: Mon Dec 07, 2020 2:19 pm    Post subject: Reply with quote

Same here: https://bugs.gentoo.org/758320
Back to top
View user's profile Send private message
Skippy204
Guru
Guru


Joined: 09 May 2008
Posts: 339
Location: Colorado, USA

PostPosted: Mon Dec 07, 2020 2:23 pm    Post subject: Reply with quote

Grrrrrrrrrrrr...

I neglected to check the bugs forum before posting.

Thank you for that - I'll keep an eye on the bug report and this thread.

If I get it working I'll post the solution here.
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1602
Location: Just over the horizon

PostPosted: Mon Dec 07, 2020 3:07 pm    Post subject: Reply with quote

Well, 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. I'll update the bug ticket and close it.
Back to top
View user's profile Send private message
Skippy204
Guru
Guru


Joined: 09 May 2008
Posts: 339
Location: Colorado, USA

PostPosted: Tue Dec 08, 2020 3:18 am    Post subject: Reply with quote

Libreoffice is currently compiling.

I expect it will finish with no problem

Your solution did the trick for me as well.
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Thu Jul 29, 2021 6:52 am    Post subject: Reply with quote

I typed the following:

Code:
# eselect java-vm list
Available Java Virtual Machines:
  [1]   openjdk-8

# eselect java-vm set system 1
# eselect java-vm list
Available Java Virtual Machines:
  [1]   openjdk-8  system-vm

_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu Jul 29, 2021 11:38 am    Post subject: Reply with quote

Another possible approach:
Code:
USE="-java" emerge libreoffice
Back to top
View user's profile Send private message
jserink
Veteran
Veteran


Joined: 30 Jan 2004
Posts: 1008

PostPosted: Sun Jun 12, 2022 6:56 pm    Post subject: Reply with quote

Setting the java-vm worked for me.
Thanx for this.

Cheers,
john
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum