Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927638 - dev-util/librnp-0.17.0-r2 fails test - CMake Error: -j -j4 given invalid value -j -j4
Summary: dev-util/librnp-0.17.0-r2 fails test - CMake Error: -j -j4 given invalid valu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-03-23 17:11 UTC by Toralf Förster
Modified: 2024-04-15 06:03 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.15 KB, text/plain)
2024-03-23 17:12 UTC, Toralf Förster
Details
dev-util:librnp-0.17.0-r2:20240323-162821.log (dev-util:librnp-0.17.0-r2:20240323-162821.log,162.70 KB, text/plain)
2024-03-23 17:12 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,73.77 KB, text/plain)
2024-03-23 17:12 UTC, Toralf Förster
Details
environment (environment,99.22 KB, text/plain)
2024-03-23 17:12 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,960 bytes, application/x-xz)
2024-03-23 17:12 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,18.57 KB, application/x-xz)
2024-03-23 17:12 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,132.39 KB, text/plain)
2024-03-23 17:12 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-03-23 17:11:59 UTC
too long lines were shrinked:

[140/143] /usr/bin/x86_64-pc-linux-gnu-g++ -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DRNP_RUN_TESTS -DRNP_STATIC -D_GNU_SOURCE -I/var/tmp/portage/dev-util/librnp-0.17.0-r2/work/rnp-0.17.0/src -I/var/tmp/portage/dev-util/librnp-0.17.0-r2/work/rnp-0.17.0/src/lib -I/usr/include/botan-2 -I/var/tmp/portage/dev
[141/143] /usr/bin/x86_64-pc-linux-gnu-g++ -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DRNP_RUN_TESTS -DRNP_STATIC -D_GNU_SOURCE -I/var/tmp/portage/dev-util/librnp-0.17.0-r2/work/rnp-0.17.0/src -I/var/tmp/portage/dev-util/librnp-0.17.0-r2/work/rnp-0.17.0/src/lib -I/usr/include/botan-2 -I/var/tmp/portage/dev
[142/143] /usr/bin/x86_64-pc-linux-gnu-g++ -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DRNP_RUN_TESTS -DRNP_STATIC -D_GNU_SOURCE -I/var/tmp/portage/dev-util/librnp-0.17.0-r2/work/rnp-0.17.0/src -I/var/tmp/portage/dev-util/librnp-0.17.0-r2/work/rnp-0.17.0/src/lib -I/usr/include/botan-2 -I/var/tmp/portage/dev
[143/143] : && /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 src/tests/CMakeFiles/rnp_tests.dir/__/rnp/rnpcfg.cpp.o src/tests/CMakeFiles/rnp_tests.dir/__/rnp/fficli.cpp.o src/tests/CMakeFiles/rnp_tests.
>>> Source compiled.
>>> Test phase: dev-util/librnp-0.17.0-r2
CMake Error: '-j -j4' given invalid value '-j -j4'
 * ERROR: dev-util/librnp-0.17.0-r2::gentoo failed (test phase):
 *   (no error message)

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_test-20240321-184907

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 18.1.2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.2
Python 3.11.8
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.76.0
  [2]   rust-1.76.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.10_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.2_p13 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-17 
  [2]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.1 linux/amd64

  HEAD of ::gentoo
commit 8027bd72fc2ab632c503fd2516afe677bf8467c3
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Mar 23 15:04:16 2024 +0000

    2024-03-23 15:04:16 UTC

emerge -qpvO dev-util/librnp
[ebuild  N    ] dev-util/librnp-0.17.0-r2  USE="botan test -man"
Comment 1 Toralf Förster gentoo-dev 2024-03-23 17:12:01 UTC
Created attachment 888291 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-03-23 17:12:02 UTC
Created attachment 888292 [details]
dev-util:librnp-0.17.0-r2:20240323-162821.log
Comment 3 Toralf Förster gentoo-dev 2024-03-23 17:12:03 UTC
Created attachment 888293 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-03-23 17:12:05 UTC
Created attachment 888294 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-03-23 17:12:05 UTC
Created attachment 888295 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-03-23 17:12:06 UTC
Created attachment 888296 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-03-23 17:12:08 UTC
Created attachment 888297 [details]
qlist-info.txt
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-23 17:13:53 UTC
src_test() {
        cd "${BUILD_DIR}"/src/tests || die
        ctest -j"${MAKEOPTS}" -R .* --output-on-failure || die
}

Use $(makeopts_jobs) from multiprocessing.eclass instead.

But you might be able to just do cmake_src_test with args instead...
Comment 9 Joonas Niilola gentoo-dev 2024-03-23 17:21:04 UTC
(In reply to Sam James from comment #8)
> src_test() {
>         cd "${BUILD_DIR}"/src/tests || die
>         ctest -j"${MAKEOPTS}" -R .* --output-on-failure || die
> }
> 

Who wrote this? That's awful!

(I know, https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-util/librnp?id=31862cd96272809389aa0a6389bfa9d7dc333309)

but I do wonder how it has worked for me just fine through stabilizations.
Comment 10 Larry the Git Cow gentoo-dev 2024-04-15 06:03:26 UTC
The bug has been closed via the following commit(s):

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

commit 89829a80ef30057203ef5956402722865257e00d
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2024-04-15 05:57:38 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-04-15 06:03:22 +0000

    dev-util/librnp: restrict sexpp dep, fix tests call
    
    Closes: https://bugs.gentoo.org/927638
    Bug: https://bugs.gentoo.org/929906
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../librnp/{librnp-0.17.0-r2.ebuild => librnp-0.17.0-r3.ebuild}   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)