Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910415 - sci-libs/openblas-0.3.23[-test] runs ./openblas_utest during src_compile()
Summary: sci-libs/openblas-0.3.23[-test] runs ./openblas_utest during src_compile()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL: https://github.com/xianyi/OpenBLAS/is...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-16 01:56 UTC by cyrillic
Modified: 2023-07-19 03:05 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,73.80 KB, application/x-xz)
2023-07-16 02:04 UTC, cyrillic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cyrillic 2023-07-16 01:56:01 UTC
sci-libs/openblas-0.3.23[-test] runs ./openblas_utest during src_compile() and on top of that, the fork safety test hangs.

Reproducible: Always




# emerge --info
Portage 3.0.49 (python 3.12.0-beta-4, default/linux/amd64/23.0/desktop/gnome/systemd, gcc-13, glibc-2.37-r3, 6.4.3-060403-generic x86_64)
=================================================================
System uname: Linux-6.4.3-060403-generic-x86_64-AMD_Ryzen_Threadripper_2970WX_24-Core_Processor-with-glibc2.37
KiB Mem:    65789676 total,  61390064 free
KiB Swap:          0 total,         0 free
Head commit of repository qt: be65442f69b570a4ade8a7187c5df1b9eefbce63

Head commit of repository gentoo: f7faea939cecd6b64d641b8e3d106b3e56b558c8

sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.4::gentoo, 3.12.0_beta4::gentoo
dev-lang/rust:             1.71.0::fixes
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.36::gentoo
sys-apps/systemd:          253.6::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo
sys-devel/gcc:             13.1.1_p20230708::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.4::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

newstuff
    location: /mnt/repos/newstuff
    masters: gentoo
    priority: -1030
    eclass-overrides: fixes
    volatile: True

qt
    location: /mnt/repos/qt
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/qt.git
    masters: gentoo
    priority: -1020
    eclass-overrides: fixes
    volatile: True

gnomelive
    location: /mnt/repos/gnomelive
    masters: gentoo
    priority: -1010
    eclass-overrides: fixes
    volatile: True

gentoo
    location: /mnt/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git
    priority: -1000
    eclass-overrides: fixes
    volatile: True

fixes
    location: /mnt/repos/fixes
    masters: gentoo
    priority: 10
    eclass-overrides: fixes
    volatile: True

Installed sets: @clang, @gnome, @nice-fonts, @qt6, @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
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"
CXXFLAGS="-march=nocona -mtune=native -O2 -pipe"
DISTDIR="/mnt/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-march=nocona -mtune=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live 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"
FFLAGS="-march=nocona -mtune=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j24"
PKGDIR="/var/tmp/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="/tmp"
RUSTFLAGS="-C target-cpu=nocona -C opt-level=2"
SHELL="/bin/bash"
USE="X a52 aac acl alsa amd64 avif bluetooth bluray boost brotli bzip2 cairo caps cdr colord cpudetection css cups curl custom-cflags cxx dbus dnssec drm dts dvd eds egl encode exif expat fbcon ffmpeg flac flickr fontconfig fortran gdbm geolocation gif glamor gles2 glib gnome gnutls gpm graphite gssapi gstreamer gtk gtk3 harfbuzz heif ibus icu idn imagemagick introspection ipv6 jpeg jpeg2k jpegxl keyring kmod kms lcms libass libinput libnotify lz4 lzma mp3 mpi ncurses networkmanager nls nptl numa ocamlopt ogg opencl opencv openexr opengl openmp openssl opus orc pam pango pcre pdf pipewire pkcs11 png policykit postproc postscript pulseaudio python qml readline samba speex spell ssl ssp svg systemd tcl telepathy test-rust theora threads tiff tk tools tracker truetype udev unicode usb utils v4l vaapi vala vorbis vpx vulkan wayland webp x264 x265 xcb xkb xml xmp zlib zstd" ABI_X86="64" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="en" LLVM_TARGETS="AMDGPU BPF X86" LUA_SINGLE_TARGET="lua5-4" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu intel lavapipe radeon radeonsi"
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, LANG, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 cyrillic 2023-07-16 02:04:09 UTC
Created attachment 865564 [details]
build.log.xz
Comment 2 cyrillic 2023-07-16 12:24:57 UTC
The problem goes away if I revert that last patch from bug 910174
Comment 3 cyrillic 2023-07-16 13:09:05 UTC
If I compile with gcc-13 instead of clang-16 it fails the fork safety test instead of hanging :

...
TEST 35/37 potrf:bug_695 [OK]
TEST 36/37 kernel_regress:skx_avx [OK]
TEST 37/37 fork:safety_after_fork_in_parent [FAIL]
  ERR: Failed to fork process.
RESULTS: 37 tests (36 ok, 1 failed, 0 skipped) ran in 59 ms
make[1]: *** [Makefile:52: run_test] Error 1
make[1]: Leaving directory '/tmp/portage/sci-libs/openblas-0.3.23/work/OpenBLAS-0.3.23/utest'
make: *** [Makefile:157: tests] Error 2
 * ERROR: sci-libs/openblas-0.3.23::gentoo failed (compile phase):
 *   emake failed
Comment 4 Larry the Git Cow gentoo-dev 2023-07-17 02:58:42 UTC
The bug has been referenced in the following commit(s):

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

commit c730b8fb4941b27b62b776f61ced930f2fbbd64b
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2023-07-17 02:56:35 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2023-07-17 02:56:35 +0000

    sci-libs/openblas: don't build tests in src_compile.
    
    Bug: https://bugs.gentoo.org/910415
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 sci-libs/openblas/openblas-0.3.23.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 5 Michael Orlitzky gentoo-dev 2023-07-17 03:03:13 UTC
I'm not sure how the patch caused that, because "tests" was *always* a prerequisite of "all" (the default Makefile target). Anyway, now it's running "emake shared" explicitly to avoid the "all" target, so hopefully that part is fixed.

That still leaves the fork safety test to debug...
Comment 6 Michael Orlitzky gentoo-dev 2023-07-17 13:30:29 UTC
There's an OpenBLAS issue for the hang ($url), and now an LLVM issue for the failed assertion too: https://github.com/llvm/llvm-project/issues/63908
Comment 7 cyrillic 2023-07-19 03:05:20 UTC
I would think that building the tests in src_compile() would be okay. It is just running the tests that should hold off until src_test().

In any case, openblas::gentoo seems to be working for me once again.