Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build "submodules2" #2614

Closed
tang1024 opened this issue Jul 28, 2022 · 2 comments
Closed

Failed to build "submodules2" #2614

tang1024 opened this issue Jul 28, 2022 · 2 comments
Labels
Milestone

Comments

@tang1024
Copy link

Xmake Version

2.6.9

Operating System Version and Architecture

Windows 10 x64

Describe Bug

PS D:\development\cpp\submodules2> xmake -vD
checking for platform ... windows
checking for architecture ... x64
checking for cl.exe ... D:\software\installed\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.32.31332
checkinfo: cannot runv(dmd.exe --version), No such file or directory
checking for dmd ... no
checkinfo: cannot runv(ldc2.exe --version), No such file or directory
checking for ldc2 ... no
checkinfo: cannot runv(gdc.exe --version), No such file or directory
checking for gdc ... no
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checking for link.exe ... D:\software\installed\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\HostX64\x64\link.exe
checking for the linker (ld) ... link.exe
checking for cl.exe ... D:\software\installed\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\HostX64\x64\cl.exe
checking for the c++ compiler (cxx) ... cl.exe
checking for D:\software\installed\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\HostX64\x64\cl.exe ... ok
checking for flags (/experimental:module) ... ok
> cl.exe "/experimental:module" "/EHsc"
checking for flags (/ifcOutput) ... ok
> cl.exe "/ifcOutput" "/EHsc"
checking for flags (/interface) ... ok
> cl.exe "/interface" "/EHsc"
checking for flags (/reference) ... ok
> cl.exe "/reference" "/EHsc"
checking for flags (/stdIfcDir) ... ok
> cl.exe "/stdIfcDir" "/EHsc"
generating.moduledeps src\main_module.mpp
generating.moduledeps src\module1.mpp
generating.moduledeps src\module2.mpp
checking for flags (-std:c++20) ... ok
> cl.exe "-std:c++20" "/EHsc"
[ 11%]: ccache compiling.release src\module1.mpp
"D:\\software\\installed\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX64\\x64\\cl.exe" -c /EHsc -nologo -std:c++20 /experimental:module /ifcSearchDir build\.gens\math\windows\x64\release\rules\modules\cache /stdIfcDir "D:\\software\\installed\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.32.31326\\ifc\\x64" /interface /ifcOutput build\.gens\math\windows\x64\release\rules\modules\cache\module1.ifc /TP -Fobuild\.objs\math\windows\x64\release\src\module1.mpp.obj src\module1.mpp
[ 11%]: ccache compiling.release src\module2.mpp
"D:\\software\\installed\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX64\\x64\\cl.exe" -c /EHsc -nologo -std:c++20 /experimental:module /ifcSearchDir build\.gens\math\windows\x64\release\rules\modules\cache /stdIfcDir "D:\\software\\installed\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.32.31326\\ifc\\x64" /interface /ifcOutput build\.gens\math\windows\x64\release\rules\modules\cache\module2.ifc /TP -Fobuild\.objs\math\windows\x64\release\src\module2.mpp.obj src\module2.mpp
checking for flags (cl_sourceDependencies) ... ok
> cl.exe "/sourceDependencies" "C:\Users\Jian\AppData\Local\Temp\.xmake\220728\_8D5C0F05A0CD424086CFB77735C20AB0.json" "/EHsc"
[ 33%]: ccache compiling.release src\main_module.mpp
"D:\\software\\installed\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX64\\x64\\cl.exe" -c /EHsc -nologo -std:c++20 /experimental:module /ifcSearchDir build\.gens\math\windows\x64\release\rules\modules\cache /stdIfcDir "D:\\software\\installed\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.32.31326\\ifc\\x64" /interface /ifcOutput build\.gens\math\windows\x64\release\rules\modules\cache\main_module.ifc /TP -Fobuild\.objs\math\windows\x64\release\src\main_module.mpp.obj src\main_module.mpp
error: @programdir\modules\private\async\runjobs.lua:256: @programdir\modules\private\action\build\object.lua:90: @programdir\modules\core\tools\cl.lua:620: main_module.mpp
src\main_module.mpp(3): error C2230: could not find module 'main_module.module1'
src\main_module.mpp(4): error C2230: could not find module 'main_module.module2'
src\main_module.mpp(7): error C3861: 'hello1': identifier not found
src\main_module.mpp(8): error C3861: 'hello2': identifier not found

stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:872]:
    [@programdir\modules\core\tools\cl.lua:620]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:127]: in function 'try'
    [@programdir\modules\core\tools\cl.lua:559]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]:
    [@programdir\modules\private\action\build\object.lua:90]: in function 'script'
    [@programdir\modules\private\action\build\object.lua:103]: in function 'build_object'
    [@programdir\rules\c++\modules\build_modules\msvc.lua:136]: in function 'jobfunc'
    [@programdir\modules\private\async\runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir\core\base\utils.lua:280]: in function 'trycall'
    [@programdir\core\sandbox\modules\try.lua:121]: in function 'try'
    [@programdir\modules\private\async\runjobs.lua:218]: in function 'cotask'
    [@programdir\core\base\scheduler.lua:388]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:872: in function 'os.raiselevel'
        (...tail calls...)
        @programdir\modules\private\async\runjobs.lua:256: in field 'catch'
        @programdir\core\sandbox\modules\try.lua:127: in global 'try'
        @programdir\modules\private\async\runjobs.lua:218: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:388: in function <@programdir\core\base\scheduler.lua:385>

Expected Behavior

Build success.

Project Configuration

No response

Additional Information and Error Logs

No response

@tang1024 tang1024 added the bug label Jul 28, 2022
@waruqi
Copy link
Member

waruqi commented Jul 30, 2022

可以了,再试试 xmake update -s dev

@waruqi waruqi added this to the v2.7.1 milestone Jul 30, 2022
@waruqi
Copy link
Member

waruqi commented Aug 1, 2022

应该已经修复了,有问题再开。

@waruqi waruqi closed this as completed Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants