Build source code error:Index was outside the bounds of the array.
-
wrote on 25 May 2018, 02:54 last edited by liuxin
Sorry for having to ask a question once a time.
I build source code qt5 with vs2017 win10 64 and get error in MSBuild_failure.txt in temp folder.1> cd generic\ && ( if not exist Makefile D:\Project\FAST-master\Build\external\qt5\qtbase\bin\qmake.exe -o Makefile D:\Project\FAST-master\Build\external\qt5\src\qt5\qtbase\src\plugins\bearer\generic\generic.pro ) && "D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f Makefile
1> "D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f Makefile.Release
1> cl -BxD:\Project\FAST-master\Build\external\qt5\qtbase\bin\qmake.exe -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -O2 -MD -utf-8 /wd4530 /wd4577 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E D:\Project\FAST-master\Build\external\qt5\src\qt5\qtbase\mkspecs\features\data\dummy.cpp 2>NUL >.moc\release\moc_predefs.h
1> D:\Project\FAST-master\Build\external\qt5\qtbase\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -DNDEBUG -D_WINDLL --compiler-flavor=msvc --include .moc/release/moc_predefs.h -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/mkspecs/win32-msvc -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/src/plugins/bearer/generic -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtNetwork/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtNetwork/5.10.1/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtNetwork/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtNetwork/5.10.1/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtCore/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtCore/5.10.1/QtCore -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtCore/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtCore/5.10.1/QtCore -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/qtbase/include -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtCore -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtCore -I. -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include" -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\atlmfc\include" -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\VS\include" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt" -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\VS\UnitTest\include" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\um" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\winrt" -IInclude\um D:\Project\FAST-master\Build\external\qt5\src\qt5\qtbase\src\plugins\bearer\qnetworksession_impl.cpp -o .moc\release\qnetworksession_impl.moc
1> D:\Project\FAST-master\Build\external\qt5\qtbase\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -DNDEBUG -D_WINDLL --compiler-flavor=msvc --include .moc/release/moc_predefs.h -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/mkspecs/win32-msvc -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/src/plugins/bearer/generic -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtNetwork/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtNetwork/5.10.1/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtNetwork/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtNetwork/5.10.1/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtCore/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtCore/5.10.1/QtCore -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtCore/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtCore/5.10.1/QtCore -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/qtbase/include -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtCore -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtCore -I. -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include" -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\atlmfc\include" -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\VS\include" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt" -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\VS\UnitTest\include" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\um" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\winrt" -IInclude\um D:\Project\FAST-master\Build\external\qt5\src\qt5\qtbase\src\plugins\bearer\generic\main.cpp -o .moc\release\main.moc
1>MSBUILD : error MSB4166:
MSBUILD: error MSB4166: Child node "2" prematurely exited. Closing. You can find the diagnostic information in the file named MSBuild _ *. Failure.txt in the temporary file directory.And I found the error in MSBuild_39ebf552-cb19-4a8b-a728-d7d5dd58cf82.failure.txt:
UNHANDLED EXCEPTIONS FROM PROCESS 16956:
2018/5/23 14:13:02
System.IndexOutOfRangeException: Index was outside the bounds of the array.。
在 System.Text.StringBuilder.get_Chars(Int32 index)
在 System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
在 System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
在 System.IO.Stream.ReadWriteTask.InvokeAsyncCallback(Object completedTask)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
在 System.Threading.Tasks.Task.FinishContinuations()
在 System.Threading.Tasks.Task.FinishStageThree()
在 System.Threading.Tasks.Task.FinishStageTwo()
在 System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
在 System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
在 System.Threading.ThreadPoolWorkQueue.Dispatch()
在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
2018/5/23 14:13:02
System.IndexOutOfRangeException: 索引超出了数组界限。
在 System.Text.StringBuilder.get_Chars(Int32 index)
在 System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
在 System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
在 System.IO.Stream.ReadWriteTask.InvokeAsyncCallback(Object completedTask)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
在 System.Threading.Tasks.Task.FinishContinuations()
在 System.Threading.Tasks.Task.FinishStageThree()
在 System.Threading.Tasks.Task.FinishStageTwo()
在 System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
在 System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
在 System.Threading.ThreadPoolWorkQueue.Dispatch()
在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
2018/5/23 14:13:02
System.IndexOutOfRangeException: 索引超出了数组界限。
在 System.Text.StringBuilder.get_Chars(Int32 index)
在 System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
在 System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
在 System.IO.Stream.ReadWriteTask.InvokeAsyncCallback(Object completedTask)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
在 System.Threading.Tasks.Task.FinishContinuations()
在 System.Threading.Tasks.Task.FinishStageThree()
在 System.Threading.Tasks.Task.FinishStageTwo()
在 System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
在 System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
在 System.Threading.ThreadPoolWorkQueue.Dispatch()
在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
2018/5/23 14:13:02
System.IndexOutOfRangeException: 索引超出了数组界限。
在 System.Text.StringBuilder.get_Chars(Int32 index)
在 System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
在 System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
在 System.IO.Stream.ReadWriteTask.InvokeAsyncCallback(Object completedTask)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
在 System.Threading.Tasks.Task.FinishContinuations()
在 System.Threading.Tasks.Task.FinishStageThree()
在 System.Threading.Tasks.Task.FinishStageTwo()
在 System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
在 System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
在 System.Threading.ThreadPoolWorkQueue.Dispatch()
在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
2018/5/23 14:13:02
System.IndexOutOfRangeException: 索引超出了数组界限。
在 System.Text.StringBuilder.get_Chars(Int32 index)
在 System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
在 System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
在 System.IO.Stream.ReadWriteTask.InvokeAsyncCallback(Object completedTask)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
在 System.Threading.Tasks.Task.FinishContinuations()
在 System.Threading.Tasks.Task.FinishStageThree()
在 System.Threading.Tasks.Task.FinishStageTwo()
在 System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
在 System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
在 System.Threading.ThreadPoolWorkQueue.Dispatch()
在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
2018/5/23 14:13:02
System.IndexOutOfRangeException: 索引超出了数组界限。
在 System.Text.StringBuilder.get_Chars(Int32 index)
在 System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
在 System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
在 System.IO.Stream.ReadWriteTask.InvokeAsyncCallback(Object completedTask)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
在 System.Threading.Tasks.Task.FinishContinuations()
在 System.Threading.Tasks.Task.FinishStageThree()
在 System.Threading.Tasks.Task.FinishStageTwo()
在 System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
在 System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
在 System.Threading.ThreadPoolWorkQueue.Dispatch()
在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() -
wrote on 27 May 2018, 16:15 last edited by liuxin
The compile console is:
cd qtbase
1>+ D:\Project\FAST-master\Build\external\qt5\src\qt5\qtbase\configure.bat -top-level -prefix D:/Project/FAST-master/Build -opensource -confirm-license -release -no-compile-examples -no-openssl -no-libproxy -no-qml-debug -nomake tools -nomake tests -opengl desktop -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtdocgallery -skip qtenginio -skip qtfeedback -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtnetworkauth -skip qtpim -skip qtpurchasing -skip qtqa -skip qtquick1 -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtrepotools -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qtsystems -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns
1>Bootstrapping qmake ...
1>Configure summary:
1>
1>Build type: win32-msvc (x86_64, CPU features: sse sse2)
1>Configuration: sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 f16c largefile precompile_header rdrnd shani shared release c++11 concurrent dbus no-pkg-config no-qml-debug stl
1>Build options:
1> Mode ................................... release
1> Optimize release build for size ........ no
1> Building shared libraries .............. yes
1> Using C++ standard ..................... C++11
1> Using gold linker ...................... no
1> Using precompiled headers .............. yes
1> Using LTCG ............................. no
1> Target compiler supports:
1> SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2
1> AVX .................................. AVX AVX2
1> AVX512 ............................... <none>
1> Other x86 ............................ AES F16C RDRAND SHA
1> Build parts ............................ libs examples
1> App store compliance ................... no
1>Qt modules and options:
1> Qt Concurrent .......................... yes
1> Qt D-Bus ............................... yes
1> Qt D-Bus directly linked to libdbus .... no
1> Qt Gui ................................. yes
1> Qt Network ............................. yes
1> Qt Sql ................................. yes
1> Qt Testlib ............................. yes
1> Qt Widgets ............................. yes
1> Qt Xml ................................. yes
1>Support enabled for:
1> Using pkg-config ....................... no
1> QML debugging .......................... no
1> udev ................................... no
1> Using system zlib ...................... no
1>Qt Core:
1> DoubleConversion ....................... yes
1> Using system DoubleConversion ........ no
1> GLib ................................... no
1> iconv .................................. no
1> ICU .................................... no
1> Logging backends:
1> journald ............................. no
1> syslog ............................... no
1> slog2 ................................ no
1> Using system PCRE2 ..................... no
1>Qt Network:
1> getifaddrs() ........................... no
1> IPv6 ifname ............................ no
1> libproxy ............................... no
1> OpenSSL ................................ no
1> Qt directly linked to OpenSSL ........ no
1> SCTP ................................... no
1> Use system proxies ..................... yes
1>Qt Gui:
1> Accessibility .......................... yes
1> FreeType ............................... yes
1> Using system FreeType ................ no
1> HarfBuzz ............................... yes
1> Using system HarfBuzz ................ no
1> Fontconfig ............................. no
1> Image formats:
1> GIF .................................. yes
1> ICO .................................. yes
1> JPEG ................................. yes
1> Using system libjpeg ............... no
1> PNG .................................. yes
1> Using system libpng ................ no
1> EGL .................................... no
1> OpenVG ................................. no
1> OpenGL:
1> ANGLE ................................ no
1> Desktop OpenGL ....................... yes
1> Dynamic OpenGL ....................... no
1> OpenGL ES 2.0 ........................ no
1> OpenGL ES 3.0 ........................ no
1> OpenGL ES 3.1 ........................ no
1> OpenGL ES 3.2 ........................ no
1> Vulkan ................................. no
1> Session Management ..................... yes
1>Features used by QPA backends:
1> evdev .................................. no
1> libinput ............................... no
1> INTEGRITY HID .......................... no
1> mtdev .................................. no
1> tslib .................................. no
1> xkbcommon-evdev ........................ no
1>QPA backends:
1> DirectFB ............................... no
1> EGLFS .................................. no
1> LinuxFB ................................ no
1> VNC .................................... no
1> Mir client ............................. no
1> Windows:
1> Direct 2D ............................ yes
1> DirectWrite .......................... yes
1> DirectWrite 2 ........................ yes
1>Qt Widgets:
1> GTK+ ................................... no
1> Styles ................................. Fusion Windows WindowsVista
1>Qt PrintSupport:
1> CUPS ................................... no
1>Qt Sql:
1> DB2 (IBM) .............................. no
1> InterBase .............................. no
1> MySql .................................. no
1> OCI (Oracle) ........................... no
1> ODBC ................................... yes
1> PostgreSQL ............................. no
1> SQLite2 ................................ no
1> SQLite ................................. yes
1> Using system provided SQLite ......... no
1> TDS (Sybase) ........................... no
1>Qt Multimedia:
1> ALSA ................................... no
1> GStreamer 1.0 .......................... no
1> GStreamer 0.10 ......................... no
1> Video for Linux ........................ no
1> OpenAL ................................. no
1> PulseAudio ............................. no
1> Resource Policy (libresourceqt5) ....... no
1> Windows Audio Services ................. yes
1> DirectShow ............................. yes
1> Windows Media Foundation ............... yes
1> Media player backend ................... DirectShow
1>
1>Qt is now configured for building. Just run 'nmake'.
1>Once everything is built, you must run 'nmake install'.
1>Qt will be installed into 'D:\Project\FAST-master\Build'.
1>
1>Prior to reconfiguration, make sure you remove any leftovers from
1>the previous build.
1>
1>Performing build step for 'qt5' -
wrote on 28 May 2018, 01:02 last edited byThis post is deleted!
-
wrote on 1 Jun 2018, 11:49 last edited by
Maybe this is caused by MSbuild Multi-processor Compilation. But It still has the same problem when I use no Multi-processor Compilation.
-
Sorry for having to ask a question once a time.
I build source code qt5 with vs2017 win10 64 and get error in MSBuild_failure.txt in temp folder.1> cd generic\ && ( if not exist Makefile D:\Project\FAST-master\Build\external\qt5\qtbase\bin\qmake.exe -o Makefile D:\Project\FAST-master\Build\external\qt5\src\qt5\qtbase\src\plugins\bearer\generic\generic.pro ) && "D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f Makefile
1> "D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe" -f Makefile.Release
1> cl -BxD:\Project\FAST-master\Build\external\qt5\qtbase\bin\qmake.exe -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -O2 -MD -utf-8 /wd4530 /wd4577 -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -E D:\Project\FAST-master\Build\external\qt5\src\qt5\qtbase\mkspecs\features\data\dummy.cpp 2>NUL >.moc\release\moc_predefs.h
1> D:\Project\FAST-master\Build\external\qt5\qtbase\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -DNDEBUG -D_WINDLL --compiler-flavor=msvc --include .moc/release/moc_predefs.h -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/mkspecs/win32-msvc -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/src/plugins/bearer/generic -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtNetwork/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtNetwork/5.10.1/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtNetwork/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtNetwork/5.10.1/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtCore/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtCore/5.10.1/QtCore -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtCore/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtCore/5.10.1/QtCore -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/qtbase/include -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtCore -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtCore -I. -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include" -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\atlmfc\include" -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\VS\include" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt" -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\VS\UnitTest\include" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\um" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\winrt" -IInclude\um D:\Project\FAST-master\Build\external\qt5\src\qt5\qtbase\src\plugins\bearer\qnetworksession_impl.cpp -o .moc\release\qnetworksession_impl.moc
1> D:\Project\FAST-master\Build\external\qt5\qtbase\bin\moc.exe -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_NETWORK_LIB -DQT_CORE_LIB -DNDEBUG -D_WINDLL --compiler-flavor=msvc --include .moc/release/moc_predefs.h -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/mkspecs/win32-msvc -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/src/plugins/bearer/generic -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtNetwork/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtNetwork/5.10.1/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtNetwork/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtNetwork/5.10.1/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtCore/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtCore/5.10.1/QtCore -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtCore/5.10.1 -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtCore/5.10.1/QtCore -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/qtbase/include -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtNetwork -ID:/Project/FAST-master/Build/external/qt5/src/qt5/qtbase/include/QtCore -ID:/Project/FAST-master/Build/external/qt5/qtbase/include/QtCore -I. -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include" -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\atlmfc\include" -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\VS\include" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\ucrt" -I"D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\VS\UnitTest\include" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\um" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\winrt" -IInclude\um D:\Project\FAST-master\Build\external\qt5\src\qt5\qtbase\src\plugins\bearer\generic\main.cpp -o .moc\release\main.moc
1>MSBUILD : error MSB4166:
MSBUILD: error MSB4166: Child node "2" prematurely exited. Closing. You can find the diagnostic information in the file named MSBuild _ *. Failure.txt in the temporary file directory.And I found the error in MSBuild_39ebf552-cb19-4a8b-a728-d7d5dd58cf82.failure.txt:
UNHANDLED EXCEPTIONS FROM PROCESS 16956:
2018/5/23 14:13:02
System.IndexOutOfRangeException: Index was outside the bounds of the array.。
在 System.Text.StringBuilder.get_Chars(Int32 index)
在 System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
在 System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
在 System.IO.Stream.ReadWriteTask.InvokeAsyncCallback(Object completedTask)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
在 System.Threading.Tasks.Task.FinishContinuations()
在 System.Threading.Tasks.Task.FinishStageThree()
在 System.Threading.Tasks.Task.FinishStageTwo()
在 System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
在 System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
在 System.Threading.ThreadPoolWorkQueue.Dispatch()
在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
2018/5/23 14:13:02
System.IndexOutOfRangeException: 索引超出了数组界限。
在 System.Text.StringBuilder.get_Chars(Int32 index)
在 System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
在 System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
在 System.IO.Stream.ReadWriteTask.InvokeAsyncCallback(Object completedTask)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
在 System.Threading.Tasks.Task.FinishContinuations()
在 System.Threading.Tasks.Task.FinishStageThree()
在 System.Threading.Tasks.Task.FinishStageTwo()
在 System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
在 System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
在 System.Threading.ThreadPoolWorkQueue.Dispatch()
在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
2018/5/23 14:13:02
System.IndexOutOfRangeException: 索引超出了数组界限。
在 System.Text.StringBuilder.get_Chars(Int32 index)
在 System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
在 System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
在 System.IO.Stream.ReadWriteTask.InvokeAsyncCallback(Object completedTask)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
在 System.Threading.Tasks.Task.FinishContinuations()
在 System.Threading.Tasks.Task.FinishStageThree()
在 System.Threading.Tasks.Task.FinishStageTwo()
在 System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
在 System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
在 System.Threading.ThreadPoolWorkQueue.Dispatch()
在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
2018/5/23 14:13:02
System.IndexOutOfRangeException: 索引超出了数组界限。
在 System.Text.StringBuilder.get_Chars(Int32 index)
在 System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
在 System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
在 System.IO.Stream.ReadWriteTask.InvokeAsyncCallback(Object completedTask)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
在 System.Threading.Tasks.Task.FinishContinuations()
在 System.Threading.Tasks.Task.FinishStageThree()
在 System.Threading.Tasks.Task.FinishStageTwo()
在 System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
在 System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
在 System.Threading.ThreadPoolWorkQueue.Dispatch()
在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
2018/5/23 14:13:02
System.IndexOutOfRangeException: 索引超出了数组界限。
在 System.Text.StringBuilder.get_Chars(Int32 index)
在 System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
在 System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
在 System.IO.Stream.ReadWriteTask.InvokeAsyncCallback(Object completedTask)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
在 System.Threading.Tasks.Task.FinishContinuations()
在 System.Threading.Tasks.Task.FinishStageThree()
在 System.Threading.Tasks.Task.FinishStageTwo()
在 System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
在 System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
在 System.Threading.ThreadPoolWorkQueue.Dispatch()
在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
2018/5/23 14:13:02
System.IndexOutOfRangeException: 索引超出了数组界限。
在 System.Text.StringBuilder.get_Chars(Int32 index)
在 System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
在 System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
在 System.IO.Stream.ReadWriteTask.InvokeAsyncCallback(Object completedTask)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.IO.Stream.ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask)
在 System.Threading.Tasks.Task.FinishContinuations()
在 System.Threading.Tasks.Task.FinishStageThree()
在 System.Threading.Tasks.Task.FinishStageTwo()
在 System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted)
在 System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
在 System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
在 System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
在 System.Threading.ThreadPoolWorkQueue.Dispatch()
在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()@liuxin said in Build source code error:Index was outside the bounds of the array.:
MSBUILD: error MSB4166: Child node "2" prematurely exited. Closing. You can find the diagnostic information in the file named MSBuild _ *. Failure.txt in the temporary file directory.
And I found the error in MSBuild_39ebf552-cb19-4a8b-a728-d7d5dd58cf82.failure.txt:
UNHANDLED EXCEPTIONS FROM PROCESS 16956:
2018/5/23 14:13:02
System.IndexOutOfRangeException: Index was outside the bounds of the array.。The problem is in MSBuild, not Qt code. I think you'll need to ask Microsoft engineers on how to handle it.
(This is probably not related to your problem, but it shows a bug in Visual Studio which makes it unable to compile Qt code: https://developercommunity.visualstudio.com/content/problem/76198/vs-2017-compiler-creates-broken-debug-build-using.html )
You can also try these, but I don't know what will work and what won't:
- Re-install your Microsoft tools
- Upgrade your Microsoft tools to the latest version
- Downgrade your Microsoft tools to an older version (for example, Visual Studio 2015)
- Try to build the code on a different computer
1/5