[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hotfix PATCH-for-8.1] meson: Fix cross-building for RISCV host
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [hotfix PATCH-for-8.1] meson: Fix cross-building for RISCV host |
Date: |
Tue, 11 Jul 2023 11:02:39 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
On 11/7/23 10:54, Philippe Mathieu-Daudé wrote:
While when building on native Linux the host architecture
is reported as "riscv32" or "riscv64", when cross-compiling
it is detected as "riscv". Meson handles the cross-detection
but displays a warning:
WARNING: Unknown CPU family riscv, please report this at
https://github.com/mesonbuild/meson/issues/new
Commit 278c1bcef5 was tested on native host but not under
cross environment, and now we get there [*]:
Richard, if this works for you, please scratch this " [*]",
I meant to list
"https://gitlab.com/qemu-project/qemu/-/jobs/4627545569#L128" but then
realized this link will
expire in few days so be irrelevant in the commit desc.
../meson.build:684:6: ERROR: Problem encountered: Unsupported CPU riscv, try
--enable-tcg-interpreter
Instead of:
Found pkg-config: /usr/bin/riscv64-linux-gnu-pkg-config (1.8.1)
As a kludge, re-introduce "riscv" in the supported_cpus[] array.
Fixes: 278c1bcef5 ("target/riscv: Only unify 'riscv32/64' -> 'riscv' for host cpu in
meson")
Reported-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)