Bug #59480 no argument specified with option '/machine:' - nmake error
Submitted: 13 Jan 2011 18:38 Modified: 14 Jan 2011 14:56
Reporter: Santo Leto Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.5.-bzr OS:Windows (Vista 32-bit)
Assigned to: CPU Architecture:Any
Tags: /machine, cmake, nmake

[13 Jan 2011 18:38] Santo Leto
Description:
When compiling version 5.5-bzr on my machine, sometimes nmake breaks with errors like the following:

LINK : fatal error LNK1146: no argument specified with option '/machine:'
LINK Pass 1 failed. with 2
NMAKE : fatal error U1077: '"C:\Program Files\CMake 2.8\bin\cmake.exe"' : return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

Important: this is a non-reproducible bug for me (so far): usually on my machine I can compile successfully version 5.5-bzr using nmake; some other times, instead, nmake just stops with error similars to those reported above.
 
I will try to investigate this: for now, just wanted to share this with you (and get some suggestions, if any). If you think this is not related to mysql but to cmake, please feel free to close this issue. Thanks

---
C:\Program Files\Microsoft Visual Studio 10.0\VC>nmake

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

C:\Program Files\Microsoft Visual Studio 10.0\VC>cmake --version
cmake version 2.8.2

How to repeat:
For out-of-source builds:
 - mkdir build_dir
 - cd build_dir
 - cmake [options] ..\mysql-5.5
 - nmake package
[14 Jan 2011 13:35] Vladislav Vaintroub
Santo, this is related to CMake and not MySQL. Filing a bug here http://www.cmake.org/Bug/ would be appropriate, though a reproducible scenario would be great
[14 Jan 2011 14:56] Santo Leto
Thank you for the feedback Vladislav!

Closing this as "not a bug" then.
Issue is related to CMake, not MySQL.