[cmake-developers] [CMake 0015253]: Ninja generator causes build failure for ASM files via NASM

Mantis Bug Tracker mantis at public.kitware.com
Sun Nov 16 21:13:24 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15253 
====================================================================== 
Reported By:                karlhungus
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15253
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-11-16 21:13 EST
Last Modified:              2014-11-16 21:13 EST
====================================================================== 
Summary:                    Ninja generator causes build failure for ASM files
via NASM
Description: 
On Windows (haven't tested on other platforms), the Ninja generator for ASM
files compiled with NASM adds the "/showIncludes" flag to the NASM command line
in "rules.ninja":

    #############################################
    # Rule for compiling ASM_NASM files.

    rule ASM_NASM_COMPILER
      deps = msvc
      command = C:\dev\bin\nasm.exe  $FLAGS /showIncludes -f win64 -o $out $in
      description = Building ASM_NASM object $out

This causes a build failure with the error message:

"nasm: error: more than one input file specified"

Using YASM instead of NASM turns this into a warning instead of an error, but
inconvenient nonetheless.

Removing "/showIncludes" from the above line in "rules.ninja" fixes the error.

Steps to Reproduce: 
# Have nasm.exe in path #
git clone https://boringssl.googlesource.com/boringssl
mkdir build
cd build
cmake -GNinja ..
ninja
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-11-16 21:13 karlhungus     New Issue                                    
======================================================================



More information about the cmake-developers mailing list