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.py fails at build bindgen #392

Open
Hark64 opened this issue Oct 13, 2024 · 0 comments
Open

Build.py fails at build bindgen #392

Hark64 opened this issue Oct 13, 2024 · 0 comments

Comments

@Hark64
Copy link

Hark64 commented Oct 13, 2024

I tried to run "python3 build.py --tarball" but it fails at build bindgen with some sort of syntax error.

I'm on Windows version 23H2 (22631.4317). I was in admin mode in command prompt. Not sure what is going wrong here. I can't find this error described anywhere else online.

"C:\AppData\Local\Programs\Python\Python310\python3.exe" "tools\rust\build_bindgen.py"
Checking out bindgen f93d5dfa6d5d7409bea584f3eab38e1fc52b8360 into C:\source\repos\ungoogled-chromium-windows\build\src\third_party\rust-toolchain-intermediate\bindgen-src
Running ['git', 'clone', 'https://github.com/rust-lang/rust-bindgen', 'C:\\source\\repos\\ungoogled-chromium-windows\\build\\src\\third_party\\rust-toolchain-intermediate\\bindgen-src']
Cloning into '/home/source/repos/ungoogled-chromium-windows/build/src/third_party/rust-toolchain-intermediate/bindgen-src'...
remote: Enumerating objects: 33491, done.
remote: Counting objects: 100% (881/881), done.
remote: Compressing objects: 100% (403/403), done.
remote: Total 33491 (delta 611), reused 664 (delta 475), pack-reused 32610 (from 1)
Receiving objects: 100% (33491/33491), 17.84 MiB | 12.35 MiB/s, done.
Resolving deltas: 100% (26073/26073), done.
Updating files: 100% (1377/1377), done.
Running ['git', 'checkout', 'f93d5dfa6d5d7409bea584f3eab38e1fc52b8360']
Updating files: 100% (500/500), done.
Note: switching to 'f93d5dfa6d5d7409bea584f3eab38e1fc52b8360'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 62859b2c chore: Release
Building bindgen in C:\source\repos\ungoogled-chromium-windows\build\src\third_party\rust-toolchain-intermediate\bindgen-host-build ...
Running ['C:\\source\\repos\\ungoogled-chromium-windows\\build\\src\\tools\\win\\setenv.bat', '&&', 'C:\\source\\repos\\ungoogled-chromium-windows\\build\\src\\third_party\\rust-toolchain\\bin\\cargo.exe', 'build', '--manifest-path=C:\\source\\repos\\ungoogled-chromium-windows\\build\\src\\third_party\\rust-toolchain-intermediate\\bindgen-src/Cargo.toml', '--target-dir=C:\\source\\repos\\ungoogled-chromium-windows\\build\\src\\third_party\\rust-toolchain-intermediate\\bindgen-host-build', '--target=x86_64-pc-windows-msvc', '--no-default-features', '--features=logging', '--release', '--bin', 'bindgen']
  File "C:\", line 1
    [8118:7F50][2024-10-10T13:06:28]i001: Burn v3.14.1.8722, Windows v10.0 (Build 22631: Service Pack 0), path: C:\WINDOWS\Temp\{DFC0D641-FB91-4686-9B1C-5832063C27BC}\.cr\VC_redist.x64.exe
          ^
SyntaxError: invalid decimal literal
Failed.

C:\source\repos\ungoogled-chromium-windows\build\src>exit
Traceback (most recent call last):
  File "C:\source\repos\ungoogled-chromium-windows\build.py", line 323, in <module>
    main()
  File "C:\source\repos\ungoogled-chromium-windows\build.py", line 306, in main
    _run_build_process(
  File "C:\source\repos\ungoogled-chromium-windows\build.py", line 67, in _run_build_process
    subprocess.run(('cmd.exe', '/k'),
  File "C:\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('cmd.exe', '/k')' returned non-zero exit status 1.
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

1 participant