Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Win10 x64 CMake Error at gatewayFunctions.cmake:117 (message): Error installing azure_c_shared_utility: 1 #69

Closed
vvenus opened this issue Dec 12, 2016 · 16 comments
Assignees

Comments

@vvenus
Copy link

vvenus commented Dec 12, 2016

C:\azure-iot-gateway-sdk>tools\build.cmd --platform x64

Then the error was thrown at azure_c_shared_utility installation step .

-- Installing azure_c_shared_utility. Please wait...
CMake Error at gatewayFunctions.cmake:117 (message):
Error installing azure_c_shared_utility: 1
Call Stack (most recent call first):
dependencies.cmake:13 (findAndInstall)
CMakeLists.txt:159 (include)

-- Configuring incomplete, errors occurred!
See also "C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeOutput.log".

The file CMakeOutput.log does not have anything useful to me. There is a unsuccessful build message that I highlighted below. But I am not sure whether that's the error.

The system is: Windows - 10.0.14393 - AMD64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler:
Build flags:
Id flags:

The output was:
0
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/12/2016 10:26:01 AM.
Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\3.7.1\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug".
Creating directory "Debug\CompilerIdC.tlog".
InitializeBuildStatus:
Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /nologo /W0 /WX- /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\" /Fd"Debug\vc140.pdb" /Gd /TC /errorReport:queue CMakeCCompilerId.c
CMakeCCompilerId.c
Link:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X64 Debug\CMakeCCompilerId.obj
CompilerIdC.vcxproj -> C:\azure-iot-gateway-sdk\build\CMakeFiles\3.7.1\CompilerIdC.\CompilerIdC.exe
PostBuildEvent:
for %%i in (cl.exe) do @echo CMAKE_C_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_C_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\cl.exe
FinalizeBuildStatus:
Deleting file "Debug\CompilerIdC.tlog\unsuccessfulbuild".
Touching "Debug\CompilerIdC.tlog\CompilerIdC.lastbuildstate".
Done Building Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\3.7.1\CompilerIdC\CompilerIdC.vcxproj" (default targets).

Build succeeded.
0 Warning(s)
0 Error(s)

Time Elapsed 00:00:03.99

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.exe"

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC.vcxproj"

The C compiler identification is MSVC, found in "C:/azure-iot-gateway-sdk/build/CMakeFiles/3.7.1/CompilerIdC/CompilerIdC.exe"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler:
Build flags:
Id flags:

The output was:
0
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/12/2016 10:26:06 AM.
Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\3.7.1\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug".
Creating directory "Debug\CompilerIdCXX.tlog".
InitializeBuildStatus:
Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /nologo /W0 /WX- /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\" /Fd"Debug\vc140.pdb" /Gd /TP /errorReport:queue CMakeCXXCompilerId.cpp
CMakeCXXCompilerId.cpp
Link:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X64 Debug\CMakeCXXCompilerId.obj
CompilerIdCXX.vcxproj -> C:\azure-iot-gateway-sdk\build\CMakeFiles\3.7.1\CompilerIdCXX.\CompilerIdCXX.exe
PostBuildEvent:
for %%i in (cl.exe) do @echo CMAKE_CXX_COMPILER=%%~$PATH:i
:VCEnd
CMAKE_CXX_COMPILER=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\cl.exe
FinalizeBuildStatus:
Deleting file "Debug\CompilerIdCXX.tlog\unsuccessfulbuild".
Touching "Debug\CompilerIdCXX.tlog\CompilerIdCXX.lastbuildstate".
Done Building Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\3.7.1\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets).

Build succeeded.
0 Warning(s)
0 Error(s)

Time Elapsed 00:00:02.19

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.exe"

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CompilerIdCXX.vcxproj"

The CXX compiler identification is MSVC, found in "C:/azure-iot-gateway-sdk/build/CMakeFiles/3.7.1/CompilerIdCXX/CompilerIdCXX.exe"

Determining if the C compiler works passed with the following output:
Change Dir: C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_1fd5b.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/12/2016 10:26:09 AM.

Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\cmTC_1fd5b.vcxproj" on node 1 (default targets).

PrepareForBuild:

Creating directory "cmTC_1fd5b.dir\Debug".

Creating directory "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug".

Creating directory "cmTC_1fd5b.dir\Debug\cmTC_1fd5b.tlog".

InitializeBuildStatus:

Creating "cmTC_1fd5b.dir\Debug\cmTC_1fd5b.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_1fd5b.dir\Debug\" /Fd"cmTC_1fd5b.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\testCCompiler.c"

Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_1fd5b.dir\Debug\" /Fd"cmTC_1fd5b.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\testCCompiler.c"

testCCompiler.c

Link:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug\cmTC_1fd5b.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp/Debug/cmTC_1fd5b.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp/Debug/cmTC_1fd5b.lib" /MACHINE:X64 /machine:x64 cmTC_1fd5b.dir\Debug\testCCompiler.obj

cmTC_1fd5b.vcxproj -> C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug\cmTC_1fd5b.exe

FinalizeBuildStatus:

Deleting file "cmTC_1fd5b.dir\Debug\cmTC_1fd5b.tlog\unsuccessfulbuild".

Touching "cmTC_1fd5b.dir\Debug\cmTC_1fd5b.tlog\cmTC_1fd5b.lastbuildstate".

Done Building Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\cmTC_1fd5b.vcxproj" (default targets).

Build succeeded.

0 Warning(s)

0 Error(s)

Time Elapsed 00:00:03.41

Detecting C compiler ABI info compiled with the following output:
Change Dir: C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_52382.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/12/2016 10:26:13 AM.

Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\cmTC_52382.vcxproj" on node 1 (default targets).

PrepareForBuild:

Creating directory "cmTC_52382.dir\Debug".

Creating directory "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug".

Creating directory "cmTC_52382.dir\Debug\cmTC_52382.tlog".

InitializeBuildStatus:

Creating "cmTC_52382.dir\Debug\cmTC_52382.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_52382.dir\Debug\" /Fd"cmTC_52382.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue "C:\Program Files\CMake\share\cmake-3.7\Modules\CMakeCCompilerABI.c"

Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_52382.dir\Debug\" /Fd"cmTC_52382.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue "C:\Program Files\CMake\share\cmake-3.7\Modules\CMakeCCompilerABI.c"

CMakeCCompilerABI.c

Link:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug\cmTC_52382.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp/Debug/cmTC_52382.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp/Debug/cmTC_52382.lib" /MACHINE:X64 /machine:x64 cmTC_52382.dir\Debug\CMakeCCompilerABI.obj

cmTC_52382.vcxproj -> C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug\cmTC_52382.exe

FinalizeBuildStatus:

Deleting file "cmTC_52382.dir\Debug\cmTC_52382.tlog\unsuccessfulbuild".

Touching "cmTC_52382.dir\Debug\cmTC_52382.tlog\cmTC_52382.lastbuildstate".

Done Building Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\cmTC_52382.vcxproj" (default targets).

Build succeeded.

0 Warning(s)

0 Error(s)

Time Elapsed 00:00:04.16

Determining if the CXX compiler works passed with the following output:
Change Dir: C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_855c3.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/12/2016 10:26:18 AM.

Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\cmTC_855c3.vcxproj" on node 1 (default targets).

PrepareForBuild:

Creating directory "cmTC_855c3.dir\Debug".

Creating directory "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug".

Creating directory "cmTC_855c3.dir\Debug\cmTC_855c3.tlog".

InitializeBuildStatus:

Creating "cmTC_855c3.dir\Debug\cmTC_855c3.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_855c3.dir\Debug\" /Fd"cmTC_855c3.dir\Debug\vc140.pdb" /Gd /TP /errorReport:queue "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\testCXXCompiler.cxx"

Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_855c3.dir\Debug\" /Fd"cmTC_855c3.dir\Debug\vc140.pdb" /Gd /TP /errorReport:queue "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\testCXXCompiler.cxx"

testCXXCompiler.cxx

Link:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug\cmTC_855c3.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp/Debug/cmTC_855c3.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp/Debug/cmTC_855c3.lib" /MACHINE:X64 /machine:x64 cmTC_855c3.dir\Debug\testCXXCompiler.obj

cmTC_855c3.vcxproj -> C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug\cmTC_855c3.exe

FinalizeBuildStatus:

Deleting file "cmTC_855c3.dir\Debug\cmTC_855c3.tlog\unsuccessfulbuild".

Touching "cmTC_855c3.dir\Debug\cmTC_855c3.tlog\cmTC_855c3.lastbuildstate".

Done Building Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\cmTC_855c3.vcxproj" (default targets).

Build succeeded.

0 Warning(s)

0 Error(s)

Time Elapsed 00:00:02.15

Detecting CXX compiler ABI info compiled with the following output:
Change Dir: C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_2ef13.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/12/2016 10:26:21 AM.

Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\cmTC_2ef13.vcxproj" on node 1 (default targets).

PrepareForBuild:

Creating directory "cmTC_2ef13.dir\Debug".

Creating directory "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug".

Creating directory "cmTC_2ef13.dir\Debug\cmTC_2ef13.tlog".

InitializeBuildStatus:

Creating "cmTC_2ef13.dir\Debug\cmTC_2ef13.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_2ef13.dir\Debug\" /Fd"cmTC_2ef13.dir\Debug\vc140.pdb" /Gd /TP /errorReport:queue "C:\Program Files\CMake\share\cmake-3.7\Modules\CMakeCXXCompilerABI.cpp"

Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_2ef13.dir\Debug\" /Fd"cmTC_2ef13.dir\Debug\vc140.pdb" /Gd /TP /errorReport:queue "C:\Program Files\CMake\share\cmake-3.7\Modules\CMakeCXXCompilerABI.cpp"

CMakeCXXCompilerABI.cpp

Link:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug\cmTC_2ef13.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp/Debug/cmTC_2ef13.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp/Debug/cmTC_2ef13.lib" /MACHINE:X64 /machine:x64 cmTC_2ef13.dir\Debug\CMakeCXXCompilerABI.obj

cmTC_2ef13.vcxproj -> C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug\cmTC_2ef13.exe

FinalizeBuildStatus:

Deleting file "cmTC_2ef13.dir\Debug\cmTC_2ef13.tlog\unsuccessfulbuild".

Touching "cmTC_2ef13.dir\Debug\cmTC_2ef13.tlog\cmTC_2ef13.lastbuildstate".

Done Building Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\cmTC_2ef13.vcxproj" (default targets).

Build succeeded.

0 Warning(s)

0 Error(s)

Time Elapsed 00:00:03.66

Detecting CXX [] compiler features compiled with the following output:
Change Dir: C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_1ce44.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/12/2016 10:26:26 AM.

Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\cmTC_1ce44.vcxproj" on node 1 (default targets).

PrepareForBuild:

Creating directory "cmTC_1ce44.dir\Debug".

Creating directory "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug".

Creating directory "cmTC_1ce44.dir\Debug\cmTC_1ce44.tlog".

InitializeBuildStatus:

Creating "cmTC_1ce44.dir\Debug\cmTC_1ce44.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_1ce44.dir\Debug\" /Fd"cmTC_1ce44.dir\Debug\vc140.pdb" /Gd /TP /errorReport:queue "C:\azure-iot-gateway-sdk\build\CMakeFiles\feature_tests.cxx"

Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_1ce44.dir\Debug\" /Fd"cmTC_1ce44.dir\Debug\vc140.pdb" /Gd /TP /errorReport:queue "C:\azure-iot-gateway-sdk\build\CMakeFiles\feature_tests.cxx"

feature_tests.cxx

Link:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug\cmTC_1ce44.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp/Debug/cmTC_1ce44.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp/Debug/cmTC_1ce44.lib" /MACHINE:X64 /machine:x64 cmTC_1ce44.dir\Debug\feature_tests.obj

cmTC_1ce44.vcxproj -> C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug\cmTC_1ce44.exe

FinalizeBuildStatus:

Deleting file "cmTC_1ce44.dir\Debug\cmTC_1ce44.tlog\unsuccessfulbuild".

Touching "cmTC_1ce44.dir\Debug\cmTC_1ce44.tlog\cmTC_1ce44.lastbuildstate".

Done Building Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\cmTC_1ce44.vcxproj" (default targets).

Build succeeded.

0 Warning(s)

0 Error(s)

Time Elapsed 00:00:01.90

Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers
Feature record: CXX_FEATURE:1cxx_alias_templates
Feature record: CXX_FEATURE:1cxx_alignas
Feature record: CXX_FEATURE:1cxx_alignof
Feature record: CXX_FEATURE:1cxx_attributes
Feature record: CXX_FEATURE:1cxx_attribute_deprecated
Feature record: CXX_FEATURE:1cxx_auto_type
Feature record: CXX_FEATURE:1cxx_binary_literals
Feature record: CXX_FEATURE:1cxx_constexpr
Feature record: CXX_FEATURE:1cxx_contextual_conversions
Feature record: CXX_FEATURE:1cxx_decltype
Feature record: CXX_FEATURE:1cxx_decltype_auto
Feature record: CXX_FEATURE:1cxx_default_function_template_args
Feature record: CXX_FEATURE:1cxx_defaulted_functions
Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers
Feature record: CXX_FEATURE:1cxx_delegating_constructors
Feature record: CXX_FEATURE:1cxx_deleted_functions
Feature record: CXX_FEATURE:1cxx_digit_separators
Feature record: CXX_FEATURE:1cxx_enum_forward_declarations
Feature record: CXX_FEATURE:1cxx_explicit_conversions
Feature record: CXX_FEATURE:1cxx_extended_friend_declarations
Feature record: CXX_FEATURE:1cxx_extern_templates
Feature record: CXX_FEATURE:1cxx_final
Feature record: CXX_FEATURE:1cxx_func_identifier
Feature record: CXX_FEATURE:1cxx_generalized_initializers
Feature record: CXX_FEATURE:1cxx_generic_lambdas
Feature record: CXX_FEATURE:1cxx_inheriting_constructors
Feature record: CXX_FEATURE:1cxx_inline_namespaces
Feature record: CXX_FEATURE:1cxx_lambdas
Feature record: CXX_FEATURE:1cxx_lambda_init_captures
Feature record: CXX_FEATURE:1cxx_local_type_template_args
Feature record: CXX_FEATURE:1cxx_long_long_type
Feature record: CXX_FEATURE:1cxx_noexcept
Feature record: CXX_FEATURE:1cxx_nonstatic_member_init
Feature record: CXX_FEATURE:1cxx_nullptr
Feature record: CXX_FEATURE:1cxx_override
Feature record: CXX_FEATURE:1cxx_range_for
Feature record: CXX_FEATURE:1cxx_raw_string_literals
Feature record: CXX_FEATURE:1cxx_reference_qualified_functions
Feature record: CXX_FEATURE:1cxx_return_type_deduction
Feature record: CXX_FEATURE:1cxx_right_angle_brackets
Feature record: CXX_FEATURE:1cxx_rvalue_references
Feature record: CXX_FEATURE:1cxx_sizeof_member
Feature record: CXX_FEATURE:1cxx_static_assert
Feature record: CXX_FEATURE:1cxx_strong_enums
Feature record: CXX_FEATURE:1cxx_template_template_parameters
Feature record: CXX_FEATURE:1cxx_thread_local
Feature record: CXX_FEATURE:1cxx_trailing_return_types
Feature record: CXX_FEATURE:1cxx_unicode_literals
Feature record: CXX_FEATURE:1cxx_uniform_initialization
Feature record: CXX_FEATURE:1cxx_unrestricted_unions
Feature record: CXX_FEATURE:1cxx_user_literals
Feature record: CXX_FEATURE:1cxx_variable_templates
Feature record: CXX_FEATURE:1cxx_variadic_macros
Feature record: CXX_FEATURE:1cxx_variadic_templates

Determining if the _M_AMD64 exist passed with the following output:
Change Dir: C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe" "cmTC_1c5a7.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=14.0"
Microsoft (R) Build Engine version 14.0.25420.1

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/12/2016 10:26:31 AM.

Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\cmTC_1c5a7.vcxproj" on node 1 (default targets).

PrepareForBuild:

Creating directory "cmTC_1c5a7.dir\Debug".

Creating directory "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug".

Creating directory "cmTC_1c5a7.dir\Debug\cmTC_1c5a7.tlog".

InitializeBuildStatus:

Creating "cmTC_1c5a7.dir\Debug\cmTC_1c5a7.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_1c5a7.dir\Debug\" /Fd"cmTC_1c5a7.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\CheckSymbolExists.c"

Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64

Copyright (C) Microsoft Corporation. All rights reserved.

cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_1c5a7.dir\Debug\" /Fd"cmTC_1c5a7.dir\Debug\vc140.pdb" /Gd /TC /errorReport:queue "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\CheckSymbolExists.c"

CheckSymbolExists.c

Link:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug\cmTC_1c5a7.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp/Debug/cmTC_1c5a7.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp/Debug/cmTC_1c5a7.lib" /MACHINE:X64 /machine:x64 cmTC_1c5a7.dir\Debug\CheckSymbolExists.obj

cmTC_1c5a7.vcxproj -> C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\Debug\cmTC_1c5a7.exe

FinalizeBuildStatus:

Deleting file "cmTC_1c5a7.dir\Debug\cmTC_1c5a7.tlog\unsuccessfulbuild".

Touching "cmTC_1c5a7.dir\Debug\cmTC_1c5a7.tlog\cmTC_1c5a7.lastbuildstate".

Done Building Project "C:\azure-iot-gateway-sdk\build\CMakeFiles\CMakeTmp\cmTC_1c5a7.vcxproj" (default targets).

Build succeeded.

0 Warning(s)

0 Error(s)

Time Elapsed 00:00:04.03

File C:/azure-iot-gateway-sdk/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */

int main(int argc, char** argv)
{
(void)argv;
#ifndef _M_AMD64
return ((int*)(&_M_AMD64))[argc];
#else
(void)argc;
return 0;
#endif
}

`

@damonbarry
Copy link
Member

Can you provide the contents of C:\azure-iot-gateway-sdk\deps\c-utility\build\CMakeFiles\CMakeError.log?

@vvenus
Copy link
Author

vvenus commented Dec 13, 2016

There is no CMakeError.log. I believe the reason is that this is a configuration error instead of build error. image

@damonbarry
Copy link
Member

Makes sense.

I've not been able to reproduce this. Also our CI server runs a 64-bit Windows build on every check-in. So we'll need to get some more details about your environment to figure this out.

Was this a build on a fresh clone of the SDK? Have you ever built the SDK on this particular PC/environment before? Also, were you building the master branch (even better, what's the HEAD commit)?

My guess would be some stale bits hanging around from a previous build. I'd love to figure this out so the build "just works" in all kinds of situations.

@vvenus
Copy link
Author

vvenus commented Dec 13, 2016

Thanks for the guide. I tried again with a fresh clone. The same error happened. There is one more clue I noticed may worth looking into. There was a missing file reported before the build started (no clue what the file is). See cmd output below.

C:\azure-iot-gateway-sdk>tools\build.cmd --platform x64 --skip-unittests --enabl
e-dotnet-binding
Cleaning up build artifacts...
The system cannot find the file specified.
Running CMAKE for Win64
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1

@andrew-buckley
Copy link
Contributor

Hi @vvenus, can you also paste the contents of /deps/c-utility/build/output.txt and /deps/c-utility/build/error.txt

@vvenus
Copy link
Author

vvenus commented Dec 13, 2016 via email

@andrew-buckley
Copy link
Contributor

It looks like the end of the file was truncated. You can attach the entire file by using the GitHub comment section and dragging and dropping the file in.

@vvenus
Copy link
Author

vvenus commented Dec 13, 2016

output.txt

@damonbarry
Copy link
Member

I think this is the source of the error:

    18>C:\azure-iot-gateway-sdk\deps\c-utility\inc\azure_c_shared_utility/xlogging.h : error C2220: warning treated as error - no 'object' file generated [C:\azure-iot-gateway-sdk\deps\c-utility\build\tests\condition_ut\condition_ut_testsonly_lib.vcxproj]
    18>C:\azure-iot-gateway-sdk\deps\c-utility\inc\azure_c_shared_utility/xlogging.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss [C:\azure-iot-gateway-sdk\deps\c-utility\build\tests\condition_ut\condition_ut_testsonly_lib.vcxproj]

Some unicode chars snuck into xlogging.h, and your compiler chokes on them because you're using a Simplified Chinese code page (936).

We'll need to get this fixed in Azure/azure-c-shared-utility. In the meantime, you could save the file as UTF-8 (or remove the unicode characters) and recompile.

@vvenus
Copy link
Author

vvenus commented Dec 13, 2016 via email

@vvenus
Copy link
Author

vvenus commented Dec 15, 2016

Hello @damonbarry
Similar error happens when installing the UAMQP module. A couple of files have Unicode. I am attaching the C:\azure-iot-gateway-sdk\deps\uamqp\build\output.txt so you guys can help fix.
output.txt

@damonbarry
Copy link
Member

@vvenus thanks. I'm making a pass through the various repos right now to remove unicode chars like this.

@damonbarry
Copy link
Member

FYI, I just pushed the following commits into the develop branches of dependent repos:

azure-c-shared-utility: 3ca0dce
azure-uamqp-c: 8204e12
azure-iot-sdk-c: 6e44254

...but we still need to update this repo to point to the changes.

@plillevold
Copy link

@damonbarry any timeframe on when the repo will be updated with the mentioned fixes? imho, master is currently broken because of this.

@damonbarry
Copy link
Member

@plillevold to clarify, master is broken in certain environments, and there are workarounds.

The fixes are committed into dependent repos as noted above, but those commits aren't yet part of any official release in their respective repos, so our master branch can't point to them yet (in our master branch, we only want to depend upon official releases of other components). So there's a rather heavy coordination tax to pay right now, but we intend to simplify that "dance" dramatically over time.

RE timeframe: our repo and the Azure repos we depend upon are on a 2-week release cadence. The next release would fall on 12/30, but with the holiday season I don't believe it will happen at that time. I would expect it to happen the following week (first week of January). azure-iot-sdk-c is the dependency with the most complex release process right now, so that's the gating factor. Once we have a release of azure-iot-sdk-c which contains 6e44254, the rest should fall into place shortly thereafter.

@damonbarry
Copy link
Member

Fix is in master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants