Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715780 - media-libs/gavl-1.4.0-r2 : /.../benchmark.c: error: unknown type name cpu_set_t
Summary: media-libs/gavl-1.4.0-r2 : /.../benchmark.c: error: unknown type name cpu_set_t
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-04-01 16:37 UTC by Toralf Förster
Modified: 2022-06-20 23:15 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.58 KB, text/plain)
2020-04-01 16:38 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,214.77 KB, text/plain)
2020-04-01 16:38 UTC, Toralf Förster
Details
environment (environment,107.22 KB, text/plain)
2020-04-01 16:38 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,23.87 KB, application/x-bzip)
2020-04-01 16:38 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,8.89 KB, application/x-bzip)
2020-04-01 16:38 UTC, Toralf Förster
Details
media-libs:gavl-1.4.0-r1:20200401-151125.log (media-libs:gavl-1.4.0-r1:20200401-151125.log,156.66 KB, text/plain)
2020-04-01 16:38 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,34.94 KB, application/x-bzip)
2020-04-01 16:38 UTC, Toralf Förster
Details
a one-liner musl libc compatibility patch. (gavl-1.4.0-r2.benchmark_c-musl.patch,239 bytes, patch)
2021-03-14 23:58 UTC, Moran Z.
Details | Diff
a one-liner musl libc compatibility patch (w/ a typo fix). (gavl-1.4.0-r2.benchmark_c-musl.patch,243 bytes, patch)
2021-03-15 00:02 UTC, Moran Z.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-04-01 16:37:57 UTC
      |       ^~~~~~~~~~~~~~~~
/var/tmp/portage/media-libs/gavl-1.4.0-r1/work/gavl-1.4.0/src/benchmark.c: In function main:
/var/tmp/portage/media-libs/gavl-1.4.0-r1/work/gavl-1.4.0/src/benchmark.c:1850:3: error: unknown type name cpu_set_t
 1850 |   cpu_set_t cpuset;
      |   ^~~~~~~~~
/var/tmp/portage/media-libs/gavl-1.4.0-r1/work/gavl-1.4.0/src/benchmark.c:1852:3: warning: implicit declaration of function CPU_ZERO [-Wimplicit-function-declaration]

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

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

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.42.0 *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Wed Apr  1 14:40:18 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO media-libs/gavl
[ebuild  N    ] media-libs/gavl-1.4.0-r1  USE="-doc -static-libs"
Comment 1 Toralf Förster gentoo-dev 2020-04-01 16:38:00 UTC
Created attachment 628502 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-01 16:38:03 UTC
Created attachment 628504 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-01 16:38:05 UTC
Created attachment 628506 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-01 16:38:08 UTC
Created attachment 628508 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-01 16:38:10 UTC
Created attachment 628510 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-01 16:38:13 UTC
Created attachment 628512 [details]
media-libs:gavl-1.4.0-r1:20200401-151125.log
Comment 7 Toralf Förster gentoo-dev 2020-04-01 16:38:16 UTC
Created attachment 628514 [details]
temp.tbz2
Comment 8 Moran Z. 2021-03-14 23:58:22 UTC
Created attachment 691458 [details, diff]
a one-liner musl libc compatibility patch.
Comment 9 Moran Z. 2021-03-15 00:02:27 UTC
Created attachment 691461 [details, diff]
a one-liner musl libc compatibility patch (w/ a typo fix).
Comment 10 Moran Z. 2021-03-15 00:04:52 UTC
the proposed patch was also tested to build with the glibc-2.32-r8 libc.
Comment 11 Agostino Sarubbo gentoo-dev 2022-01-26 10:07:08 UTC
tinderbox_musl has reproduced this issue with version 1.4.0-r2 - Updating summary.
Comment 12 Larry the Git Cow gentoo-dev 2022-06-20 23:15:00 UTC
The bug has been closed via the following commit(s):

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

commit 2b95eed1d534159d7d78e285ceb44721884d5b77
Author:     Alfred Persson Forsberg <cat@catcream.org>
AuthorDate: 2022-06-20 20:36:12 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-20 23:12:45 +0000

    media-libs/gavl: fix building with musl
    
    musl only defines CPU_SET and others iff _GNU_SOURCE is defined, this
    patch adds that.
    
    Closes: https://bugs.gentoo.org/715780
    Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/gavl/files/1.4.0-gnu_source.patch       | 22 ++++++++++++++++++++++
 .../gavl/files/{1.4.0-x32.diff => 1.4.0-x32.patch} |  0
 media-libs/gavl/gavl-1.4.0-r2.ebuild               |  7 +++++--
 3 files changed, 27 insertions(+), 2 deletions(-)