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

build error on windows 10 #10

Open
xland opened this issue Jan 29, 2025 · 4 comments
Open

build error on windows 10 #10

xland opened this issue Jan 29, 2025 · 4 comments
Labels

Comments

@xland
Copy link
Contributor

xland commented Jan 29, 2025

OS: win10
Visual Studio: VS2022
Yode version: current branch node-22
other tool version:

D:\sdk\yode>node -v
v22.13.1

D:\sdk\yode>npm -v
11.0.0

D:\sdk\yode>npx -v
11.0.0

error info (cmd.exe):

D:\sdk\yode>npx zx ./build.mjs x64
Error: No quote function is defined: https://ï.at/no-quote-func
    at checkQuote (C:\Users\liulun\AppData\Local\npm-cache\_npx\721a1717bb84573e\node_modules\zx\build\core.cjs:765:11)
    at Proxy.set (C:\Users\liulun\AppData\Local\npm-cache\_npx\721a1717bb84573e\node_modules\zx\build\core.cjs:278:5)
    at file:///D:/sdk/yode/build.mjs:18:25
    at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)

error info (bash.exe)

$ npx zx ./build.mjs x64
Traceback (most recent call last):
  File "D:\sdk\yode\node\tools\gyp\gyp_main.py", line 45, in <module>
    sys.exit(gyp.script_main())
             ^^^^^^^^^^^^^^^^^
  File "D:\sdk\yode\node/tools/gyp\pylib\gyp\__init__.py", line 688, in script_m
ain
    return main(sys.argv[1:])
           ^^^^^^^^^^^^^^^^^^
  File "D:\sdk\yode\node/tools/gyp\pylib\gyp\__init__.py", line 680, in main
    return gyp_main(args)
           ^^^^^^^^^^^^^^
  File "D:\sdk\yode\node/tools/gyp\pylib\gyp\__init__.py", line 665, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File "D:\sdk\yode\node/tools/gyp\pylib\gyp\generator\ninja.py", line 2965, in
GenerateOutput
    GenerateOutputForConfig(
  File "D:\sdk\yode\node/tools/gyp\pylib\gyp\generator\ninja.py", line 2324, in
GenerateOutputForConfig
    cl_paths = gyp.msvs_emulation.GenerateEnvironmentFiles(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\sdk\yode\node/tools/gyp\pylib\gyp\msvs_emulation.py", line 1185, in G
enerateEnvironmentFiles
    variables = popen.communicate()[0].decode("utf-8")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 6569: inval
id continuation byte
Error: Traceback (most recent call last):
  File "D:\sdk\yode\node\tools\gyp\gyp_main.py", line 45, in <module>
    sys.exit(gyp.script_main())
             ^^^^^^^^^^^^^^^^^
  File "D:\sdk\yode\node/tools/gyp\pylib\gyp\__init__.py", line 688, in script_m
ain
    return main(sys.argv[1:])
           ^^^^^^^^^^^^^^^^^^
  File "D:\sdk\yode\node/tools/gyp\pylib\gyp\__init__.py", line 680, in main
    return gyp_main(args)
           ^^^^^^^^^^^^^^
  File "D:\sdk\yode\node/tools/gyp\pylib\gyp\__init__.py", line 665, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File "D:\sdk\yode\node/tools/gyp\pylib\gyp\generator\ninja.py", line 2965, in
GenerateOutput
    GenerateOutputForConfig(
  File "D:\sdk\yode\node/tools/gyp\pylib\gyp\generator\ninja.py", line 2324, in
GenerateOutputForConfig
    cl_paths = gyp.msvs_emulation.GenerateEnvironmentFiles(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\sdk\yode\node/tools/gyp\pylib\gyp\msvs_emulation.py", line 1185, in G
enerateEnvironmentFiles
    variables = popen.communicate()[0].decode("utf-8")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 6569: inval
id continuation byte
    at Proxy.set (C:\Users\liulun\AppData\Local\npm-cache\_npx\721a1717bb84573e\
node_modules\zx\build\core.cjs:274:18)
    exit code: 1

liulun@DESKTOP-LK1HAVB MINGW64 /d/sdk/yode (node-22)

@zcbenz zcbenz added the bug label Jan 29, 2025
@zcbenz
Copy link
Member

zcbenz commented Jan 29, 2025

The only information I can find regarding first error is google/zx#524, which does not seem to provide much information.

About the second error, can you check if your python's version is >= 3.11?

@xland
Copy link
Contributor Author

xland commented Jan 30, 2025

$ python -V
Python 3.12.3

@zcbenz
Copy link
Member

zcbenz commented Jan 31, 2025

Hmm I don't have an idea how the error happened.

@xland
Copy link
Contributor Author

xland commented Jan 31, 2025

It has error when I used cmd.exe to execute the build command.
So I try to execute the build command by bash.exe which is the tool of the git gui : https://git-scm.com/downloads/win

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

No branches or pull requests

2 participants