Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931194 - sys-apps/nvme-cli-2.9.1 - ../.../ssstc-nvme.c: error: unknown type name _uint16_t
Summary: sys-apps/nvme-cli-2.9.1 - ../.../ssstc-nvme.c: error: unknown type name _uint...
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:
Depends on:
Blocks:
 
Reported: 2024-05-04 07:35 UTC by Toralf Förster
Modified: 2024-05-04 12:43 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.64 KB, text/plain)
2024-05-04 07:35 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,169.79 KB, text/plain)
2024-05-04 07:35 UTC, Toralf Förster
Details
environment (environment,123.83 KB, text/plain)
2024-05-04 07:35 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2024-05-04 07:35 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,30.18 KB, application/x-xz)
2024-05-04 07:35 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,45.29 KB, application/x-xz)
2024-05-04 07:35 UTC, Toralf Förster
Details
sys-apps:nvme-cli-2.9.1:20240504-013910.log (sys-apps:nvme-cli-2.9.1:20240504-013910.log,36.38 KB, text/plain)
2024-05-04 07:35 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,27.86 KB, application/x-xz)
2024-05-04 07:36 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-04 07:35:51 UTC
too long lines were shrinked:

[53/96] x86_64-pc-linux-musl-gcc -Invme.p -I. -I../nvme-cli-2.9.1 -Iccan -I../nvme-cli-2.9.1/ccan -I/usr/include/json-c -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -fomit-frame-pointer -D_GNU_SOURCE -include con
[54/96] x86_64-pc-linux-musl-gcc -Invme.p -I. -I../nvme-cli-2.9.1 -Iccan -I../nvme-cli-2.9.1/ccan -I/usr/include/json-c -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -fomit-frame-pointer -D_GNU_SOURCE -include con
[55/96] x86_64-pc-linux-musl-gcc -Invme.p -I. -I../nvme-cli-2.9.1 -Iccan -I../nvme-cli-2.9.1/ccan -I/usr/include/json-c -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -fomit-frame-pointer -D_GNU_SOURCE -include con
FAILED: nvme.p/plugins_ssstc_ssstc-nvme.c.o 
x86_64-pc-linux-musl-gcc -Invme.p -I. -I../nvme-cli-2.9.1 -Iccan -I../nvme-cli-2.9.1/ccan -I/usr/include/json-c -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -fomit-frame-pointer -D_GNU_SOURCE -include config.h -O
../nvme-cli-2.9.1/plugins/ssstc/ssstc-nvme.c: In function 'show_ssstc_add_smart_log_jsn':
../nvme-cli-2.9.1/plugins/ssstc/ssstc-nvme.c:67:9: error: unknown type name '__uint16_t'; did you mean 'u_int16_t'?
   67 |         __uint16_t wear_level_min = 0;
      |         ^~~~~~~~~~

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-musl-13 *
clang/llvm (if any):
clang version 18.1.4
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.4
Python 3.11.9
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.77.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.22_p7 [openjdk-bin-11]
2)	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-11 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

php cli (if any):
  [1]   php8.1 *
  [2]   php8.3
go version go1.22.2 linux/amd64

  HEAD of ::gentoo
commit 9eb378ac86c446d0c1b798b70563e0197d878784
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat May 4 00:34:20 2024 +0000

    2024-05-04 00:34:20 UTC

emerge -qpvO sys-apps/nvme-cli
[ebuild  N    ] sys-apps/nvme-cli-2.9.1  USE="json"
Comment 1 Toralf Förster gentoo-dev 2024-05-04 07:35:52 UTC
Created attachment 892246 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-05-04 07:35:54 UTC
Created attachment 892247 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-05-04 07:35:55 UTC
Created attachment 892248 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-05-04 07:35:56 UTC
Created attachment 892249 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-05-04 07:35:57 UTC
Created attachment 892250 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-05-04 07:35:58 UTC
Created attachment 892251 [details]
qlist-info.txt.xz
Comment 7 Toralf Förster gentoo-dev 2024-05-04 07:35:59 UTC
Created attachment 892252 [details]
sys-apps:nvme-cli-2.9.1:20240504-013910.log
Comment 8 Toralf Förster gentoo-dev 2024-05-04 07:36:00 UTC
Created attachment 892253 [details]
temp.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2024-05-04 12:43:54 UTC
The bug has been closed via the following commit(s):

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

commit 77cafa5b9680f82d40cadd79559f7b642cb8cdf7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-05-04 12:41:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-04 12:41:50 +0000

    sys-apps/nvme-cli: fix musl build
    
    Closes: https://bugs.gentoo.org/931194
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/nvme-cli-2.9.1-musl-stdint.patch         | 107 +++++++++++++++++++++
 sys-apps/nvme-cli/nvme-cli-2.9.1.ebuild            |   4 +
 2 files changed, 111 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit 44d0530879ab4219ce8452c8aa33fc75b1a03141
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-05-04 12:43:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-04 12:43:48 +0000

    sys-libs/libnvme: fix musl build
    
    I don't think this actually failed, unlike libnvme, but pull in the patches for
    completeness.
    
    Bug: https://bugs.gentoo.org/931194
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libnvme/files/libnvme-1.9-musl-stdint.patch    | 59 ++++++++++++++++++++++
 sys-libs/libnvme/libnvme-1.9.ebuild                |  4 ++
 2 files changed, 63 insertions(+)