* [PATCH] tests/tcg/s390x: Use the SLOF libc headers for the multiarch tests
@ 2024-12-16 13:37 Ilya Leoshkevich
2024-12-16 15:32 ` Philippe Mathieu-Daudé
2025-01-03 15:59 ` Thomas Huth
0 siblings, 2 replies; 3+ messages in thread
From: Ilya Leoshkevich @ 2024-12-16 13:37 UTC (permalink / raw)
To: Richard Henderson, David Hildenbrand, Thomas Huth
Cc: qemu-s390x, qemu-devel, Ilya Leoshkevich
Compiling the s390x tests on Fedora, which has the s390x cross-compiler
installed, fails with:
In file included from qemu/tests/tcg/s390x/console.c:8:
qemu/tests/tcg/s390x/../../../pc-bios/s390-ccw/sclp.c:11:10: fatal error: string.h: No such file or directory
11 | #include <string.h>
This is because Fedora does not have a cross-libc. Since console.c
already uses the SLOF libc implementation, add the respective headers
to the include path.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
---
tests/tcg/s390x/Makefile.softmmu-target | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/tcg/s390x/Makefile.softmmu-target b/tests/tcg/s390x/Makefile.softmmu-target
index 969bc5728fa..7adde2fa087 100644
--- a/tests/tcg/s390x/Makefile.softmmu-target
+++ b/tests/tcg/s390x/Makefile.softmmu-target
@@ -45,7 +45,8 @@ TESTS += $(ASM_TESTS)
S390X_MULTIARCH_RUNTIME_OBJS = head64.o console.o $(MINILIB_OBJS)
$(MULTIARCH_TESTS): $(S390X_MULTIARCH_RUNTIME_OBJS)
$(MULTIARCH_TESTS): LDFLAGS += $(S390X_MULTIARCH_RUNTIME_OBJS)
-$(MULTIARCH_TESTS): CFLAGS += $(MINILIB_INC)
+$(MULTIARCH_TESTS): CFLAGS += $(MINILIB_INC) \
+ -I$(SRC_PATH)/roms/SLOF/lib/libc/include/
memory: CFLAGS += -DCHECK_UNALIGNED=0
# s390x clears the BSS section so we need to account for that
--
2.47.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] tests/tcg/s390x: Use the SLOF libc headers for the multiarch tests
2024-12-16 13:37 [PATCH] tests/tcg/s390x: Use the SLOF libc headers for the multiarch tests Ilya Leoshkevich
@ 2024-12-16 15:32 ` Philippe Mathieu-Daudé
2025-01-03 15:59 ` Thomas Huth
1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-12-16 15:32 UTC (permalink / raw)
To: Ilya Leoshkevich, Richard Henderson, David Hildenbrand,
Thomas Huth
Cc: qemu-s390x, qemu-devel
On 16/12/24 14:37, Ilya Leoshkevich wrote:
> Compiling the s390x tests on Fedora, which has the s390x cross-compiler
> installed, fails with:
>
> In file included from qemu/tests/tcg/s390x/console.c:8:
> qemu/tests/tcg/s390x/../../../pc-bios/s390-ccw/sclp.c:11:10: fatal error: string.h: No such file or directory
> 11 | #include <string.h>
>
> This is because Fedora does not have a cross-libc. Since console.c
> already uses the SLOF libc implementation, add the respective headers
> to the include path.
>
> Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
> ---
> tests/tcg/s390x/Makefile.softmmu-target | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tests/tcg/s390x: Use the SLOF libc headers for the multiarch tests
2024-12-16 13:37 [PATCH] tests/tcg/s390x: Use the SLOF libc headers for the multiarch tests Ilya Leoshkevich
2024-12-16 15:32 ` Philippe Mathieu-Daudé
@ 2025-01-03 15:59 ` Thomas Huth
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2025-01-03 15:59 UTC (permalink / raw)
To: Ilya Leoshkevich, Richard Henderson, David Hildenbrand
Cc: qemu-s390x, qemu-devel
On 16/12/2024 14.37, Ilya Leoshkevich wrote:
> Compiling the s390x tests on Fedora, which has the s390x cross-compiler
> installed, fails with:
>
> In file included from qemu/tests/tcg/s390x/console.c:8:
> qemu/tests/tcg/s390x/../../../pc-bios/s390-ccw/sclp.c:11:10: fatal error: string.h: No such file or directory
> 11 | #include <string.h>
>
> This is because Fedora does not have a cross-libc. Since console.c
> already uses the SLOF libc implementation, add the respective headers
> to the include path.
>
> Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
> ---
> tests/tcg/s390x/Makefile.softmmu-target | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/tcg/s390x/Makefile.softmmu-target b/tests/tcg/s390x/Makefile.softmmu-target
> index 969bc5728fa..7adde2fa087 100644
> --- a/tests/tcg/s390x/Makefile.softmmu-target
> +++ b/tests/tcg/s390x/Makefile.softmmu-target
> @@ -45,7 +45,8 @@ TESTS += $(ASM_TESTS)
> S390X_MULTIARCH_RUNTIME_OBJS = head64.o console.o $(MINILIB_OBJS)
> $(MULTIARCH_TESTS): $(S390X_MULTIARCH_RUNTIME_OBJS)
> $(MULTIARCH_TESTS): LDFLAGS += $(S390X_MULTIARCH_RUNTIME_OBJS)
> -$(MULTIARCH_TESTS): CFLAGS += $(MINILIB_INC)
> +$(MULTIARCH_TESTS): CFLAGS += $(MINILIB_INC) \
> + -I$(SRC_PATH)/roms/SLOF/lib/libc/include/
> memory: CFLAGS += -DCHECK_UNALIGNED=0
>
> # s390x clears the BSS section so we need to account for that
Tested-by: Thomas Huth <thuth@redhat.com>
... and queued for my next pull request, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-03 16:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-16 13:37 [PATCH] tests/tcg/s390x: Use the SLOF libc headers for the multiarch tests Ilya Leoshkevich
2024-12-16 15:32 ` Philippe Mathieu-Daudé
2025-01-03 15:59 ` Thomas Huth
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.