Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937333 - sys-cluster/rdma-core-50.0 - [icu-75.1] [gcc-15] /.../mlx5_vfio.c: error: implicit declaration of function basename [-Wimplicit-function-declaration]
Summary: sys-cluster/rdma-core-50.0 - [icu-75.1] [gcc-15] /.../mlx5_vfio.c: error: imp...
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: fixed in 50.0-r1
Keywords: PullRequest
Depends on:
Blocks: c99-porting musl-1.2.5
  Show dependency tree
 
Reported: 2024-08-04 20:07 UTC by Toralf Förster
Modified: 2024-11-01 16:49 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.54 KB, text/plain)
2024-08-04 20:07 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,53.05 KB, text/plain)
2024-08-04 20:07 UTC, Toralf Förster
Details
environment (environment,151.12 KB, text/plain)
2024-08-04 20:07 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1020 bytes, application/x-xz)
2024-08-04 20:07 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,32.38 KB, application/x-xz)
2024-08-04 20:07 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,118.85 KB, text/plain)
2024-08-04 20:07 UTC, Toralf Förster
Details
sys-cluster:rdma-core-50.0:20240804-194848.log (sys-cluster:rdma-core-50.0:20240804-194848.log,111.55 KB, text/plain)
2024-08-04 20:07 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,33.45 KB, application/x-xz)
2024-08-04 20:07 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-08-04 20:07:13 UTC
too long lines were shrinked:

[139/328] /usr/bin/x86_64-pc-linux-musl-gcc -Dmlx5_EXPORTS -I/var/tmp/portage/sys-cluster/rdma-core-50.0/work/rdma-core-50.0_build/include -I/usr/include/drm  -O2 -pipe -march=native -fno-diagnostics-color -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarati
[140/328] /usr/bin/x86_64-pc-linux-musl-gcc -Dmlx5_EXPORTS -I/var/tmp/portage/sys-cluster/rdma-core-50.0/work/rdma-core-50.0_build/include -I/usr/include/drm  -O2 -pipe -march=native -fno-diagnostics-color -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarati
[141/328] /usr/bin/x86_64-pc-linux-musl-gcc -Dmlx5_EXPORTS -I/var/tmp/portage/sys-cluster/rdma-core-50.0/work/rdma-core-50.0_build/include -I/usr/include/drm  -O2 -pipe -march=native -fno-diagnostics-color -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarati
FAILED: providers/mlx5/CMakeFiles/mlx5.dir/mlx5_vfio.c.o 
/usr/bin/x86_64-pc-linux-musl-gcc -Dmlx5_EXPORTS -I/var/tmp/portage/sys-cluster/rdma-core-50.0/work/rdma-core-50.0_build/include -I/usr/include/drm  -O2 -pipe -march=native -fno-diagnostics-color -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wwrit
/var/tmp/portage/sys-cluster/rdma-core-50.0/work/rdma-core-50.0/providers/mlx5/mlx5_vfio.c: In function 'mlx5_vfio_get_iommu_group_id':
/var/tmp/portage/sys-cluster/rdma-core-50.0/work/rdma-core-50.0/providers/mlx5/mlx5_vfio.c:3511:22: error: implicit declaration of function 'basename' [-Wimplicit-function-declaration]
 3511 |         group_name = basename(iommu_group_path);
      |                      ^~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_musl-20240804-000501

  UNMASKED:
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  <sys-devel/gcc-15.0.9999:15
    Requested by sam
  ~dev-libs/icu-75.1
  ~dev-libs/icu-layoutex-75.1

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

gcc-config -l:
 [1] x86_64-pc-linux-musl-15 *
clang/llvm (if any):
clang version 18.1.8
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.8
Python 3.12.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.79.0 *
php cli (if any):
  (none found)
go version go1.22.5 linux/amd64

  HEAD of ::gentoo
commit a5678c51c93fda6f1c67e184fe8ca621aec0121b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Aug 4 18:20:46 2024 +0000

    2024-08-04 18:20:46 UTC

emerge -qpvO sys-cluster/rdma-core
[ebuild  N    ] sys-cluster/rdma-core-50.0  USE="-lttng -neigh -python -static-libs (-systemd) -valgrind" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2024-08-04 20:07:14 UTC
Created attachment 899036 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-08-04 20:07:15 UTC
Created attachment 899037 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-08-04 20:07:16 UTC
Created attachment 899038 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-08-04 20:07:17 UTC
Created attachment 899039 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-08-04 20:07:18 UTC
Created attachment 899040 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-08-04 20:07:19 UTC
Created attachment 899041 [details]
qlist-info.txt
Comment 7 Toralf Förster gentoo-dev 2024-08-04 20:07:21 UTC
Created attachment 899042 [details]
sys-cluster:rdma-core-50.0:20240804-194848.log
Comment 8 Toralf Förster gentoo-dev 2024-08-04 20:07:22 UTC
Created attachment 899043 [details]
temp.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2024-08-23 02:08:15 UTC
The bug has been closed via the following commit(s):

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

commit 4b0b8ad3d49f81bf53f7a694f4437621cc9e5691
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2024-08-05 06:57:28 +0000
Commit:     Eli Schwartz <eschwartz@gentoo.org>
CommitDate: 2024-08-23 02:03:15 +0000

    sys-cluster/rdma-core: Fix implicit declaration of function basename
    
    Closes: https://bugs.gentoo.org/937333
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/37965
    Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>

 ...a-core-50.0-use-posix-version-of-basename.patch |  65 +++++++++++
 sys-cluster/rdma-core/rdma-core-50.0-r1.ebuild     | 120 +++++++++++++++++++++
 2 files changed, 185 insertions(+)