Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835812 - dev-java/zstd-jni-1.5.0.4 Compiling fails
Summary: dev-java/zstd-jni-1.5.0.4 Compiling fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-03-22 19:39 UTC by Jan Hrabe
Modified: 2022-08-30 05:28 UTC (History)
2 users (show)

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


Attachments
Build log (build.log,36.36 KB, text/x-log)
2022-03-22 20:57 UTC, Jan Hrabe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Hrabe 2022-03-22 19:39:33 UTC
[30/41] /usr/bin/x86_64-pc-linux-gnu-gcc -DZSTD_LEGACY_SUPPORT=4 -DZSTD_MULTITHREAD=1 -Dzstd_jni_1_5_0_4_EXPORTS -I/var/tmp/portage/dev-java/zstd-jni-1.5.0.4/work/zstd-jni-1.5.0-4/src/main/native -I/var/tmp/portage/dev-java/zstd-jni-1.5.0.4/work/zstd-jni-1.5.0-4/src/main/native/common -I/var/tmp/portage/dev-java/zstd-jni-1.5.0.4/work/zstd-jni-1.5.0-4/src/main/native/compress -I/var/tmp/portage/dev-java/zstd-jni-1.5.0.4/work/zstd-jni-1.5.0-4/src/main/native/decompress -I/var/tmp/portage/dev-java/zstd-jni-1.5.0.4/work/zstd-jni-1.5.0-4/src/main/native/dictBuilder -I/var/tmp/portage/dev-java/zstd-jni-1.5.0.4/work/zstd-jni-1.5.0-4/src/main/native/legacy  -march=core2 -O2 -pipe -fPIC -MD -MT CMakeFiles/zstd-jni-1.5.0-4.dir/src/main/native/compress/zstd_lazy.c.o -MF CMakeFiles/zstd-jni-1.5.0-4.dir/src/main/native/compress/zstd_lazy.c.o.d -o CMakeFiles/zstd-jni-1.5.0-4.dir/src/main/native/compress/zstd_lazy.c.o -c /var/tmp/portage/dev-java/zstd-jni-1.5.0.4/work/zstd-jni-1.5.0-4/src/main/native/compress/zstd_lazy.c
ninja: build stopped: subcommand failed.
 * ERROR: dev-java/zstd-jni-1.5.0.4::gentoo failed (compile phase):
 *   ninja -v -j5 -l0 failed
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 3945:  Called cmake_src_compile
 *   environment, line  817:  Called cmake_build
 *   environment, line  786:  Called eninja
 *   environment, line 1433:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 * 

-----------------

# emerge --info '=dev-java/zstd-jni-1.5.0.4::gentoo'
Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop, gcc-11.2.1, glibc-2.33-r13, 5.15.26-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.26-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-glibc2.33
KiB Mem:    16386892 total,   3939584 free
KiB Swap:   16777212 total,  16718844 free
Timestamp of repository gentoo: Tue, 22 Mar 2022 19:00:01 +0000
Head commit of repository gentoo: 326082ed7b1ff11df336794facf472191101d0cd
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p14::gentoo, 3.9.9-r1::gentoo, 3.10.2_p1::gentoo
dev-lang/rust-bin:         1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/llvm:            13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.33-r13::gentoo
sys-libs/libselinux:       3.3::gentoo
Repositories:

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

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
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-live candy 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://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en cs es"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emacs encode exif flac foomaticdb fortran gdbm gif gpm gtk gui iconv icu imagemagick jpeg latex lcms libglvnd libnotify libtirpc lock mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf pic png policykit ppds pulseaudio qt5 readline sasl sdl seccomp spell split-usr ssl startup-notification svg thunar tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xscreensaver xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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" INPUT_DEVICES="evdev synaptics wacom" KERNEL="linux" L10N="en cs es" 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-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

-------------------

# emerge -pqv '=dev-java/zstd-jni-1.5.0.4::gentoo'
[ebuild  N    ] dev-java/zstd-jni-1.5.0.4 


Reproducible: Always
Comment 1 Jonas Stein gentoo-dev 2022-03-22 20:21:47 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. This includes
* the complete build.log as attachment and
* a paste of the emerge info 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket

Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 2 Jan Hrabe 2022-03-22 20:57:14 UTC
Created attachment 767596 [details]
Build log
Comment 3 Jan Hrabe 2022-03-22 21:00:47 UTC
The package seems to be needed only by jabref on my system.  Therefore, the simplest workaround is to uninstall it and install jabref-bin instead.  This does not solve the actual package problem, of course.
Comment 4 Yuan Liao (Leo3418) 2022-03-23 01:51:43 UTC
Could you provide the output of command 'eselect java-vm list'?
Comment 5 Jan Hrabe 2022-03-23 22:11:48 UTC
(In reply to Yuan Liao (Leo3418) from comment #4)

# eselect java-vm list
Available Java Virtual Machines:
  [1]   openjdk-bin-8
  [2]   openjdk-bin-11
Comment 6 Yuan Liao (Leo3418) 2022-03-23 22:52:17 UTC
(In reply to Jan Hrabe from comment #5)
> (In reply to Yuan Liao (Leo3418) from comment #4)
> 
> # eselect java-vm list
> Available Java Virtual Machines:
>   [1]   openjdk-bin-8
>   [2]   openjdk-bin-11

Well, obviously, this is a bug caused by missing system VM setting instead of an issue with the package itself.  If you use 'eselect java-vm set system openjdk-bin-X' to select a system VM, then the package should compile afterwards.

Normally, the output of 'eselect java-vm list' should look like the following, where exactly one system VM is selected:

$ eselect java-vm list
Available Java Virtual Machines:
  [1]   openjdk-8 
  [2]   openjdk-bin-8  system-vm
  [3]   openjdk-bin-11 
  [4]   openjdk-bin-17
Comment 7 Jan Hrabe 2022-03-23 23:47:16 UTC
> Well, obviously, this is a bug caused by missing system VM setting instead
> of an issue with the package itself.  If you use 'eselect java-vm set system
> openjdk-bin-X' to select a system VM, then the package should compile
> afterwards.
> 
> Normally, the output of 'eselect java-vm list' should look like the
> following, where exactly one system VM is selected:
> 
> $ eselect java-vm list
> Available Java Virtual Machines:
>   [1]   openjdk-8 
>   [2]   openjdk-bin-8  system-vm
>   [3]   openjdk-bin-11 
>   [4]   openjdk-bin-17

I don't know which package is responsible for setting the default java system VM, I have never touched that setting.  After setting it manually, it works.  Thank you.
Comment 8 Larry the Git Cow gentoo-dev 2022-07-30 02:36:04 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e0c559d915e3a49d197008277f46d76b129aa88

commit 8e0c559d915e3a49d197008277f46d76b129aa88
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2022-07-29 15:14:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-30 02:35:48 +0000

    dev-java/zstd-jni: add 1.5.0.5
    
    EAPI 8
    depend on jdk
    Bug: https://bugs.gentoo.org/835812
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/26653
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-java/zstd-jni/Manifest                |  1 +
 dev-java/zstd-jni/zstd-jni-1.5.0.5.ebuild | 60 +++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)
Comment 9 Larry the Git Cow gentoo-dev 2022-08-30 05:28:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dec5eb65cd4a47361abe505a04dad3def4467c1d

commit dec5eb65cd4a47361abe505a04dad3def4467c1d
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2022-08-29 14:45:29 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2022-08-30 05:28:21 +0000

    dev-java/zstd-jni: drop 1.5.0.4
    
    Closes: https://bugs.gentoo.org/835812
    Closes: https://bugs.gentoo.org/814968
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 dev-java/zstd-jni/Manifest                |  1 -
 dev-java/zstd-jni/zstd-jni-1.5.0.4.ebuild | 60 -------------------------------
 2 files changed, 61 deletions(-)