MantisBT - CMake
View Issue Details
0012524CMakeCMakepublic2011-10-18 11:532011-10-23 07:53
zhaoqin 
Alex Neundorf 
highmajoralways
closedno change required 
x86_64WindowsWin-7
 
 
0012524: CMake 2.8.6 Configure Error identifying assembler with VS2010
On Windows 7 Enterprise, Visual Studio 2010 Professional
in Visual Studio Command Prompt (2010)

D:\src\cygwin\home\zhaoqin\Workspace\DynamoRIO\dynamorio-read-only\build>cmake -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
-- Version number: 3.0.1063
-- Found message compiler: C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/Bin/MC.Exe
-- DDK/WDK is too recent: no support for Windows 2000 or earlier
-- Found ntdll.lib: C:/WinDDK/7600.16385.1/lib/wxp/i386/ntdll.lib
-- Found Perl: C:/strawberry/perl/bin/perl.exe
-- Checked for GNU
-- Output: -MASM : warning A4018:invalid command-line option : --version
MASM : fatal error A1017:missing source filename
Microsoft (R) Macro Assembler Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.

-
-- Result: -1-
-- Checked for HP
-- Output: -MASM : warning A4018:invalid command-line option : -V
MASM : fatal error A1017:missing source filename
Microsoft (R) Macro Assembler Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.

-
-- Result: -1-
-- Checked for Intel
-- Output: -MASM : warning A4018:invalid command-line option : --version
MASM : fatal error A1017:missing source filename
Microsoft (R) Macro Assembler Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.

-
-- Result: -1-
-- Checked for SunPro
-- Output: -MASM : warning A4018:invalid command-line option : -V
MASM : fatal error A1017:missing source filename
Microsoft (R) Macro Assembler Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.
...
Comment 5 by project member bruening@google.com, Oct 16 (45 hours ago)



The same in Win-7 Home

Windows 7 Home Edtion
- VS2010 Express
- cmake-gui 2.8.6
- winsdk 7.1
- winddk 7600

in Visual Studio Command Prompt (2010)

H:\cygwin\home\zhaoqin\Workspace\DynamoRIO\dynamorio-read-only\build>cmake -G"Visual Studio 10" ..
-- Version number: 3.0.1063
-- Found message compiler: C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/Bin/MC.Exe
-- DDK/WDK is too recent: no support for Windows 2000 or earlier
-- Found ntdll.lib: C:/WinDDK/7600.16385.1/lib/wxp/i386/ntdll.lib
-- Checked for GNU
-- Output: -MASM : warning A4018:invalid command-line option : --version
MASM : fatal error A1017:missing source filename
Microsoft (R) Macro Assembler Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

-
-- Result: -1-
-- Checked for HP
-- Output: -MASM : warning A4018:invalid command-line option : -V
MASM : fatal error A1017:missing source filename
Microsoft (R) Macro Assembler Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

-
-- Result: -1-
-- Checked for Intel
-- Output: -MASM : warning A4018:invalid command-line option : --version
MASM : fatal error A1017:missing source filename
Microsoft (R) Macro Assembler Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

-
-- Result: -1-
-- Checked for SunPro
-- Output: -MASM : warning A4018:invalid command-line option : -V
MASM : fatal error A1017:missing source filename
Microsoft (R) Macro Assembler Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

-
-- Result: -1-
-- Checked for XL
-- Output: -MASM : warning A4018:invalid command-line option : -qversion
MASM : fatal error A1017:missing source filename
Microsoft (R) Macro Assembler Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

-
-- Result: -1-
-- Checked for TI_DSP
-- Output: -MASM : warning A4018:invalid command-line option : -h
MASM : fatal error A1017:missing source filename
Microsoft (R) Macro Assembler Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

-
-- Result: -1-
-- The ASM compiler identification is unknown
-- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/ml.exe
-- Warning: Did not find file Compiler/-ASM
-- Configuring done
-- Generating done
-- Build files have been written to:
Similar to http://public.kitware.com/Bug/view.php?id=12358 [^]
No tags attached.
related to 0012465closed Alex Neundorf masm & msvc 
related to 0011536closed Patrick R. Gansterer Can't use assembler files with Visual Studio 10 generator 
Issue History
2011-10-18 11:53zhaoqinNew Issue
2011-10-18 11:55Brad KingRelationship addedrelated to 0012465
2011-10-18 11:55Brad KingAssigned To => Alex Neundorf
2011-10-18 11:55Brad KingStatusnew => assigned
2011-10-18 16:05Alex NeundorfNote Added: 0027598
2011-10-18 16:05Alex NeundorfStatusassigned => closed
2011-10-18 16:05Alex NeundorfResolutionopen => fixed
2011-10-18 16:07Alex NeundorfNote Added: 0027599
2011-10-18 16:07Alex NeundorfStatusclosed => feedback
2011-10-18 16:07Alex NeundorfResolutionfixed => reopened
2011-10-18 16:08Alex NeundorfNote Added: 0027600
2011-10-18 16:08Alex NeundorfStatusfeedback => closed
2011-10-18 16:08Alex NeundorfResolutionreopened => no change required
2011-10-18 16:49Alex NeundorfNote Added: 0027601
2011-10-18 16:49Alex NeundorfStatusclosed => feedback
2011-10-18 16:49Alex NeundorfResolutionno change required => reopened
2011-10-18 16:51Alex NeundorfRelationship addedrelated to 0011536
2011-10-18 16:52Alex NeundorfNote Added: 0027602
2011-10-18 16:52Alex NeundorfStatusfeedback => closed
2011-10-18 16:52Alex NeundorfResolutionreopened => no change required

Notes
(0027598)
Alex Neundorf   
2011-10-18 16:05   
Please try cmake from the current "next" branch, this already contains the fix for this.
I.e. it now detects ASM_COMPILER_ID.

But it still does not work with the VisualStudio project generators (but it should work with nmake).

So, I'm closing this one, since the detection itself is fixed already, and leave 0012358 open, which is basically the bug that it doesn't work with VisualStudio.
(0027599)
Alex Neundorf   
2011-10-18 16:07   
...used wrong bug number...
(0027600)
Alex Neundorf   
2011-10-18 16:08   
I didn't meant, 0012358, but 0012465. So please follow that bug.
(0027601)
Alex Neundorf   
2011-10-18 16:49   
Adding a relation to another ticket.
(0027602)
Alex Neundorf   
2011-10-18 16:52   
0011536 is actually the ticket for ASM support in the Visual Studio generators.