Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 888956

Summary: sys-libs/liburing-2.3 - single-issuer.c: fatal error: error.h: No such file or directory
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: flow
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/axboe/liburing/issues/786
https://bugs.gentoo.org/show_bug.cgi?id=892453
https://github.com/axboe/liburing/pull/787
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
sys-libs:liburing-2.3:20221230-045558.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-12-30 09:19:47 UTC
too long lines were shrinked:

x86_64-gentoo-linux-musl-gcc -D_GNU_SOURCE -D__SANE_USERSPACE_TYPES__ -I../src/include/ -include ../config-host.h -pipe -march=native -fno-diagnostics-color -O2 -Wno-unused-parameter -Wno-sign-compare -Wstringop-overflow=0 -Warray-bounds=0 -DLIBURING_BUILD_TEST -o sigfd-deadlock.t sigfd-deadlock.c h
x86_64-gentoo-linux-musl-gcc -D_GNU_SOURCE -D__SANE_USERSPACE_TYPES__ -I../src/include/ -include ../config-host.h -pipe -march=native -fno-diagnostics-color -O2 -Wno-unused-parameter -Wno-sign-compare -Wstringop-overflow=0 -Warray-bounds=0 -DLIBURING_BUILD_TEST -o file-update.t file-update.c helpers
x86_64-gentoo-linux-musl-gcc -D_GNU_SOURCE -D__SANE_USERSPACE_TYPES__ -I../src/include/ -include ../config-host.h -pipe -march=native -fno-diagnostics-color -O2 -Wno-unused-parameter -Wno-sign-compare -Wstringop-overflow=0 -Warray-bounds=0 -DLIBURING_BUILD_TEST -o eventfd-reg.t eventfd-reg.c helpers
x86_64-gentoo-linux-musl-gcc -D_GNU_SOURCE -D__SANE_USERSPACE_TYPES__ -I../src/include/ -include ../config-host.h -pipe -march=native -fno-diagnostics-color -O2 -Wno-unused-parameter -Wno-sign-compare -Wstringop-overflow=0 -Warray-bounds=0 -DLIBURING_BUILD_TEST -o a4c0b3decb33.t a4c0b3decb33.c helpe
x86_64-gentoo-linux-musl-gcc -D_GNU_SOURCE -D__SANE_USERSPACE_TYPES__ -I../src/include/ -include ../config-host.h -pipe -march=native -fno-diagnostics-color -O2 -Wno-unused-parameter -Wno-sign-compare -Wstringop-overflow=0 -Warray-bounds=0 -DLIBURING_BUILD_TEST -o single-issuer.t single-issuer.c hel
x86_64-gentoo-linux-musl-gcc -D_GNU_SOURCE -D__SANE_USERSPACE_TYPES__ -I../src/include/ -include ../config-host.h -pipe -march=native -fno-diagnostics-color -O2 -Wno-unused-parameter -Wno-sign-compare -Wstringop-overflow=0 -Warray-bounds=0 -DLIBURING_BUILD_TEST -o fixed-link.t fixed-link.c helpers.o
single-issuer.c:8:10: fatal error: error.h: No such file or directory
    8 | #include <error.h>
      |          ^~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20221229-143533

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
gcc-config -l:
 [1] x86_64-gentoo-linux-musl-12.2.0 *
clang/llvm (if any):
Python 3.10.9
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.66.0
  [2]   rust-1.66.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

php cli (if any):
  [1]   php8.2 *

  HEAD of ::gentoo
commit 59a10a8293f3321ed69277f2c80fc89578fa6a26
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 30 04:17:08 2022 +0000

    2022-12-30 04:17:08 UTC

emerge -qpvO sys-libs/liburing
[ebuild  N    ] sys-libs/liburing-2.3  USE="-static-libs"
Comment 1 Toralf Förster gentoo-dev 2022-12-30 09:19:48 UTC
Created attachment 845776 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-12-30 09:19:49 UTC
Created attachment 845778 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-12-30 09:19:50 UTC
Created attachment 845780 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-12-30 09:19:51 UTC
Created attachment 845782 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-12-30 09:19:52 UTC
Created attachment 845784 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-12-30 09:19:53 UTC
Created attachment 845786 [details]
sys-libs:liburing-2.3:20221230-045558.log
Comment 7 Toralf Förster gentoo-dev 2022-12-30 09:19:54 UTC
Created attachment 845788 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2023-01-02 03:11:19 UTC
The bug has been referenced in the following commit(s):

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

commit ae452ea5a4af353fde03fcc4ed093aef33a5bf48
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-02 03:11:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-02 03:11:14 +0000

    profiles/features/musl: mask broken sys-libs/liburing-2.3
    
    Bug: https://bugs.gentoo.org/888956
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/features/musl/package.mask | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Comment 9 Larry the Git Cow gentoo-dev 2023-02-12 22:19:42 UTC
The bug has been referenced in the following commit(s):

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

commit 966104b97dbcd157cbbb814cbb54e0249361cc74
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-12 22:19:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-12 22:19:35 +0000

    profiles/features/musl: update liburing mask
    
    Bug: https://bugs.gentoo.org/888956
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/features/musl/package.mask | 1 +
 1 file changed, 1 insertion(+)
Comment 10 Larry the Git Cow gentoo-dev 2023-02-13 07:35:48 UTC
The bug has been closed via the following commit(s):

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

commit 0f71a9212efeed4fb1d7a7790d327d397cf92234
Author:     Steffen <steffen.winter@proton.me>
AuthorDate: 2023-02-12 23:42:25 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2023-02-13 07:24:58 +0000

    sys-libs/liburing: add 'examples' and 'test' use flags
    
    By default liburing will build tests and examples but these fail to
    build on musl systems so we sed them out if not needed.
    
    Closes: https://bugs.gentoo.org/888956
    Closes: https://github.com/gentoo/gentoo/pull/29563
    Signed-off-by: Steffen Winter <steffen.winter@proton.me>
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 .../{liburing-2.3-r1.ebuild => liburing-2.3-r2.ebuild}        | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-13 21:13:01 UTC
Flow, could you backport https://github.com/axboe/liburing/pull/787?
Comment 12 Larry the Git Cow gentoo-dev 2023-02-14 09:43:07 UTC
The bug has been referenced in the following commit(s):

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

commit a64761335b231d170720819e773fee9199f8044b
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2023-02-14 09:31:45 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2023-02-14 09:43:02 +0000

    sys-libs/liburing: backport musl patch, enable tests
    
    Bug: https://bugs.gentoo.org/888956
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 ...remove-error-from-error_h-for-portability.patch | 140 +++++++++++++++++++++
 ...buring-2.3-r2.ebuild => liburing-2.3-r3.ebuild} |  20 ++-
 2 files changed, 158 insertions(+), 2 deletions(-)
Comment 13 Florian Schmaus gentoo-dev 2023-02-14 09:44:23 UTC
@Sam Backported and the removed RESTRICT="test" from liburing as the testsuite (minus a few tests) now rans successfully on my machine.
Comment 14 Larry the Git Cow gentoo-dev 2023-02-14 09:58:17 UTC
The bug has been referenced in the following commit(s):

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

commit c105442f99954cd2d818739435cd87afbf6d6cf3
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2023-02-14 09:54:25 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2023-02-14 09:54:48 +0000

    sys-libs/liburing: remove remaining usage of error.h in test code
    
    Bug: https://bugs.gentoo.org/888956
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 ...iburing-2.3-remove-error-from-error_h-for-portability.patch | 10 ++++++++++
 .../{liburing-2.3-r3.ebuild => liburing-2.3-r4.ebuild}         |  0
 2 files changed, 10 insertions(+)
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-15 04:29:17 UTC
(In reply to Florian Schmaus from comment #13)
> @Sam Backported and the removed RESTRICT="test" from liburing as the
> testsuite (minus a few tests) now rans successfully on my machine.

Thank you! :)