Skip to content

Commit 8eb60c0

Browse files
authored
Backport qemu fix for building on systems with glibc-2.41 and newer
1 parent 73c5d31 commit 8eb60c0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/c910v.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,12 @@ jobs:
6060
wget https://github.com/revyos/qemu/commit/222729c7455784dd855216d7a2bec4bd8f2a6800.patch
6161
# Backport the upstream linux-user clone_lock fix
6262
wget -O qemu-clone-lock.patch https://gitlab.com/qemu-project/qemu/-/commit/d22e9aec572396836782e993cb18d598e6012688.patch
63+
# Backport the upstream linux-user fix for building against glibc-2.41+ that already defines sched_attr
64+
wget -O qemu-sched-attr.patch https://gitlab.com/qemu-project/qemu/-/commit/27a8d899c7a100fd5aa040a8b993bb257687c393.patch
6365
cd qemu
6466
patch -p1 < ../222729c7455784dd855216d7a2bec4bd8f2a6800.patch
6567
patch -p1 < ../qemu-clone-lock.patch
68+
patch -p1 < ../qemu-sched-attr.patch
6669
export CXXFLAGS="-Wno-error"; export CFLAGS="-Wno-error"
6770
./configure --prefix=$GITHUB_WORKSPACE/qemu-install --target-list=riscv64-linux-user --disable-system
6871
make -j$(nproc)

0 commit comments

Comments
 (0)