[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2] configure: adding ppc64le to supported host CPUs
From: |
Daniel Henrique Barboza |
Subject: |
[Qemu-devel] [PATCH v2] configure: adding ppc64le to supported host CPUs |
Date: |
Wed, 1 Nov 2017 17:10:30 -0200 |
When executing 'configure' in a fresh QEMU clone, in a fresh
OS install running in a ppc64le host, this is the error
shown:
-----
../configure --enable-trace-backend=simple --enable-debug
--target-list=ppc64-softmmu
ERROR: Unsupported CPU = ppc64le, try --enable-tcg-interpreter
-----
This isn't true, ppc64le host CPU is supported. This happens because,
in a fresh install, we don't have a C compiler to autodetect
the $cpu variable to "ppc64".
Since we need a C compiler to properly get the value of $cpu
in this and other cases, this patch changes the location of the C
compiler check right after setting the preferred CC.
Signed-off-by: Daniel Henrique Barboza <address@hidden>
---
configure | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/configure b/configure
index 285d123dbf..5a4e0f0468 100755
--- a/configure
+++ b/configure
@@ -467,6 +467,17 @@ else
cc="${CC-${cross_prefix}gcc}"
fi
+# check that the C compiler works.
+write_c_skeleton;
+if compile_object ; then
+ : C compiler works ok
+else
+ error_exit "\"$cc\" either does not exist or does not work"
+fi
+if ! compile_prog ; then
+ error_exit "\"$cc\" cannot build an executable (is your linker broken?)"
+fi
+
if test -z "${CXX}${cross_prefix}"; then
cxx="c++"
else
@@ -1593,17 +1604,6 @@ if test -z "$werror" ; then
fi
fi
-# check that the C compiler works.
-write_c_skeleton;
-if compile_object ; then
- : C compiler works ok
-else
- error_exit "\"$cc\" either does not exist or does not work"
-fi
-if ! compile_prog ; then
- error_exit "\"$cc\" cannot build an executable (is your linker broken?)"
-fi
-
if test "$bogus_os" = "yes"; then
# Now that we know that we're not printing the help and that
# the compiler works (so the results of the check_defines we used
--
2.13.6
- [Qemu-devel] [PATCH v2] configure: adding ppc64le to supported host CPUs,
Daniel Henrique Barboza <=