Bug #58313 | CMake stops with VS Express if -DBUILD_CONFIG=mysql_release | ||
---|---|---|---|
Submitted: | 19 Nov 2010 1:42 | Modified: | 30 Jul 2019 12:27 |
Reporter: | Santo Leto | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 5.5-bzr | OS: | Windows (7) |
Assigned to: | Vladislav Vaintroub | CPU Architecture: | Any |
Tags: | cmake, mysql_release, signtool.exe |
[19 Nov 2010 1:42]
Santo Leto
[19 Nov 2010 23:21]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/124527 3129 Vladislav Vaintroub 2010-11-20 Bug#58313: CMake stops with VS Express if -DBUILD_CONFIG=mysql_release.cmake Bug : -DBUILD_CONFIG=mysql_release sets SIGNCODE parameter which requires singtool.exe (part of Windows SDK) in order to be able to sign the binaries ( only if valid certificate is found). However singtool is not a part of the SDK shipped with Visual Studio Express, so the build fails claiming missing singtools.exe Fix: Do not use SIGNCODE wiith VC Express. Also, fix broken nmake build (*.rc files could not be compiled due to ADD_DEFINITIONS contaning C/C++ compiler specific flags)
[5 Dec 2010 12:38]
Bugs System
Pushed into mysql-trunk 5.6.1 (revid:alexander.nozdrin@oracle.com-20101205122447-6x94l4fmslpbttxj) (version source revid:alexander.nozdrin@oracle.com-20101205122447-6x94l4fmslpbttxj) (merge vers: 5.6.1) (pib:23)
[12 Dec 2010 5:31]
Paul DuBois
Noted in 5.5.8 changelog. When configuring the build with -DBUILD_CONFIG=mysql_release and building with Visual Studio Express, the build failed if signtool.exe was not present.
[16 Dec 2010 22:26]
Bugs System
Pushed into mysql-5.5 5.5.9 (revid:jonathan.perkin@oracle.com-20101216101358-fyzr1epq95a3yett) (version source revid:jonathan.perkin@oracle.com-20101216101358-fyzr1epq95a3yett) (merge vers: 5.5.9) (pib:24)
[23 Jul 2011 4:49]
MySQL Verification Team
I see this also, on todays mysql-trunk and VC 2010 Express with all updates. E:\builds\bzr\mysql-trunk>cmake . -DBUILD_CONFIG=mysql_release -G "Visual Studio 10" -- Check for working C compiler using: Visual Studio 10 -- Check for working C compiler using: Visual Studio 10 -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler using: Visual Studio 10 -- Check for working CXX compiler using: Visual Studio 10 -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of void * -- Check size of void * - done -- MySQL 5.6.3-m5 CMake Error at cmake/install_macros.cmake:155 (MESSAGE): signtool is not found. Signing executables not possible Call Stack (most recent call first): CMakeLists.txt:148 (INCLUDE) -- Configuring incomplete, errors occurred!
[23 Jul 2011 4:54]
MySQL Verification Team
meh, -DSIGNCODE=0 workaround works here...
[23 Jul 2011 10:05]
Davi Arnaut
It is only skipped automatically when CMake flags the build as using the (free) Visual C++ Express compiler. The problem is that CMake only detects it under a few circumstances, which does not include various express editions and configurations, such as when the build is done within the IDE. In conclusion, when using mysql_release.cmake on Windows without a file signing tool, use -DSIGNCODE=0.
[30 Jul 2019 12:27]
Dyre Tjeldvoll
Posted by developer: Only officially supported compiler on windows is VisualStudio 2016/2017. Closing.