Bug #109567 MySQL failed to build on x64 configuration with vs2019 on windows
Submitted: 10 Jan 2023 10:31 Modified: 10 Jan 2023 13:50
Reporter: Feng Brax Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S6 (Debug Builds)
Version:8.0 OS:Windows (VS 2019)
Assigned to: CPU Architecture:Any (x64)

[10 Jan 2023 10:31] Feng Brax
Description:
Hi all,

MySQL failed to build on x64 configuration with vs2019 on windows. it can be reproduced on a246bad on 8.0 branch. Could you please help look at this issue?

Environment:
VS 2019 + Windows Server 2019

Error Info:
Build started 1/9/2023 8:38:02 PM.
     0>F:\gitP\mysql\mysql-server\build_amd64\MySQL.sln : Solution file error MSB5004: The solution file has two projects named "parser-t".

Build FAILED.

         F:\gitP\mysql\mysql-server\build_amd64\MySQL.sln : Solution file error MSB5004: The solution file has two projects named "parser-t".

    0 Warning(s)
    1 Error(s)

How to repeat:
Repro steps:

1. git clone https://github.com/mysql/mysql-server.git F:\gitP\mysql
2. open vs2019 x64 command line
3. cd F:\gitP\mysql\mysql-server\build_amd64
4. set PATH=F:\gitP\mysql\mysql-server\..\OpenSSL\bin;F:\gitP\mysql\mysql-server\..\tools;%PATH%
5. cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=F:\tools\mysql\boost\x64 .. 2>&1
6. cd F:\gitP\mysql\mysql-server\build_amd64
7. set _CL_=/Zc:__cplusplus %_CL_%
8. msbuild /m /p:Platform=x64 /p:Configuration=Release MySQL.sln /t:Rebuild /p:BuildInParallel=true 2>&1
9. set _CL_=/Zc:__cplusplus %_CL_%

Suggested fix:
Mysql's sln seems to have two parse-t projects, I guess there may be something wrong with cmakelists
[10 Jan 2023 13:50] MySQL Verification Team
Hi Mr. Brax,

Thank you for your bug report.

What you report is a true bug and it has been verified 3 (three) months ago ...... However, that is an internal bug, in the internal bug database, which is accessible only to several teams in our Development.

We shall leave a private message in your bug report, so that we can inform you when and where is the original bug fixed.

Duplicate.