Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932805 - dev-util/rt-tests-2.7 - [ncurses-6.5] src/.../hackbench.c: error: passing argument 2 of bind from incompatible pointer type [-Wincompatible-pointer-types]
Summary: dev-util/rt-tests-2.7 - [ncurses-6.5] src/.../hackbench.c: error: passing arg...
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: c99-porting
  Show dependency tree
 
Reported: 2024-05-26 18:05 UTC by Toralf Förster
Modified: 2024-07-04 13:43 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.58 KB, text/plain)
2024-05-26 18:05 UTC, Toralf Förster
Details
dev-util:rt-tests-2.7:20240526-164753.log (dev-util:rt-tests-2.7:20240526-164753.log,5.65 KB, text/plain)
2024-05-26 18:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,131.84 KB, text/plain)
2024-05-26 18:05 UTC, Toralf Förster
Details
environment (environment,96.74 KB, text/plain)
2024-05-26 18:05 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2024-05-26 18:05 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,21.11 KB, application/x-xz)
2024-05-26 18:05 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,236.88 KB, text/plain)
2024-05-26 18:05 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,22.09 KB, application/x-xz)
2024-05-26 18:05 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-05-26 18:05:39 UTC
  198 | #define sigev_notify_thread_id __sev_fields.sigev_notify_thread_id
      |         ^~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-musl-gcc -D VERSION=2.7 -c src/lib/histogram.c -O2 -pipe -march=native -fno-diagnostics-color -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/histogram.o
x86_64-pc-linux-musl-gcc -D VERSION=2.7 -c src/lib/rt-numa.c -O2 -pipe -march=native -fno-diagnostics-color -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/rt-numa.o
x86_64-pc-linux-musl-gcc -D VERSION=2.7 -c src/hackbench/hackbench.c -O2 -pipe -march=native -fno-diagnostics-color -O2 -g -D_GNU_SOURCE -Isrc/include -o bld/hackbench.o
src/hackbench/hackbench.c: In function 'inet_socketpair':
src/hackbench/hackbench.c:133:22: error: passing argument 2 of 'bind' from incompatible pointer type [-Wincompatible-pointer-types]
  133 |         if (bind(s1, &sin, len) < 0)
      |                      ^~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_musl_hardened-20240524-014518

  UNMASKED:
  >=sys-libs/ncurses-6.5
    Issues involving opaque types / incomplete typedefs should block bug 930805

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-musl-14 *
clang/llvm (if any):
clang version 18.1.6
Target: x86_64-pc-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-musl-clang.cfg
/usr/lib/llvm/18
18.1.6
Python 3.11.9
Available Rust versions:
  [1]   rust-bin-1.77.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.23_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.11_p9 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-11 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

php cli (if any):
go version go1.22.3 linux/amd64

  HEAD of ::gentoo
commit 877725d29a54123749eeae1295ce079aa83c3ca6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun May 26 15:50:53 2024 +0000

    2024-05-26 15:50:52 UTC

emerge -qpvO dev-util/rt-tests
[ebuild  N    ] dev-util/rt-tests-2.7  PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12 -python3_13"
Comment 1 Toralf Förster gentoo-dev 2024-05-26 18:05:40 UTC
Created attachment 894473 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-05-26 18:05:40 UTC
Created attachment 894474 [details]
dev-util:rt-tests-2.7:20240526-164753.log
Comment 3 Toralf Förster gentoo-dev 2024-05-26 18:05:42 UTC
Created attachment 894475 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-05-26 18:05:43 UTC
Created attachment 894476 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-05-26 18:05:44 UTC
Created attachment 894477 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-05-26 18:05:45 UTC
Created attachment 894478 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-05-26 18:05:46 UTC
Created attachment 894479 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2024-05-26 18:05:47 UTC
Created attachment 894480 [details]
temp.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2024-07-04 13:43:55 UTC
The bug has been closed via the following commit(s):

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

commit 49ca5770f908f5dac5a709919835b7a9e502bbfa
Author:     Kurt Kanzenbach <kurt@kmk-computers.de>
AuthorDate: 2024-05-29 18:04:14 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-07-04 13:43:52 +0000

    dev-util/rt-tests: Fix musl build
    
    Fix musl build by adding the missing casts to hackbench.
    
    Closes: https://bugs.gentoo.org/932805
    Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
    Closes: https://github.com/gentoo/gentoo/pull/36889
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-util/rt-tests/files/rt-tests-2.7-musl.patch | 30 ++++++++++++++++++++++---
 1 file changed, 27 insertions(+), 3 deletions(-)