Bug #49518 Compilation from bzr source doesn't work on Windows XP 32-bit
Submitted: 7 Dec 2009 17:37 Modified: 7 Dec 2009 18:00
Reporter: Sergey Petrunya Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[7 Dec 2009 17:37] Sergey Petrunya
Description:
I used to be able to compile MySQL 5.1 on my win32 machine, but now something has stopped working and win\build-nmake.bat fails

How to repeat:
Get the latest 5.1 source, and try compiling using the following steps:

C:\dev\mysql-server>win\configure.js WITH_INNOBASE_STORAGE_ENGINE

C:\dev\mysql-server>win\build-nmake.bat
Не удается найти указанный файл.
-- The C compiler identification is MSVC
-- The CXX compiler identification is MSVC
-- Check for CL compiler version
-- Check for CL compiler version - 1500
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - no
-- Check CL platform
-- Check CL platform - 32 bit
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
build CSV as static library
build HEAP as static library
build INNOBASE as static library
build MYISAM as static library
build MYISAMMRG as static library
build ARCHIVE as DLL
build BLACKHOLE as DLL
build EXAMPLE as DLL
build FEDERATED as DLL
You have called ADD_LIBRARY for library ha_innobase without any source files. This typically indicates a problem with yo
ur CMakeLists.txt file
build INNOBASE as DLL
-- Configuring done
CMake Error: CMake can not determine linker language for target:ha_innobase
CMake Error: Cannot determine link language for target "ha_innobase".
-- Generating done
-- Build files have been written to: C:/dev/mysql-server
Скопировано файлов:         1.

C:\dev\mysql-server>bzr log --limit=1
------------------------------------------------------------
revno: 3239
author: karen.langford@sun.com
committer: MySQL Build Team <build@mysql.com>
branch nick: mysql-5.1
timestamp: Wed 2009-12-02 18:52:19 +0100
message:
  Raise version number after cloning 5.1.42
[7 Dec 2009 17:38] Sergey Petrunya
Without WITH_INNOBASE_STORAGE_ENGINE, it also fails with a somewhat similar, but different error:

C:\dev\mysql-server2>win\configure.js

C:\dev\mysql-server2>win\build-nmake.bat
Не удается найти указанный файл.
-- The C compiler identification is MSVC
-- The CXX compiler identification is MSVC
-- Check for CL compiler version
-- Check for CL compiler version - 1500
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - no
-- Check CL platform
-- Check CL platform - 32 bit
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
build CSV as static library
build HEAP as static library
build MYISAM as static library
build MYISAMMRG as static library
build ARCHIVE as DLL
build BLACKHOLE as DLL
build EXAMPLE as DLL
build FEDERATED as DLL
build INNOBASE as DLL
CMake Error at storage/mysql_storage_engine.cmake:36 (ADD_LIBRARY):
  add_library cannot create target "ha_innobase" because another target with
  the same name already exists.  The existing target is a shared library
  created in source directory "C:/dev/mysql-server2/storage/innobase".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  storage/innodb_plugin/CMakeLists.txt:84 (MYSQL_STORAGE_ENGINE)

CMake Error: Attempt to add link library "mysqld" to target "ha_innobase" which is not built by this project.
build INNOBASE as DLL
-- Configuring incomplete, errors occurred!
Скопировано файлов:         1.
[7 Dec 2009 17:44] Sergey Petrunya
win/build-vs9.bat fails in the same way.

This means that it is not possible to follow build instructions from the manual
http://dev.mysql.com/doc/refman/5.1/en/windows-source-build-cmake.html.
[7 Dec 2009 18:00] MySQL Verification Team
Thank you for the bug report. Duplicate of http://bugs.mysql.com/bug.php?id=49502.
[7 Dec 2009 18:00] MySQL Verification Team
Thank you for the bug report. Duplicate of http://bugs.mysql.com/bug.php?id=49502.