Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bernd Kuhls <bernd@kuhls.net>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH v2 0/6] Fix musl/uclibc build
Date: Thu, 26 Oct 2023 19:14:34 +0200	[thread overview]
Message-ID: <20231026171440.4046190-1-bernd@kuhls.net> (raw)

Hi,

this is v2 of my first patch series I am sending so please be patient ;)

Currently there are efforts underway to add a igt-gpu-tools package to
the buildroot project. Besides glibc buildroot also supports musl- and
uClibc-based toolchains. While testing the new package it turns out that
igt-gpu-tools does not build with other libc's out of the box, see
https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/138

This patch series tries to solve the request from the bug tracker that
the void-linux patch is "splitted into some functional changes".

During build I added only those parts of the void-linux patch which were
needed to fix build errors, I quoted those errors in each patch message.
Besides that, due to my non-knowledge of C, I can not provide any more
information.

Notes added in v2:

Answering some reviews:
https://lists.freedesktop.org/archives/igt-dev/2023-October/063676.html
> Btw did you check against new igt sources, v1.28?

Yes, version 1.28 is used.

https://lists.freedesktop.org/archives/igt-dev/2023-October/063677.html
> While it fixes your build (?) it breaks igt build on current
> Ubuntu 22/x86_64, see:

I added a different fix hoping it does not break anything.

Changes:
- removed some includes from patch 0002 (Kamil)
- added a different fix in patch 0003 (Kamil)
- updated author of patch 0006
- added s-o-b of original author in all patches when needed

Regards, Bernd

Bernd Kuhls (2):
  build: check that outb is present in io.h
  lib/igt_aux.h: Fix musl build

Mohammed Anas (1):
  benchmarks/gem_exec_tracer.c: Fix musl build

Stefano Ragni (3):
  Include limits.h to fix build with musl libc
  lib/igt_x86.c: Fix musl/uclibc build
  lib/igt_halffloat.c: Fix musl/uclibc build

 benchmarks/gem_exec_tracer.c  | 4 ++++
 lib/igt_aux.c                 | 1 +
 lib/igt_aux.h                 | 5 ++++-
 lib/igt_eld.c                 | 1 +
 lib/igt_halffloat.c           | 2 +-
 lib/igt_hwmon.c               | 1 +
 lib/igt_x86.c                 | 2 +-
 meson.build                   | 2 +-
 tests/intel/kms_pm_rpm.c      | 1 +
 tests/kms_sysfs_edid_timing.c | 1 +
 10 files changed, 16 insertions(+), 4 deletions(-)

-- 
2.39.2

             reply	other threads:[~2023-10-26 17:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-26 17:14 Bernd Kuhls [this message]
2023-10-26 17:14 ` [igt-dev] [PATCH v2 1/6] build: check that outb is present in io.h Bernd Kuhls
2023-10-26 17:14 ` [igt-dev] [PATCH v2 2/6] Include limits.h to fix build with musl libc Bernd Kuhls
2023-10-30 14:52   ` Kamil Konieczny
2023-10-26 17:14 ` [igt-dev] [PATCH v2 3/6] lib/igt_aux.h: Fix musl build Bernd Kuhls
2023-10-26 17:14 ` [igt-dev] [PATCH v2 4/6] lib/igt_x86.c: Fix musl/uclibc build Bernd Kuhls
2023-10-26 17:14 ` [igt-dev] [PATCH v2 5/6] lib/igt_halffloat.c: " Bernd Kuhls
2023-10-26 17:14 ` [igt-dev] [PATCH v2 6/6] benchmarks/gem_exec_tracer.c: Fix musl build Bernd Kuhls
2023-10-26 19:13 ` [igt-dev] ✓ CI.xeBAT: success for Fix musl/uclibc build Patchwork
2023-10-26 19:17 ` [igt-dev] ✓ Fi.CI.BAT: " Patchwork
2023-10-28  3:33 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231026171440.4046190-1-bernd@kuhls.net \
    --to=bernd@kuhls.net \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox