Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake

2022-02-28 Thread Jag Raman
> On Feb 28, 2022, at 1:12 PM, Paolo Bonzini wrote: > > On 2/25/22 05:03, Jag Raman wrote: >>> On Feb 24, 2022, at 12:52 PM, Paolo Bonzini wrote: >>> >>> On 2/22/22 20:05, Jag Raman wrote: > -defaults[prefix + 'COMPILER'] = exe_list > +defaults[f'{prefix}COMPIL

Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake

2022-02-28 Thread Paolo Bonzini
On 2/25/22 05:03, Jag Raman wrote: On Feb 24, 2022, at 12:52 PM, Paolo Bonzini wrote: On 2/22/22 20:05, Jag Raman wrote: -defaults[prefix + 'COMPILER'] = exe_list +defaults[f'{prefix}COMPILER'] = [exe_list[0]] +for i in range(1, len(exe_list)): +

Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake

2022-02-24 Thread Jag Raman
> On Feb 24, 2022, at 12:52 PM, Paolo Bonzini wrote: > > On 2/22/22 20:05, Jag Raman wrote: >>> -defaults[prefix + 'COMPILER'] = exe_list >>> +defaults[f'{prefix}COMPILER'] = [exe_list[0]] >>> +for i in range(1, len(exe_list)): >>> +defaults[f

Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake

2022-02-24 Thread Paolo Bonzini
On 2/22/22 20:05, Jag Raman wrote: -defaults[prefix + 'COMPILER'] = exe_list +defaults[f'{prefix}COMPILER'] = [exe_list[0]] +for i in range(1, len(exe_list)): +defaults[f'{prefix}COMPILER_ARG{i}'] = [exe_list[i]] + if comp_obj.get_i

Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake

2022-02-22 Thread Jag Raman
> On Feb 20, 2022, at 3:27 AM, Paolo Bonzini wrote: > > On 2/18/22 15:49, Jag Raman wrote: >> Concerning the generated files, I see the following in >> CMakeMesonToolchainFile.cmake: >> Without patch: set(CMAKE_C_COMPILER "/opt/rh/devtoolset-9/root/usr/bin/cc" >> "-m64" "-mcx16”) >> With patc

Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake

2022-02-20 Thread Paolo Bonzini
On 2/20/22 09:27, Paolo Bonzini wrote: On 2/18/22 15:49, Jag Raman wrote: Concerning the generated files, I see the following in CMakeMesonToolchainFile.cmake: Without patch: set(CMAKE_C_COMPILER "/opt/rh/devtoolset-9/root/usr/bin/cc" "-m64" "-mcx16”) With patch: set(CMAKE_C_COMPILER "cc" "-

Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake

2022-02-20 Thread Paolo Bonzini
On 2/18/22 15:49, Jag Raman wrote: Concerning the generated files, I see the following in CMakeMesonToolchainFile.cmake: Without patch: set(CMAKE_C_COMPILER "/opt/rh/devtoolset-9/root/usr/bin/cc" "-m64" "-mcx16”) With patch: set(CMAKE_C_COMPILER "cc" "-m64" "-mcx16") I don't understand why i

Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake

2022-02-18 Thread Jag Raman
> On Feb 18, 2022, at 9:49 AM, Jag Raman wrote: > > > >> On Feb 18, 2022, at 7:13 AM, Paolo Bonzini wrote: >> >> On 2/18/22 04:40, Jag Raman wrote: On Feb 17, 2022, at 7:09 AM, Peter Maydell wrote: On Thu, 17 Feb 2022 at 07:56, Jagannathan Raman wrote: > >

Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake

2022-02-18 Thread Jag Raman
> On Feb 18, 2022, at 7:13 AM, Paolo Bonzini wrote: > > On 2/18/22 04:40, Jag Raman wrote: >>> On Feb 17, 2022, at 7:09 AM, Peter Maydell wrote: >>> >>> On Thu, 17 Feb 2022 at 07:56, Jagannathan Raman >>> wrote: The compiler path that cmake gets from meson is corrupted. It result

Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake

2022-02-18 Thread Paolo Bonzini
On 2/18/22 04:40, Jag Raman wrote: On Feb 17, 2022, at 7:09 AM, Peter Maydell wrote: On Thu, 17 Feb 2022 at 07:56, 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 E

Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake

2022-02-17 Thread Jag Raman
> On Feb 17, 2022, at 7:09 AM, Peter Maydell wrote: > > On Thu, 17 Feb 2022 at 07:56, 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

Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake

2022-02-17 Thread Jag Raman
> On Feb 17, 2022, at 7:09 AM, Peter Maydell wrote: > > On Thu, 17 Feb 2022 at 07:56, 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

Re: [PATCH v6 01/19] configure, meson: override C compiler for cmake

2022-02-17 Thread Peter Maydell
On Thu, 17 Feb 2022 at 07:56, 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/devtoolse

[PATCH v6 01/19] configure, meson: override C compiler for cmake

2022-02-16 Thread Jagannathan Raman
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 compil