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

Multiple errors in build. #14

Open
llightning96 opened this issue Mar 21, 2021 · 1 comment
Open

Multiple errors in build. #14

llightning96 opened this issue Mar 21, 2021 · 1 comment

Comments

@llightning96
Copy link

llightning96 commented Mar 21, 2021

Attempting to create build files with command:

PS.C:\..\..\bin\gn gen out/Shared --args="is_debug=false is_official_build=true skia_use_system_expat=false skia_use_system_icu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_sfntly=false skia_use_freetype=true skia_use_harfbuzz=true skia_pdf_subset_harfbuzz=true skia_use_system_freetype2=false skia_use_system_harfbuzz=false target_cpu=""x64"" cc=""clang"" cxx=""clang++"" clang_win=""C:\Users\USERNAME\source\repos\LLVM\bin"" win_vc=""C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC"" extra_cflags=[""-MT""]"

Results in the following error message:

File "../source/repos/skia/gn/highest_version_dir.py", line 15 print sorted(filter(regex.match, os.listdir(dirpath)))[-1] ^ SyntaxError: invalid syntax ERROR at //gn/BUILDCONFIG.gn:133:29: Script returned non-zero exit code. win_toolchain_version = exec_script("//gn/highest_version_dir.py", ^---------- Current dir: C:/Users/USERNAME/source/repos/skia/out/Shared/ Command: "C:/Program Files/Python38/python.exe" C:/Users/USERNAME/source/repos/skia/gn/highest_version_dir.py "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC/Tools/MSVC" "[0-9]{2}\.[0-9]{2}\.[0-9]{5}" Returned 1.

Removing the --args parameter results in an error (despite having the build-dir on the commandline):

ERROR Need exactly one build directory to generate.

@MaximeWYZUJ
Copy link

I had the same error during build and removed the last line of code in highest_version_dir.py which was a print causing the issue.

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

No branches or pull requests

2 participants