Bug 16096 - iproute musl + gcc-14 compile error w/ 2024.05-rc1
Summary: iproute musl + gcc-14 compile error w/ 2024.05-rc1
Status: RESOLVED MOVED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-04 20:06 UTC by Lance Fredrickson
Modified: 2024-06-15 15:20 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments
Fix iproute2 with musl 1.2.5 (568 bytes, application/octet-stream)
2024-06-04 20:42 UTC, Lance Fredrickson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lance Fredrickson 2024-06-04 20:06:01 UTC
I'm getting the below error with gcc-14 and musl using 2024.05-rc1.

There's is an upstream patch that fixes this.
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=53a89bfd86fff1a00cc77cabb8457a03eaa3bc7d

../include/json_print.h:58:48: error: passing argument 5 of ‘print_color_tv’ from incompatible pointer type [-Wincompatible-pointer-types]
   58 |                                                value);                  \
      |                                                ^~~~~
      |                                                |
      |                                                const struct timeval *


BR2_x86_64=y
BR2_TOOLCHAIN_BUILDROOT_MUSL=y
BR2_KERNEL_HEADERS_6_6=y
BR2_BINUTILS_VERSION_2_42_X=y
BR2_GCC_VERSION_14_X=y
BR2_PACKAGE_IPROUTE2=y
Comment 1 Lance Fredrickson 2024-06-04 20:18:07 UTC
After applying that fix it still fails with the following.

rdma.c:110:20: error: implicit declaration of function ‘basename’; did you mean ‘rename’? [-Wimplicit-function-declaration]
  110 |         filename = basename(argv[0]);
      |                    ^~~~~~~~
      |                    rename
rdma.c:110:18: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  110 |         filename = basename(argv[0]);


hmmmm, basename, looks familiar.
Comment 2 Lance Fredrickson 2024-06-04 20:42:33 UTC
Created attachment 9754 [details]
Fix iproute2 with musl 1.2.5

This patches fixes the basename issue for me.
Comment 3 Yann E. MORIN 2024-06-15 15:20:46 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!