Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 855893 - dev-libs/libtracefs-1.3.1 - /.../tracefs-local.h: error: unknown type name pthread_mutex_t
Summary: dev-libs/libtracefs-1.3.1 - /.../tracefs-local.h: error: unknown type name pt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-07-02 14:03 UTC by Toralf Förster
Modified: 2022-08-18 19:16 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.21 KB, text/plain)
2022-07-02 14:03 UTC, Toralf Förster
Details
dev-libs:libtracefs-1.3.1:20220702-124150.log (dev-libs:libtracefs-1.3.1:20220702-124150.log,6.57 KB, text/plain)
2022-07-02 14:03 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,61.72 KB, application/x-bzip)
2022-07-02 14:03 UTC, Toralf Förster
Details
environment (environment,57.21 KB, text/plain)
2022-07-02 14:03 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,22.59 KB, application/x-bzip)
2022-07-02 14:03 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,15.44 KB, application/x-bzip)
2022-07-02 14:03 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 2022-07-02 14:03:32 UTC
too long lines were shrinked:

( x86_64-gentoo-linux-musl-gcc -c  -pipe -march=native -fno-diagnostics-color -O2 -D_GNU_SOURCE -I/usr/include/traceevent  -I/var/tmp/portage/dev-libs/libtracefs-1.3.1/work/libtracefs-1.3.1/include -I/var/tmp/portage/dev-libs/libtracefs-1.3.1/work/libtracefs-1.3.1/include/tracefs -std=gnu99 -fPIC tr
( x86_64-gentoo-linux-musl-gcc -c  -pipe -march=native -fno-diagnostics-color -O2 -D_GNU_SOURCE -I/usr/include/traceevent  -I/var/tmp/portage/dev-libs/libtracefs-1.3.1/work/libtracefs-1.3.1/include -I/var/tmp/portage/dev-libs/libtracefs-1.3.1/work/libtracefs-1.3.1/include/tracefs -std=gnu99 -fPIC tr
(  (echo '/* This file is automatically generated. Do not modify. */'; echo \#define VERSION_CODE 259; echo '#define EXTRAVERSION ' 1; echo '#define VERSION_STRING "'1.3.1'"'; ) >  tfs_version.h.tmp; if [ -r tfs_version.h ] && cmp -s tfs_version.h tfs_version.h.tmp; then rm -f tfs_version.h.tmp; els
In file included from tracefs-utils.c:21:
/var/tmp/portage/dev-libs/libtracefs-1.3.1/work/libtracefs-1.3.1/include/tracefs-local.h:27:9: error: unknown type name 'pthread_mutex_t'
   27 |         pthread_mutex_t                 lock;
      |         ^~~~~~~~~~~~~~~

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

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

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-12.1.1 *
clang/llvm (if any):
clang version 14.0.6
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.6
Python 3.9.13
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.62.0
  [2]   rust-1.62.0 *
php cli:
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *

  HEAD of ::gentoo
commit b97d9e836bcb7ca87fe9fd3427b28cf25bae0689
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Jul 2 12:16:40 2022 +0000

    2022-07-02 12:16:40 UTC

emerge -qpvO dev-libs/libtracefs
[ebuild  N    ] dev-libs/libtracefs-1.3.1  USE="-doc"
Comment 1 Toralf Förster gentoo-dev 2022-07-02 14:03:33 UTC
Created attachment 789560 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-07-02 14:03:34 UTC
Created attachment 789563 [details]
dev-libs:libtracefs-1.3.1:20220702-124150.log
Comment 3 Toralf Förster gentoo-dev 2022-07-02 14:03:35 UTC
Created attachment 789566 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2022-07-02 14:03:36 UTC
Created attachment 789569 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-07-02 14:03:37 UTC
Created attachment 789572 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-07-02 14:03:38 UTC
Created attachment 789575 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-08-16 16:38:17 UTC
The bug has been closed via the following commit(s):

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

commit 7864d3d2f3e2a7f87341328afc4074f0ffd113b7
Author:     brahmajit das <listout@protonmail.com>
AuthorDate: 2022-08-16 16:25:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-16 16:38:11 +0000

    dev-libs/libtracefs: Fix pthread_mutex_t unknown type on musl
    
    On musl it is necessary to include pthread header else the compiler cannot
    identify pthread_mutex_t as a known type
    
    Closes: https://bugs.gentoo.org/855893
    
    Signed-off-by: brahmajit das <listout@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/26882
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libtracefs/files/libtracefs-1.3.1-musl-pthread.patch | 16 ++++++++++++++++
 dev-libs/libtracefs/libtracefs-1.3.1.ebuild              |  4 ++++
 2 files changed, 20 insertions(+)
Comment 8 Larry the Git Cow gentoo-dev 2022-08-18 19:16:28 UTC
The bug has been closed via the following commit(s):

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

commit 5439a2db1028e8ae6a202bf2c6a723d83ed87b28
Author:     brahmajit das <listout@protonmail.com>
AuthorDate: 2022-08-18 18:53:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-18 19:16:22 +0000

    dev-libs/libtracefs: add 1.4.2
    
    Version bump and test fix. This is related to bug 855893. The issues on
    that bug is fixed upsteam, hence updating the package is another fix.
    
    Closes: https://bugs.gentoo.org/855893
    Signed-off-by: brahmajit das <listout@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/26890
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/libtracefs/Manifest                       |  1 +
 .../files/libtracefs-1.4.2-fix-test.patch          | 11 +++++
 dev-libs/libtracefs/libtracefs-1.4.2.ebuild        | 57 ++++++++++++++++++++++
 3 files changed, 69 insertions(+)