[cfe-dev] Link error on Windows system

Csaba Raduly rcsaba at gmail.com
Wed Feb 6 01:09:51 PST 2013


Hi Robert,

On Tue, Feb 5, 2013 at 10:01 PM, Robert Ankeney  wrote:
> I tried to do a build of trunk on a Windows7 x64 system using Visual Studio
> 2010.  The build failed with:
>
> 1>------ Build started: Project: cmTryCompileExec4049036585, Configuration:
> Debug Win32 ------
> 1>Build started 2/5/2013 12:46:17 PM.
> 1>PrepareForBuild:
> 1>  Creating directory "C:\svn\build\CMakeFiles\CMakeTmp\Debug\".
> 1>InitializeBuildStatus:
> 1>  Creating
> "cmTryCompileExec4049036585.dir\Debug\cmTryCompileExec4049036585.unsuccessfulbuild"
> because "AlwaysCreate" was specified.
> 1>ClCompile:
> 1>  Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01
> for 80x86
> 1>  Copyright (C) Microsoft Corporation.  All rights reserved.
> 1>
> 1>  cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D
> SUPPORTS_NO_VARIADIC_MACROS_FLAG /D _DEBUG /D "CMAKE_INTDIR=\"Debug\""
> /D_MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR
> /Fo"cmTryCompileExec4049036585.dir\Debug\\"
> /Fd"C:/svn/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec4049036585.pdb"
> /Gd /TP /analyze- /errorReport:prompt src.cxx  /Zm1000 -Wno-variadic-macros

The -Wno-variadic-macros is causing problems. You could try editing it
out manually from the project file.
I don't normally use CMake, so I don't know how to prevent it from
being added to the project in the first place.

> 1>cl : Command line error D8021: invalid numeric argument
> '/Wno-variadic-macros'
> 1>
> 1>Build FAILED.
> 1>
> 1>Time Elapsed 00:00:00.11
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
> Source file was:
> int main() { return 0;}
>
>
> Any idea where to go from here?  This was using cmake 2.8.10.2 with the
> command line:
> C:\svn\build\CMakeFiles>cmake -G "Visual Studio 10"
> -DPYTHON_EXECUTABLE=C:\Python33 ..\llvm



Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds



More information about the cfe-dev mailing list