| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0011464 | CMake | CMake | public | 2010-11-16 04:13 | 2011-01-21 03:29 | ||||
| Reporter | tyz | ||||||||
| Assigned To | Alex Neundorf | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | duplicate | ||||||
| Platform | OS | Windows 7 | OS Version | 64 bit | |||||
| Product Version | CMake 2.8.3 | ||||||||
| Target Version | CMake 2.8.4 | Fixed in Version | CMake 2.8.4 | ||||||
| Summary | 0011464: Cannot build asm file on msvs2010 | ||||||||
| Description | The following code produce an error ----------------------------- CMakeLists.txt: project( backtrace ASM ) cmake_minimum_required( VERSION 2.8 ) set( backtrace_SOURCE backtrace_win64.asm ) add_library( backtrace STATIC ${backtrace_SOURCE} ) ----------------------------- CMake GUI output: CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineASMCompiler.cmake:68 (CMAKE_DETERMINE_COMPILER_ID_VENDOR): Unknown CMake command "CMAKE_DETERMINE_COMPILER_ID_VENDOR". Call Stack (most recent call first): CMakeLists.txt:1 (project) CMake Error: Could not find cmake module file:[project path]/build/CMakeFiles/CMakeASMCompiler.cmake Configuring incomplete, errors occurred!  | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | ||||||
  | 
||||||
| Relationships | 
| Notes | |
| 
				(0023283) Bill Hoffman (manager) 2010-11-16 08:53  | 
	I am pretty sure the asm stuff is only working for makefiles. Alex? | 
| 
				(0023689) Joke de Buhr (reporter) 2010-12-03 05:57  | 
	
		Same problem using linux and nasm as described in [1]. [1] http://www.cmake.org/Wiki/CMake/Assembler [^]  | 
| 
				(0024610) Emmanuel Blot (reporter) 2011-01-12 04:27  | 
	
		Looks like I have a similar issue: ENABLE_LANGUAGE (ASM-ATT OPTIONAL) Triggers the following error, starting at CMake 2.8.3 (worked well up to 2.8.2): CMake Error at cmake/Modules/CMakeDetermineASMCompiler.cmake:68 (CMAKE_DETERMINE_COMPILER_ID_VENDOR): Unknown CMake command "CMAKE_DETERMINE_COMPILER_ID_VENDOR". Call Stack (most recent call first): cmake/Modules/CMakeDetermineASM-ATTCompiler.cmake:19 (INCLUDE) CMakeLists.txt:100 (ENABLE_LANGUAGE) CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_ASM-ATT_COMPILER_ENV_VAR CMake Error: Could not find cmake module file:CMakeFiles/CMakeASM-ATTCompiler.cmake -- Configuring incomplete, errors occurred! Compilation failed It seems that adding the following patch fixes the issue: Index: CMakeDetermineASMCompiler.cmake =================================================================== --- a/CMakeDetermineASMCompiler.cmake 2010-12-07 23:49:13.000000000 +0100 +++ b/CMakeDetermineASMCompiler.cmake 2010-12-07 23:49:03.000000000 +0100 @@ -65,6 +65,7 @@ SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_GNU "--version") SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_GNU "GNU assembler") + INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake) CMAKE_DETERMINE_COMPILER_ID_VENDOR(ASM${ASM_DIALECT}) IF(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)  | 
| 
				(0024946) RolandSchulz (reporter) 2011-01-19 18:20  | 
	I had the same error under Linux and the patch fixed the problem for me too. | 
| 
				(0024962) Alex Neundorf (developer) 2011-01-20 13:42  | 
	
		So this seems to be a duplicate of 0011467, which I fixed already for cmake 2.8.4. http://cmake.org/gitweb?p=stage/cmake.git;a=commitdiff;h=e3dfbf62fcd54f582057fcec7a7989ac73712e55 [^] Alex  | 
| Notes | 
| Issue History | |||
| Date Modified | Username | Field | Change | 
| 2010-11-16 04:13 | tyz | New Issue | |
| 2010-11-16 08:53 | Bill Hoffman | Note Added: 0023283 | |
| 2010-12-03 05:57 | Joke de Buhr | Note Added: 0023689 | |
| 2010-12-15 12:22 | David Cole | Relationship added | related to 0011536 | 
| 2011-01-12 04:27 | Emmanuel Blot | Note Added: 0024610 | |
| 2011-01-17 14:22 | David Cole | Assigned To | => Alex Neundorf | 
| 2011-01-17 14:22 | David Cole | Status | new => assigned | 
| 2011-01-19 18:20 | RolandSchulz | Note Added: 0024946 | |
| 2011-01-20 13:42 | Alex Neundorf | Note Added: 0024962 | |
| 2011-01-20 13:42 | Alex Neundorf | Status | assigned => closed | 
| 2011-01-20 13:42 | Alex Neundorf | Resolution | open => duplicate | 
| 2011-01-20 13:42 | Alex Neundorf | Fixed in Version | => CMake 2.8.4 | 
| 2011-01-20 13:42 | Alex Neundorf | Target Version | => CMake 2.8.4 | 
| Issue History | 
| Copyright © 2000 - 2018 MantisBT Team |