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

Cannot build mozc-emacs-helper on GitHub Actions #48

Open
kai2nenobu opened this issue Aug 10, 2020 · 0 comments
Open

Cannot build mozc-emacs-helper on GitHub Actions #48

kai2nenobu opened this issue Aug 10, 2020 · 0 comments

Comments

@kai2nenobu
Copy link
Owner

https://github.com/kai2nenobu/my-chocolatey-packages/actions/runs/201917023

windows-2019 上でビルドしてみたけど、ビルドエラーになった。スタックトレースは以下のようになってる。

Traceback (most recent call last):
  File "D:\a\my-chocolatey-packages\my-chocolatey-packages\mozc-emacs-helper\mozc\src\third_party\gyp\gyp_main.py", line 16, in <module>
    sys.exit(gyp.script_main())
  File "D:\a\my-chocolatey-packages\my-chocolatey-packages\mozc-emacs-helper\mozc\src\third_party\gyp\pylib\gyp\__init__.py", line 545, in script_main
    return main(sys.argv[1:])
  File "D:\a\my-chocolatey-packages\my-chocolatey-packages\mozc-emacs-helper\mozc\src\third_party\gyp\pylib\gyp\__init__.py", line 538, in main
    return gyp_main(args)
  File "D:\a\my-chocolatey-packages\my-chocolatey-packages\mozc-emacs-helper\mozc\src\third_party\gyp\pylib\gyp\__init__.py", line 514, in gyp_main
    options.duplicate_basename_check)
  File "D:\a\my-chocolatey-packages\my-chocolatey-packages\mozc-emacs-helper\mozc\src\third_party\gyp\pylib\gyp\__init__.py", line 98, in Load
    generator.CalculateVariables(default_variables, params)
  File "D:\a\my-chocolatey-packages\my-chocolatey-packages\mozc-emacs-helper\mozc\src\third_party\gyp\pylib\gyp\generator\ninja.py", line 1684, in CalculateVariables
    gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)
  File "D:\a\my-chocolatey-packages\my-chocolatey-packages\mozc-emacs-helper\mozc\src\third_party\gyp\pylib\gyp\msvs_emulation.py", line 1083, in CalculateCommonVariables
    msvs_version = gyp.msvs_emulation.GetVSVersion(generator_flags)
  File "D:\a\my-chocolatey-packages\my-chocolatey-packages\mozc-emacs-helper\mozc\src\third_party\gyp\pylib\gyp\msvs_emulation.py", line 934, in GetVSVersion
    allow_fallback=False)
  File "D:\a\my-chocolatey-packages\my-chocolatey-packages\mozc-emacs-helper\mozc\src\third_party\gyp\pylib\gyp\MSVSVersion.py", line 447, in SelectVisualStudioVersion
    raise ValueError('Could not locate Visual Studio installation.')
ValueError: Could not locate Visual Studio installation.
Traceback (most recent call last):
  File "build_mozc.py", line 1236, in <module>
    main()
  File "build_mozc.py", line 1220, in main
    GypMain(cmd_opts, cmd_args)
  File "build_mozc.py", line 736, in GypMain
    RunOrDie(gyp_command + gyp_options)
  File "D:\a\my-chocolatey-packages\my-chocolatey-packages\mozc-emacs-helper\mozc\src\build_tools\util.py", line 99, in RunOrDie
    '==========']))

Could not locate Visual Studio installation. とあるので、Visual Studioが見つけられてないんでしょうけどgypの範疇で、どうやったら見つけてくれるのかよくわからない。

Visual Studio 2017がインストールされてる windows-2016 で実行したらいいかな、と思ってやってみたけど現象変わらず。

@kai2nenobu kai2nenobu changed the title mozc-emacs-helper をGitHub Actionでビルドできない Cannot build mozc-emacs-helper on GitHub Actions Aug 10, 2020
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