Message ID | e903ca2df5d9bd22438ceeab9ae1a48083bb0db4.1633929457.git.jag.raman@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | vfio-user server in QEMU | expand |
On 11/10/21 07:31, Jagannathan Raman wrote: > The compiler path that cmake gets from meson is corrupted. It results in > the following error: > | -- The C compiler identification is unknown > | CMake Error at CMakeLists.txt:35 (project): > | The CMAKE_C_COMPILER: > | /opt/rh/devtoolset-9/root/bin/cc;-m64;-mcx16 > | is not a full path to an existing compiler tool. > > Explicitly specify the C compiler for cmake to avoid this error > > Signed-off-by: Jagannathan Raman <jag.raman@oracle.com> > --- > configure | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/configure b/configure > index 877bf3d76a..e804dfba2f 100755 > --- a/configure > +++ b/configure > @@ -5112,6 +5112,8 @@ if test "$skip_meson" = no; then > echo "cpp_args = [${CXXFLAGS:+$(meson_quote $CXXFLAGS)}]" >> $cross > echo "c_link_args = [${LDFLAGS:+$(meson_quote $LDFLAGS)}]" >> $cross > echo "cpp_link_args = [${LDFLAGS:+$(meson_quote $LDFLAGS)}]" >> $cross > + echo "[cmake]" >> $cross > + echo "CMAKE_C_COMPILER = [$(meson_quote $cc $CPU_CFLAGS)]" >> $cross > echo "[binaries]" >> $cross > echo "c = [$(meson_quote $cc $CPU_CFLAGS)]" >> $cross > test -n "$cxx" && echo "cpp = [$(meson_quote $cxx $CPU_CFLAGS)]" >> $cross > (This is fixed in Meson 0.60). Acked-by: Paolo Bonzini <pbonzini@redhat.com>
diff --git a/configure b/configure index 877bf3d76a..e804dfba2f 100755 --- a/configure +++ b/configure @@ -5112,6 +5112,8 @@ if test "$skip_meson" = no; then echo "cpp_args = [${CXXFLAGS:+$(meson_quote $CXXFLAGS)}]" >> $cross echo "c_link_args = [${LDFLAGS:+$(meson_quote $LDFLAGS)}]" >> $cross echo "cpp_link_args = [${LDFLAGS:+$(meson_quote $LDFLAGS)}]" >> $cross + echo "[cmake]" >> $cross + echo "CMAKE_C_COMPILER = [$(meson_quote $cc $CPU_CFLAGS)]" >> $cross echo "[binaries]" >> $cross echo "c = [$(meson_quote $cc $CPU_CFLAGS)]" >> $cross test -n "$cxx" && echo "cpp = [$(meson_quote $cxx $CPU_CFLAGS)]" >> $cross
The compiler path that cmake gets from meson is corrupted. It results in the following error: | -- The C compiler identification is unknown | CMake Error at CMakeLists.txt:35 (project): | The CMAKE_C_COMPILER: | /opt/rh/devtoolset-9/root/bin/cc;-m64;-mcx16 | is not a full path to an existing compiler tool. Explicitly specify the C compiler for cmake to avoid this error Signed-off-by: Jagannathan Raman <jag.raman@oracle.com> --- configure | 2 ++ 1 file changed, 2 insertions(+)