autogen: Windows Long Path issue for RelWithDebInfo config
Compiling Qt6 origin/6.1
, config
configure.bat -opensource -confirm-license -prefix z:\install\6.1.1-windows-x86_64-msvc2019 -platform win32-msvc -make-tool cmake -mp -pch -ltcg -debug-and-release -force-debug-info -no-warnings-are-errors -nomake examples -nomake tests
Have got the error
FAILED: qtbase/src/plugins/networkinformationbackends/networklistmanager/CMakeFiles/QNetworkListManagerNetworkInformationBackend.dir/RelWithDebInfo/QNetworkListManagerNetworkInformationBackend_autogen/mocs_compilation_RelWithDebInfo.cpp.obj
C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe /nologo /TP -DQNetworkListManagerNetworkInformationBackend_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -DCMAKE_INTDIR=\"RelWithDebInfo\" -Iqtbase\src\plugins\networkinformationbackends\networklistmanager\QNetworkListManagerNetworkInformationBackend_autogen\include_RelWithDebInfo -IZ:\src\qtbase\src\plugins\networkinformationbackends\networklistmanager -Iqtbase\src\plugins\networkinformationbackends\networklistmanager -Iqtbase\include -Iqtbase\src\network -Iqtbase\include\QtNetwork\6.1.1 -Iqtbase\include\QtNetwork\6.1.1\QtNetwork -Iqtbase\src\corelib -Iqtbase\include\QtCore\6.1.1 -Iqtbase\include\QtCore\6.1.1\QtCore -Iqtbase\include\QtCore -IZ:\src\qtbase\mkspecs\win32-msvc -Iqtbase\include\QtNetwork -IC:\Dev\Tools\Perl\c\include /DWIN32 /D_WINDOWS /GR /Zi /DNDEBUG -O2 -MD /GL /W3 /wd4530 /wd4577 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:externConstexpr -Zc:wchar_t -guard:cf -std:c++17 /showIncludes /Foqtbase\src\plugins\networkinformationbackends\networklistmanager\CMakeFiles\QNetworkListManagerNetworkInformationBackend.dir\RelWithDebInfo\QNetworkListManagerNetworkInformationBackend_autogen\mocs_compilation_RelWithDebInfo.cpp.obj /Fdqtbase\src\plugins\networkinformationbackends\networklistmanager\CMakeFiles\QNetworkListManagerNetworkInformationBackend.dir\RelWithDebInfo\ /FS -c qtbase\src\plugins\networkinformationbackends\networklistmanager\QNetworkListManagerNetworkInformationBackend_autogen\mocs_compilation_RelWithDebInfo.cpp
z:\build\6.1.1-windows-x86_64-msvc2019\qtbase\src\plugins\networkinformationbackends\networklistmanager\QNetworkListManagerNetworkInformationBackend_autogen\mocs_compilation_RelWithDebInfo.cpp : fatal error C1083: Cannot open compiler generated file: '': Invalid argument
Copying mocs_compilation_RelWithDebInfo.cpp
to the build root (i.e. z:\build\6.1.1-windows-x86_64-msvc2019
), changing the param /Fo...
to /Fomocs_compilation_RelWithDebInfo.cpp.obj
, and launching
cl.exe /nologo /TP -DQNetworkListManagerNetworkInformationBackend_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -DCMAKE_INTDIR=\"RelWithDebInfo\" -Iqtbase\src\plugins\networkinformationbackends\networklistmanager\QNetworkListManagerNetworkInformationBackend_autogen\include_RelWithDebInfo -IZ:\src\qtbase\src\plugins\networkinformationbackends\networklistmanager -Iqtbase\src\plugins\networkinformationbackends\networklistmanager -Iqtbase\include -Iqtbase\src\network -Iqtbase\include\QtNetwork\6.1.1 -Iqtbase\include\QtNetwork\6.1.1\QtNetwork -Iqtbase\src\corelib -Iqtbase\include\QtCore\6.1.1 -Iqtbase\include\QtCore\6.1.1\QtCore -Iqtbase\include\QtCore -IZ:\src\qtbase\mkspecs\win32-msvc -Iqtbase\include\QtNetwork -IC:\Dev\Tools\Perl\c\include /DWIN32 /D_WINDOWS /GR /Zi /DNDEBUG -O2 -MD /GL /W3 /wd4530 /wd4577 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:externConstexpr -Zc:wchar_t -guard:cf -std:c++17 /showIncludes /Fomocs_compilation_RelWithDebInfo.cpp.obj /Fdqtbase\src\plugins\networkinformationbackends\networklistmanager\CMakeFiles\QNetworkListManagerNetworkInformationBackend.dir\RelWithDebInfo\ /FS -c qtbase\src\plugins\networkinformationbackends\networklistmanager\QNetworkListManagerNetworkInformationBackend_autogen\mocs_compilation_RelWithDebInfo.cpp
No, errors.
The RelWidthDebInfo command (from .ninja)
build qtbase\src\plugins\networkinformationbackends\networklistmanager\CMakeFiles\QNetworkListManagerNetworkInformationBackend.dir\RelWithDebInfo\QNetworkListManagerNetworkInformationBackend_autogen\mocs_compilation_RelWithDebInfo.cpp.obj: CXX_COMPILER__QNetworkListManagerNetworkInformationBackend_RelWithDebInfo qtbase\src\plugins\networkinformationbackends\networklistmanager\QNetworkListManagerNetworkInformationBackend_autogen\mocs_compilation_RelWithDebInfo.cpp || cmake_object_order_depends_target_QNetworkListManagerNetworkInformationBackend_RELWITHDEBINFO
DEFINES = -DQNetworkListManagerNetworkInformationBackend_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -DCMAKE_INTDIR=\"RelWithDebInfo\"
FLAGS = /DWIN32 /D_WINDOWS /GR /Zi /DNDEBUG -O2 -MD /GL /W3 /wd4530 /wd4577 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:externConstexpr -Zc:wchar_t -guard:cf -std:c++17
INCLUDES = -Iqtbase\src\plugins\networkinformationbackends\networklistmanager\QNetworkListManagerNetworkInformationBackend_autogen\include_RelWithDebInfo -IZ:\src\qtbase\src\plugins\networkinformationbackends\networklistmanager -Iqtbase\src\plugins\networkinformationbackends\networklistmanager -Iqtbase\include -Iqtbase\src\network -Iqtbase\include\QtNetwork\6.1.1 -Iqtbase\include\QtNetwork\6.1.1\QtNetwork -Iqtbase\src\corelib -Iqtbase\include\QtCore\6.1.1 -Iqtbase\include\QtCore\6.1.1\QtCore -Iqtbase\include\QtCore -IZ:\src\qtbase\mkspecs\win32-msvc -Iqtbase\include\QtNetwork -IC:\Dev\Tools\Perl\c\include
OBJECT_DIR = qtbase\src\plugins\networkinformationbackends\networklistmanager\CMakeFiles\QNetworkListManagerNetworkInformationBackend.dir\RelWithDebInfo
OBJECT_FILE_DIR = qtbase\src\plugins\networkinformationbackends\networklistmanager\CMakeFiles\QNetworkListManagerNetworkInformationBackend.dir\RelWithDebInfo\QNetworkListManagerNetworkInformationBackend_autogen
TARGET_COMPILE_PDB = qtbase\src\plugins\networkinformationbackends\networklistmanager\CMakeFiles\QNetworkListManagerNetworkInformationBackend.dir\RelWithDebInfo\
TARGET_PDB = qtbase\plugins\networkinformationbackends\networklistmanagernetworkinformationbackend.pdb
The same command for Debug config (complies OK)
build qtbase\src\plugins\networkinformationbackends\networklistmanager\CMakeFiles\QNetworkListManagerNetworkInformationBackend.dir\Debug\aa4a863ea61b6023e8bc1afef8895156\mocs_compilation_Debug.cpp.obj: CXX_COMPILER__QNetworkListManagerNetworkInformationBackend_Debug qtbase\src\plugins\networkinformationbackends\networklistmanager\QNetworkListManagerNetworkInformationBackend_autogen\mocs_compilation_Debug.cpp || cmake_object_order_depends_target_QNetworkListManagerNetworkInformationBackend_DEBUG
DEFINES = -DQNetworkListManagerNetworkInformationBackend_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NETWORK_LIB -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -DCMAKE_INTDIR=\"Debug\"
FLAGS = /DWIN32 /D_WINDOWS /GR /Zi /RTC1 -MDd /W3 /wd4530 /wd4577 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:externConstexpr -Zc:wchar_t -std:c++17
INCLUDES = -Iqtbase\src\plugins\networkinformationbackends\networklistmanager\QNetworkListManagerNetworkInformationBackend_autogen\include_Debug -IZ:\src\qtbase\src\plugins\networkinformationbackends\networklistmanager -Iqtbase\src\plugins\networkinformationbackends\networklistmanager -Iqtbase\include -Iqtbase\src\network -Iqtbase\include\QtNetwork\6.1.1 -Iqtbase\include\QtNetwork\6.1.1\QtNetwork -Iqtbase\src\corelib -Iqtbase\include\QtCore\6.1.1 -Iqtbase\include\QtCore\6.1.1\QtCore -Iqtbase\include\QtCore -IZ:\src\qtbase\mkspecs\win32-msvc -Iqtbase\include\QtNetwork -IC:\Dev\Tools\Perl\c\include
OBJECT_DIR = qtbase\src\plugins\networkinformationbackends\networklistmanager\CMakeFiles\QNetworkListManagerNetworkInformationBackend.dir\Debug
OBJECT_FILE_DIR = qtbase\src\plugins\networkinformationbackends\networklistmanager\CMakeFiles\QNetworkListManagerNetworkInformationBackend.dir\Debug\aa4a863ea61b6023e8bc1afef8895156
TARGET_COMPILE_PDB = qtbase\src\plugins\networkinformationbackends\networklistmanager\CMakeFiles\QNetworkListManagerNetworkInformationBackend.dir\Debug\
TARGET_PDB = qtbase\plugins\networkinformationbackends\networklistmanagernetworkinformationbackendd.pdb
The diff
QNetworkListManagerNetworkInformationBackend.dir\RelWithDebInfo\QNetworkListManagerNetworkInformationBackend_autogen
QNetworkListManagerNetworkInformationBackend.dir\Debug\aa4a863ea61b6023e8bc1afef8895156
Edited by Brad King