Обсуждение: BUG #17492: error MSB4126: The specified solution configuration "Release|arm64" is invalid

Поиск
Список
Период
Сортировка

BUG #17492: error MSB4126: The specified solution configuration "Release|arm64" is invalid

От
PG Bug reporting form
Дата:
The following bug has been logged on the website:

Bug reference:      17492
Logged by:          Shino Yang
Email address:      v-yayan8@microsoft.com
PostgreSQL version: 14.0
Operating system:   Windows Server 2019
Description:

Environment:
Windows Server 2019 + VS2019 + PostgreSQL master branch on c28839c commit.

PostgreSQL failed to build "error MSB4126: The specified solution
configuration "Release|arm64" is invalid. Please specify a valid solution
configuration using the Configuration and Platform properties" with MSVC on
windows. It can be produced on master branch on c28839c commit.

Repro steps:
1. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64
-arch=arm64
2. git clone https://git.postgresql.org/git/postgresql.git
F:\gitP\git\postgresql.git
3. git -C "F:\gitP\git\postgresql.git" reset --hard c28839c
4. cd F:\gitP\git\postgresql.git\src\tools\msvc
5. set
PATH=F:\gitP\git\postgresql.git\..\tools;F:\tools\gnuwin32\bin;%PATH%
6. build RELEASE
7. cd F:\gitP\git\postgresql.git
8. msbuild /m /p:Platform=arm64 /p:Configuration=Release
/p:PlatformToolset=v141 pgsql.sln /verbosity:normal /t:Rebuild

Error Message:
F:\gitP\git\postgresql.git\pgsql.sln.metaproj : error MSB4126: The specified
solution configuration "Release|arm64" is invalid. Please specify a valid
solution configuration using the Configuration and Platform properties (e.g.
MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or
leave those properties blank to use the default solution configuration.
[F:\gitP\git\postgresql.git\pgsql.sln]


Re: BUG #17492: error MSB4126: The specified solution configuration "Release|arm64" is invalid

От
Juan José Santamaría Flecha
Дата:

On Tue, May 24, 2022 at 12:30 PM PG Bug reporting form <noreply@postgresql.org> wrote:

PostgreSQL failed to build "error MSB4126: The specified solution
configuration "Release|arm64" is invalid. Please specify a valid solution
configuration using the Configuration and Platform properties" with MSVC on
windows. It can be produced on master branch on c28839c commit.

There is an open item in the current commitfest [1] to add support for this configuration, maybe you can contribute by reviewing it.


Regards,

Juan José Santamaría Flecha  

Re: BUG #17492: error MSB4126: The specified solution configuration "Release|arm64" is invalid

От
Michael Paquier
Дата:
On Tue, May 24, 2022 at 01:00:55PM +0200, Juan José Santamaría Flecha wrote:
> There is an open item in the current commitfest [1] to add support for
> this configuration, maybe you can contribute by reviewing it.
>
> [1] https://commitfest.postgresql.org/38/3561/

Another thing that you may be interested in in the long-term is to
contribute a buildfarm member, so as we can know in live that this
configuration still works after any commits happening in the code
tree, of course once the patch to add this compatibility gets merged:
https://buildfarm.postgresql.org/index.html
https://wiki.postgresql.org/wiki/PostgreSQL_Buildfarm_Howto

I don't think that we are completely in the clear with Arm64 regarding
the handling is ASLR, something visibly mandatory when compiling with
MSVC in this architecture, but we could move on with considering the
support as experimental, which is something Thomas Munro has mentioned
on the other thread.
--
Michael

Вложения