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: CMakeFiles/blutter_dartvm2.19.6_android_arm64.dir/src/DartTypes.cpp.obj #117

Open
rickbrian opened this issue Nov 20, 2024 · 3 comments

Comments

@rickbrian
Copy link

rickbrian commented Nov 20, 2024

[4/22] Building CXX object CMakeFiles\blutter_dartvm2.19.6_android_arm64.dir\src\DartTypes.cpp.obj
FAILED: CMakeFiles/blutter_dartvm2.19.6_android_arm64.dir/src/DartTypes.cpp.obj
"D:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64\cl.exe" /nologo /TP -DDART_COMPRESSED_POINTERS -DDART_PRECOMPILED_RUNTIME -DDART_TARGET_OS_ANDROID -DDART_TARGET_OS_WINDOWS_UWP -DEXCLUDE_CFE_AND_KERNEL_PLATFORM -DFRIDA_TEMPLATE_DIR="D:/test/apks/test/arm64-v8a/blutter/scripts" -DHAS_TYPE_REF -DNDEBUG -DPRODUCT -DTARGET_ARCH_ARM64 -DU_USING_ICU_NAMESPACE=0 -D_HAS_EXCEPTIONS=0 -external:I D:\test\apks\test\arm64-v8a\blutter\packages\include\dartvm2.19.6 -external:I D:\test\apks\test\arm64-v8a\blutter\blutter..\external\capstone\include\capstone -external:W0 /DWIN32 /D_WINDOWS /EHsc /O2 /Ob2 /DNDEBUG -MD /Oy /GR- /sdl- /Oi /GL /Gy /Zc:wchar_t /Zc:inline -std:c++20 /YuD:/test/apks/test/arm64-v8a/blutter/build/blutter_dartvm2.19.6_android_arm64/CMakeFiles/blutter_dartvm2.19.6_android_arm64.dir/cmake_pch.hxx /FpD:/test/apks/test/arm64-v8a/blutter/build/blutter_dartvm2.19.6_android_arm64/CMakeFiles/blutter_dartvm2.19.6_android_arm64.dir/./cmake_pch.cxx.pch /FID:/test/apks/test/arm64-v8a/blutter/build/blutter_dartvm2.19.6_android_arm64/CMakeFiles/blutter_dartvm2.19.6_android_arm64.dir/cmake_pch.hxx /showIncludes /FoCMakeFiles\blutter_dartvm2.19.6_android_arm64.dir\src\DartTypes.cpp.obj /FdCMakeFiles\blutter_dartvm2.19.6_android_arm64.dir\ /FS -c D:\test\apks\test\arm64-v8a\blutter\blutter\src\DartTypes.cpp
D:\test\apks\test\arm64-v8a\blutter\blutter\src\DartTypes.cpp(237): error C2039: "parameterized_function_type": 不是 "dart::TypeParameter" 的成员
D:\test\apks\test\arm64-v8a\blutter\packages\include\dartvm2.19.6\vm/object.h(9264): note: 参见“dart::TypeParameter”的声明
D:\test\apks\test\arm64-v8a\blutter\blutter\src\DartTypes.cpp(237): error C2530: “owner”: 必须初始化引用
D:\test\apks\test\arm64-v8a\blutter\blutter\src\DartTypes.cpp(238): error C3536: “owner”: 初始化之前无法使用
D:\test\apks\test\arm64-v8a\blutter\blutter\src\DartTypes.cpp(238): error C2530: “type_parameters”: 必须初始化引用
D:\test\apks\test\arm64-v8a\blutter\blutter\src\DartTypes.cpp(239): error C3536: “type_parameters”: 初始化之前无法使用
[17/22] Building CXX object CMakeFiles\blutter_dartvm2.19.6_android_arm64.dir\src\DartDumper.cpp.obj
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "D:\test\apks\test\arm64-v8a\blutter\blutter.py", line 229, in
main(args.indir, args.outdir, args.rebuild, args.vs_sln, args.no_analysis)
File "D:\test\apks\test\arm64-v8a\blutter\blutter.py", line 211, in main
main2(libapp_file, libflutter_file, outdir, rebuild_blutter, create_vs_sln, no_analysis)
File "D:\test\apks\test\arm64-v8a\blutter\blutter.py", line 202, in main2
build_and_run(input)
File "D:\test\apks\test\arm64-v8a\blutter\blutter.py", line 187, in build_and_run
cmake_blutter(input)
File "D:\test\apks\test\arm64-v8a\blutter\blutter.py", line 145, in cmake_blutter
subprocess.run([NINJA_CMD], cwd=builddir, check=True)
File "C:\Users\PC.pyenv\pyenv-win\versions\3.11.4\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.

How to solve this problem

@ritzlin
Copy link

ritzlin commented Nov 22, 2024

Same issue: blutter/src/DartTypes.cpp L237

Snipaste_2024-11-22_10-28-12

gcc version 13.2.0 (Ubuntu 13.2.0-23ubuntu4)

@MasterShi
Copy link

Rollback to previous version: https://codeload.github.com/worawit/blutter/zip/45c7302dfba1f0b291e298637695897e19276007, this works for me

@worawit
Copy link
Owner

worawit commented Nov 30, 2024

fixed in latest commit

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

Successfully merging a pull request may close this issue.

4 participants