sonic-pi-net / sonic-pi

Code. Music. Live.
https://sonic-pi.net
Other
10.85k stars 923 forks source link

Anyone else having issues Building SonicPi on windows? #3382

Open iamjonny opened 9 months ago

iamjonny commented 9 months ago

Appears problems persists with one or more of the dependencies. sonic-pi.exe not made, and various other issues.

Environment info

cmake version 3.27.7
Erlang/OTP 26 [erts-14.2.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]
Elixir 1.16.1 (compiled with Erlang/OTP 26)
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x64-mingw-ucrt]
QT_INSTALL_LOCATION=C:\Dev\Qt\6.4.3\msvc2019_64

Build log

C:\Dev\sonic-pi-4.4.0\app>win-build-all.bat
Installing Libraries
Computing installation plan...
The following packages will be built and installed:
    catch2[core]:x64-windows-static-md -> 3.1.1#2
    concurrentqueue[core]:x64-windows-static-md -> 1.0.3
    crossguid[core]:x64-windows-static-md -> 2021-10-22#2
  * egl-registry[core]:x64-windows-static-md -> 2021-11-23#1
    fmt[core]:x64-windows-static-md -> 9.1.0
    gl3w[core]:x64-windows-static-md -> 2018-05-31#4
    gsl-lite[core]:x64-windows-static-md -> 0.40.0
    kissfft[core]:x64-windows-static-md -> 2021-11-14
  * libflac[core]:x64-windows-static-md -> 1.3.4#1
  * libogg[core]:x64-windows-static-md -> 1.3.5
    libsndfile[core,external-libs]:x64-windows-static-md -> 1.1.0#1
  * libvorbis[core]:x64-windows-static-md -> 1.3.7#2
  * opengl-registry[core]:x64-windows-static-md -> 2021-11-17
  * opus[core]:x64-windows-static-md -> 1.3.1#9
    platform-folders[core]:x64-windows-static-md -> 4.1.0
    reproc[core]:x64-windows-static-md -> 14.2.4#1
    sdl2[core]:x64-windows-static-md -> 2.24.2
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows-static-md...
Restored 0 package(s) from C:\Users\Jonny\AppData\Local\vcpkg\archives in 3.149 ms. Use --debug to see more details.
Installing 1/17 catch2:x64-windows-static-md...
Building catch2[core]:x64-windows-static-md...
warning: -- Using community triplet x64-windows-static-md. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\Dev\sonic-pi-4.4.0\app\vcpkg\triplets\community\x64-windows-static-md.cmake
-- Using cached catchorg-Catch2-v3.1.1.tar.gz.
-- Cleaning sources at C:/Dev/sonic-pi-4.4.0/app/vcpkg/buildtrees/catch2/src/v3.1.1-75a9114e59.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Dev/sonic-pi-4.4.0/app/vcpkg/downloads/catchorg-Catch2-v3.1.1.tar.gz
-- Applying patch fix-install-path.patch
-- Applying patch no-absolute-paths.patch
-- Using source at C:/Dev/sonic-pi-4.4.0/app/vcpkg/buildtrees/catch2/src/v3.1.1-75a9114e59.clean
-- Configuring x64-windows-static-md
-- Building x64-windows-static-md-dbg
-- Building x64-windows-static-md-rel
-- Fixing pkgconfig file: C:/Dev/sonic-pi-4.4.0/app/vcpkg/packages/catch2_x64-windows-static-md/lib/pkgconfig/catch2-with-main.pc
-- Fixing pkgconfig file: C:/Dev/sonic-pi-4.4.0/app/vcpkg/packages/catch2_x64-windows-static-md/lib/pkgconfig/catch2.pc
-- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst -> msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Download failed -- retrying after 1000ms.Download failed -- retrying after 2000ms.Download failed -- retrying after 4000ms.Downloading https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
error: Failed to download from mirror set
error: https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404

[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(774):
[DEBUG] Time in subprocesses: 0 us
[DEBUG] Time in parsing JSON: 20 us
[DEBUG] Time in JSON reader: 0 us
[DEBUG] Time in filesystem: 6556 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 30.79 s (30792997 us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):

      Failed to download file with error: 1
      If you use a proxy, please check your proxy setting. Possible causes are:

      1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable
         to `https://address:port`. This is not correct, because `https://` prefix
         claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr
         , etc..) is an HTTP proxy. Try setting `http://address:port` to both
         HTTP_PROXY and HTTPS_PROXY instead.

      2. You are using Fiddler. Currently a bug (https://github.com/microsoft/vcpkg/issues/17752)
         will set HTTPS_PROXY to `https://fiddler_address:port` which lead to problem 1 above.
         Workaround is open Windows 10 Settings App, and search for Proxy Configuration page,
         Change `http=address:port;https=address:port` to `address`, and fill the port number.

      3. Your proxy's remote server is out of service.

      In future vcpkg releases, if you are using Windows, you no longer need to set
      HTTP(S)_PROXY environment variables. Vcpkg will simply apply Windows IE Proxy
      Settings set by your proxy software. See (https://github.com/microsoft/vcpkg-tool/pull/49)
      and (https://github.com/microsoft/vcpkg-tool/pull/77)

      Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues

Call Stack (most recent call first):
  scripts/cmake/vcpkg_download_distfile.cmake:273 (z_vcpkg_download_distfile_show_proxy_and_fail)
  scripts/cmake/vcpkg_acquire_msys.cmake:26 (vcpkg_download_distfile)
  scripts/cmake/vcpkg_acquire_msys.cmake:124 (z_vcpkg_acquire_msys_download_package)
  scripts/cmake/vcpkg_find_acquire_program.cmake:535 (vcpkg_acquire_msys)
  scripts/cmake/vcpkg_fixup_pkgconfig.cmake:151 (vcpkg_find_acquire_program)
  ports/catch2/portfile.cmake:26 (vcpkg_fixup_pkgconfig)
  scripts/ports.cmake:147 (include)

error: building catch2:x64-windows-static-md failed with: BUILD_FAILED
error: Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+catch2
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[catch2]+Build+error
Include '[catch2] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
    vcpkg-tool version: 2022-11-10-5fdee72bc1fceca198fb1ab7589837206a8b81ba
    vcpkg-scripts version: 6f7ffeb 2022-11-11 (1 year, 3 months ago)

Please use the prefilled template from C:\Dev\sonic-pi-4.4.0\app\vcpkg\installed\vcpkg\issue_body.md when reporting your issue.
Translating tutorial...
Translated tutorial bs: 0.0% ready, 0.0% fuzzy.
Translated tutorial ca: 13.6% ready, 0.9% fuzzy.
Translated tutorial cs: 0.0% ready, 0.0% fuzzy.
Translated tutorial da: 15.7% ready, 0.4% fuzzy.
Translated tutorial de: 85.0% ready, 1.8% fuzzy.
Translated tutorial el: 3.1% ready, 0.4% fuzzy.
Translated tutorial es: 92.0% ready, 32.1% fuzzy.
Translated tutorial et: 0.1% ready, 0.0% fuzzy.
Translated tutorial fi: 0.1% ready, 0.1% fuzzy.
Translated tutorial fr: 99.8% ready, 0.0% fuzzy.
Translated tutorial gl: 0.0% ready, 0.0% fuzzy.
Translated tutorial hi: 0.0% ready, 0.0% fuzzy.
Translated tutorial hu: 1.4% ready, 0.3% fuzzy.
Translated tutorial id: 2.4% ready, 0.1% fuzzy.
Translated tutorial is: 12.5% ready, 2.7% fuzzy.
Translated tutorial it: 99.8% ready, 5.9% fuzzy.
Translated tutorial ja: 87.3% ready, 7.5% fuzzy.
Translated tutorial ko: 3.1% ready, 0.3% fuzzy.
Translated tutorial nb: 21.4% ready, 3.2% fuzzy.
Translated tutorial nl: 96.0% ready, 1.8% fuzzy.
Translated tutorial pl: 91.0% ready, 3.2% fuzzy.
Translated tutorial pt: 70.4% ready, 5.6% fuzzy.
Translated tutorial pt-BR: 37.3% ready, 2.6% fuzzy.
Translated tutorial ro: 88.1% ready, 7.9% fuzzy.
Translated tutorial ru: 99.5% ready, 17.7% fuzzy.
Translated tutorial sl: 3.5% ready, 0.4% fuzzy.
Translated tutorial sv: 8.0% ready, 0.3% fuzzy.
Translated tutorial tr: 3.7% ready, 0.1% fuzzy.
Translated tutorial zh-Hans: 24.6% ready, 0.6% fuzzy.
Translated tutorial zh-Hk: 0.0% ready, 0.0% fuzzy.
Translated tutorial zh-TW: 2.5% ready, 0.4% fuzzy.
Generating docs for the Qt GUI...
        1 file(s) copied.
"Creating build directory..."
"Generating project files..."
-- CMakeLists: Sonic Pi
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- The C compiler identification is MSVC 19.38.33134.0
-- The CXX compiler identification is MSVC 19.38.33134.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- TARGET_WIN
-- System: Windows-10.0.22631
-- Compiler: MSVC
-- Compiler Version: 19.38.33134.0
-- Debug Flags: /MDd /Zi /Ob0 /Od /RTC1 -D_DEBUG -DDEBUG
-- Release Flags: /MD /O2 /Ob2 /DNDEBUG
-- Externals Builder
-- USE_SYSTEM_LIBS: OFF
CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:834 (_find_package):
  Could not find a package configuration file provided by "SndFile" with any
  of the following names:

    SndFileConfig.cmake
    sndfile-config.cmake

  Add the installation prefix of "SndFile" to CMAKE_PREFIX_PATH or set
  "SndFile_DIR" to a directory containing one of the above files.  If
  "SndFile" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  external/CMakeLists.txt:40 (find_package)

-- Configuring incomplete, errors occurred!
MSBuild version 17.8.5+b5265ef37 for .NET Framework
MSBUILD : error MSB1009: Project file does not exist.
Switch: ALL_BUILD.vcxproj
Compiling Erlang/Elixir files...
* creating c:/Users/Jonny/.mix/archives/hex-2.0.6
* creating c:/Users/Jonny/.mix/elixir/1-16/rebar3
Resolving Hex dependencies...
Resolution completed in 0.26s
Unchanged:
  bunt 0.2.1
  castore 1.0.3
  cowboy 2.10.0
  cowboy_telemetry 0.4.0
  cowlib 2.12.1
  credo 1.7.0
  decimal 2.1.1
  ecto 3.10.2
  esbuild 0.7.1
  expo 0.4.1
  exsync 0.2.4
  file_system 0.2.10
  floki 0.34.3
  gettext 0.22.2
  heroicons 0.5.3
  jason 1.4.0
  logger_file_backend 0.0.13
  mime 2.0.5
  petal_components 1.2.9
  phoenix 1.7.6
  phoenix_ecto 4.4.2
  phoenix_html 3.3.1
  phoenix_live_dashboard 0.7.2
  phoenix_live_reload 1.4.1
  phoenix_live_view 0.18.18
  phoenix_pubsub 2.1.3
  phoenix_template 1.0.1
  plug 1.14.2
  plug_cowboy 2.6.1
  plug_crypto 1.2.5
  ranch 1.8.0
  rustler 0.29.0
  tailwind 0.2.1
  telemetry 1.2.1
  telemetry_metrics 0.6.1
  telemetry_poller 1.0.0
  toml 0.7.0
  websock 0.5.2
  websock_adapter 0.5.3
All dependencies are up to date
==> logger_file_backend
Compiling 1 file (.ex)
Generated logger_file_backend app
==> decimal
Compiling 4 files (.ex)
Generated decimal app
==> mime
Compiling 1 file (.ex)
Generated mime app
==> toml
Compiling 10 files (.ex)
Generated toml app
===> Analyzing applications...
===> Compiling telemetry
==> telemetry_metrics
Compiling 7 files (.ex)
Generated telemetry_metrics app
===> Analyzing applications...
===> Compiling telemetry_poller
==> jason
Compiling 10 files (.ex)
Generated jason app
warning: in order to compile .yrl files, you must add "compilers: [:yecc] ++ Mix.compilers()" to the "def project" section of expo's mix.exs
  (mix 1.16.1) lib/mix/tasks/compile.yecc.ex:70: Mix.Tasks.Compile.Yecc.preload/1
  (mix 1.16.1) lib/mix/compilers/erlang.ex:66: Mix.Compilers.Erlang.compile/6
  (mix 1.16.1) lib/mix/task.ex:478: anonymous fn/3 in Mix.Task.run_task/5
  (mix 1.16.1) lib/mix/tasks/compile.all.ex:124: Mix.Tasks.Compile.All.run_compiler/2
  (mix 1.16.1) lib/mix/tasks/compile.all.ex:104: Mix.Tasks.Compile.All.compile/4
  (mix 1.16.1) lib/mix/tasks/compile.all.ex:93: Mix.Tasks.Compile.All.with_logger_app/2

==> expo
Compiling 2 files (.erl)
Compiling 21 files (.ex)
Generated expo app
==> phoenix_pubsub
Compiling 11 files (.ex)
Generated phoenix_pubsub app
==> plug_crypto
Compiling 5 files (.ex)
Generated plug_crypto app
==> gettext
Compiling 17 files (.ex)
     warning: macro ends_in/2 is unused
     │
 251 │   defmacrop ends_in(n, digits) do
     │             ~
     │
     └─ lib/gettext/plural.ex:251:13: Gettext.Plural (module)

Generated gettext app
===> Analyzing applications...
===> Compiling ranch
==> ecto
Compiling 56 files (.ex)
     warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
     │
 474 │       Logger.warn """
     │              ~
     │
     └─ lib/ecto/changeset/relation.ex:474:14: Ecto.Changeset.Relation.process_current/3

     warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
     │
 208 │           Logger.warn """
     │                  ~
     │
     └─ lib/ecto/repo/preloader.ex:208:18: Ecto.Repo.Preloader.fetch_ids/4

      warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
      │
 3143 │       Logger.warn """
      │              ~
      │
      └─ lib/ecto/changeset.ex:3143:14: Ecto.Changeset.optimistic_lock/3

Generated ecto app
==> rustler
Compiling 7 files (.ex)
Generated rustler app
==> plug
Compiling 1 file (.erl)
Compiling 40 files (.ex)
Generated plug app
==> phoenix_html
Compiling 9 files (.ex)
Generated phoenix_html app
==> phoenix_template
Compiling 4 files (.ex)
Generated phoenix_template app
==> castore
Compiling 1 file (.ex)
Generated castore app
==> esbuild
Compiling 3 files (.ex)
    warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
    │
 69 │       Logger.warn("""
    │              ~
    │
    └─ lib/esbuild.ex:69:14: Esbuild.start/2

    warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
    │
 83 │         Logger.warn("""
    │                ~
    │
    └─ lib/esbuild.ex:83:16: Esbuild.start/2

Generated esbuild app
==> tailwind
Compiling 3 files (.ex)
    warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
    │
 72 │       Logger.warn("""
    │              ~
    │
    └─ lib/tailwind.ex:72:14: Tailwind.start/2

    warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
    │
 86 │         Logger.warn("""
    │                ~
    │
    └─ lib/tailwind.ex:86:16: Tailwind.start/2

Generated tailwind app
==> websock
Compiling 1 file (.ex)
Generated websock app
===> Analyzing applications...
===> Compiling cowlib
===> Analyzing applications...
===> Compiling cowboy
===> Analyzing applications...
===> Compiling cowboy_telemetry
==> plug_cowboy
Compiling 5 files (.ex)
     warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
     │
 352 │       Logger.warn("the :timeout option for Cowboy webserver has no effect and must be removed")
     │              ~
     │
     └─ lib/plug/cowboy.ex:352:14: Plug.Cowboy.to_args/5

Generated plug_cowboy app
==> websock_adapter
Compiling 2 files (.ex)
Generated websock_adapter app
==> phoenix
Compiling 71 files (.ex)
Generated phoenix app
==> phoenix_live_view
Compiling 35 files (.ex)
Generated phoenix_live_view app
==> heroicons
Compiling 3 files (.ex)
Compiling lib/heroicons.ex (it's taking more than 10s)
Generated heroicons app
==> phoenix_live_dashboard
Compiling 40 files (.ex)
Generated phoenix_live_dashboard app
==> phoenix_ecto
Compiling 7 files (.ex)
Generated phoenix_ecto app
==> petal_components
Compiling 29 files (.ex)
Generated petal_components app

18:02:18.971 [debug] Downloading tailwind from https://github.com/tailwindlabs/tailwindcss/releases/download/v3.3.2/tailwindcss-windows-x64.exe

18:14:57.695 [debug] Downloading esbuild from https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz
==> tau
Compiling 14 files (.erl)
src/tau_server/tau_server_api.erl:298:1: Warning: function hydra_eval/1 is unused
%  298| hydra_eval(Code) ->
%     | ^

Compiling 17 files (.ex)
Generated tau app
Clean complete for "priv/static"

Rebuilding...

Done in 1304ms.

  ..\priv\static\assets\app.js  1.8mb

Done in 382ms
Check your digested files at "priv/static"
* assembling tau-0.1.0 on MIX_ENV=prod
* using config/runtime.exs to configure the release at runtime
* creating _build/prod/rel/tau/releases/0.1.0/vm.args
* creating _build/prod/rel/tau/releases/0.1.0/remote.vm.args
* creating _build/prod/rel/tau/releases/0.1.0/env.sh
* creating _build/prod/rel/tau/releases/0.1.0/env.bat

Release created at _build/prod/rel/tau
ethancrawford commented 9 months ago

Hi @iamjonny

I don't know a whole lot about vcpkg, so take my suggestions with a grain of salt - but for laughs, I deleted the vcpkg folder from my Sonic Pi installation and tried doing a win-build-all.bat - and ended up in a similar-ish situation where it said "Could not find a package configuration file provided by "SndFile"".

I then noticed that it had said earlier in that build, "Restored 19 package(s) from C:\Users\ethan\AppData\Local\vcpkg\archives" which I figured would be undesirable if I was trying to replicate a fresh install of vcpkg - so I deleted all contents from that archives folder, deleted the Sonic Pi vcpkg folder again, and re-ran win-build-all.bat - and everything just worked 🪄

Maybe worth trying something similar on your end if you haven't already? 🤷‍♂️ 🤞

iamjonny commented 9 months ago

Many thanks @ethancrawford, definitely worth a try 👍 I'd ran the win-clean previously, running the build bat now after emptying the archives folder, build mentions using cached catch2 so I searched the filesystem for that tar and found it in the vcpkg downloads folder, in the code directory

The latest build completed with what appears to be the same results, including the triplet warning and the VS prompt's x86 targeting, not sure if they're related or important or "normal"

There's 6 packages that are marked * as being scheduled for build (looking at the asterixes) and looks like it's always the libwinpthread library that's first to fail. I'm surprised you had no issues obtaining because I couldn't see that version (9.0.0.6373) on the remote filesystem when viewing - I had intended to try using an available version like V10, to see what happens...

Interestingly the tailwind css resource was obtained successfully, I think this was one item that kept appearing in the build-error-collection


C:\Dev\sonic-pi-4.4.0\app>win-build-all.bat

C:\Dev\sonic-pi-4.4.0\app>set WORKING_DIR=C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>set CONFIG=

C:\Dev\sonic-pi-4.4.0\app>if /I "" == "" (set CONFIG=Release )

C:\Dev\sonic-pi-4.4.0\app>call win-prebuild.bat

C:\Dev\sonic-pi-4.4.0\app>set WORKING_DIR=C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>cd C:\Dev\sonic-pi-4.4.0\app\

C:\Dev\sonic-pi-4.4.0\app>call win-pre-vcpkg.bat

C:\Dev\sonic-pi-4.4.0\app>set WORKING_DIR=C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>cd C:\Dev\sonic-pi-4.4.0\app\

C:\Dev\sonic-pi-4.4.0\app>REM Build vcpkg

C:\Dev\sonic-pi-4.4.0\app>if not exist "vcpkg\" (
echo Cloning vcpkg
 git clone --depth 1 --branch 2022.11.14 https://github.com/microsoft/vcpkg.git vcpkg
)

C:\Dev\sonic-pi-4.4.0\app>set VCPKG_ROOT=C:\Dev\sonic-pi-4.4.0\app\/vcpkg

C:\Dev\sonic-pi-4.4.0\app>if not exist "vcpkg\vcpkg.exe" (
cd vcpkg
 echo Building vcpkg
 call bootstrap-vcpkg.bat -disableMetrics
 cd C:\Dev\sonic-pi-4.4.0\app\
)

C:\Dev\sonic-pi-4.4.0\app>cd vcpkg
Installing Libraries

C:\Dev\sonic-pi-4.4.0\app\vcpkg>vcpkg install libsndfile[core,external-libs] kissfft fmt crossguid sdl2 gl3w reproc gsl-lite concurrentqueue platform-folders catch2 --triplet x64-windows-static-md --recurse
Computing installation plan...
warning: vcpkg appears to be in a Visual Studio prompt targeting x86 but installing for x64-windows-static-md. Consider using --triplet x86-windows or --triplet x86-uwp.
The following packages will be built and installed:
    catch2[core]:x64-windows-static-md -> 3.1.1#2
    concurrentqueue[core]:x64-windows-static-md -> 1.0.3
    crossguid[core]:x64-windows-static-md -> 2021-10-22#2
  * egl-registry[core]:x64-windows-static-md -> 2021-11-23#1
    fmt[core]:x64-windows-static-md -> 9.1.0
    gl3w[core]:x64-windows-static-md -> 2018-05-31#4
    gsl-lite[core]:x64-windows-static-md -> 0.40.0
    kissfft[core]:x64-windows-static-md -> 2021-11-14
  * libflac[core]:x64-windows-static-md -> 1.3.4#1
  * libogg[core]:x64-windows-static-md -> 1.3.5
    libsndfile[core,external-libs]:x64-windows-static-md -> 1.1.0#1
  * libvorbis[core]:x64-windows-static-md -> 1.3.7#2
  * opengl-registry[core]:x64-windows-static-md -> 2021-11-17
  * opus[core]:x64-windows-static-md -> 1.3.1#9
    platform-folders[core]:x64-windows-static-md -> 4.1.0
    reproc[core]:x64-windows-static-md -> 14.2.4#1
    sdl2[core]:x64-windows-static-md -> 2.24.2
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows-static-md...
Restored 0 package(s) from C:\Users\Jonny\AppData\Local\vcpkg\archives in 543.5 us. Use --debug to see more details.
Installing 1/17 catch2:x64-windows-static-md...
Building catch2[core]:x64-windows-static-md...
warning: -- Using community triplet x64-windows-static-md. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\Dev\sonic-pi-4.4.0\app\vcpkg\triplets\community\x64-windows-static-md.cmake
-- Using cached catchorg-Catch2-v3.1.1.tar.gz.
-- Cleaning sources at C:/Dev/sonic-pi-4.4.0/app/vcpkg/buildtrees/catch2/src/v3.1.1-75a9114e59.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Dev/sonic-pi-4.4.0/app/vcpkg/downloads/catchorg-Catch2-v3.1.1.tar.gz
-- Applying patch fix-install-path.patch
-- Applying patch no-absolute-paths.patch
-- Using source at C:/Dev/sonic-pi-4.4.0/app/vcpkg/buildtrees/catch2/src/v3.1.1-75a9114e59.clean
-- Configuring x64-windows-static-md
-- Building x64-windows-static-md-dbg
-- Building x64-windows-static-md-rel
-- Fixing pkgconfig file: C:/Dev/sonic-pi-4.4.0/app/vcpkg/packages/catch2_x64-windows-static-md/lib/pkgconfig/catch2-with-main.pc
-- Fixing pkgconfig file: C:/Dev/sonic-pi-4.4.0/app/vcpkg/packages/catch2_x64-windows-static-md/lib/pkgconfig/catch2.pc
-- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst -> msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Download failed -- retrying after 1000ms.Download failed -- retrying after 2000ms.Download failed -- retrying after 4000ms.Downloading https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
error: Failed to download from mirror set
error: https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404

[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(774):
[DEBUG] Time in subprocesses: 0 us
[DEBUG] Time in parsing JSON: 15 us
[DEBUG] Time in JSON reader: 0 us
[DEBUG] Time in filesystem: 8228 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 37.34 s (37340104 us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):

      Failed to download file with error: 1
      If you use a proxy, please check your proxy setting. Possible causes are:

      1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable
         to `https://address:port`. This is not correct, because `https://` prefix
         claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr
         , etc..) is an HTTP proxy. Try setting `http://address:port` to both
         HTTP_PROXY and HTTPS_PROXY instead.

      2. You are using Fiddler. Currently a bug (https://github.com/microsoft/vcpkg/issues/17752)
         will set HTTPS_PROXY to `https://fiddler_address:port` which lead to problem 1 above.
         Workaround is open Windows 10 Settings App, and search for Proxy Configuration page,
         Change `http=address:port;https=address:port` to `address`, and fill the port number.

      3. Your proxy's remote server is out of service.

      In future vcpkg releases, if you are using Windows, you no longer need to set
      HTTP(S)_PROXY environment variables. Vcpkg will simply apply Windows IE Proxy
      Settings set by your proxy software. See (https://github.com/microsoft/vcpkg-tool/pull/49)
      and (https://github.com/microsoft/vcpkg-tool/pull/77)

      Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues

Call Stack (most recent call first):
  scripts/cmake/vcpkg_download_distfile.cmake:273 (z_vcpkg_download_distfile_show_proxy_and_fail)
  scripts/cmake/vcpkg_acquire_msys.cmake:26 (vcpkg_download_distfile)
  scripts/cmake/vcpkg_acquire_msys.cmake:124 (z_vcpkg_acquire_msys_download_package)
  scripts/cmake/vcpkg_find_acquire_program.cmake:535 (vcpkg_acquire_msys)
  scripts/cmake/vcpkg_fixup_pkgconfig.cmake:151 (vcpkg_find_acquire_program)
  ports/catch2/portfile.cmake:26 (vcpkg_fixup_pkgconfig)
  scripts/ports.cmake:147 (include)

error: building catch2:x64-windows-static-md failed with: BUILD_FAILED
error: Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+catch2
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[catch2]+Build+error
Include '[catch2] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
    vcpkg-tool version: 2022-11-10-5fdee72bc1fceca198fb1ab7589837206a8b81ba
    vcpkg-scripts version: 6f7ffeb 2022-11-11 (1 year, 3 months ago)

Please use the prefilled template from C:\Dev\sonic-pi-4.4.0\app\vcpkg\installed\vcpkg\issue_body.md when reporting your issue.

C:\Dev\sonic-pi-4.4.0\app\vcpkg>cd C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>call win-pre-translations.bat

C:\Dev\sonic-pi-4.4.0\app>set WORKING_DIR=C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>cd C:\Dev\sonic-pi-4.4.0\app\
Translating tutorial...

C:\Dev\sonic-pi-4.4.0\app>server\native\ruby\bin\ruby server/ruby/bin/i18n-tool.rb -t
Translated tutorial bs: 0.0% ready, 0.0% fuzzy.
Translated tutorial ca: 13.6% ready, 0.9% fuzzy.
Translated tutorial cs: 0.0% ready, 0.0% fuzzy.
Translated tutorial da: 15.7% ready, 0.4% fuzzy.
Translated tutorial de: 85.0% ready, 1.8% fuzzy.
Translated tutorial el: 3.1% ready, 0.4% fuzzy.
Translated tutorial es: 92.0% ready, 32.1% fuzzy.
Translated tutorial et: 0.1% ready, 0.0% fuzzy.
Translated tutorial fi: 0.1% ready, 0.1% fuzzy.
Translated tutorial fr: 99.8% ready, 0.0% fuzzy.
Translated tutorial gl: 0.0% ready, 0.0% fuzzy.
Translated tutorial hi: 0.0% ready, 0.0% fuzzy.
Translated tutorial hu: 1.4% ready, 0.3% fuzzy.
Translated tutorial id: 2.4% ready, 0.1% fuzzy.
Translated tutorial is: 12.5% ready, 2.7% fuzzy.
Translated tutorial it: 99.8% ready, 5.9% fuzzy.
Translated tutorial ja: 87.3% ready, 7.5% fuzzy.
Translated tutorial ko: 3.1% ready, 0.3% fuzzy.
Translated tutorial nb: 21.4% ready, 3.2% fuzzy.
Translated tutorial nl: 96.0% ready, 1.8% fuzzy.
Translated tutorial pl: 91.0% ready, 3.2% fuzzy.
Translated tutorial pt: 70.4% ready, 5.6% fuzzy.
Translated tutorial pt-BR: 37.3% ready, 2.6% fuzzy.
Translated tutorial ro: 88.1% ready, 7.9% fuzzy.
Translated tutorial ru: 99.5% ready, 17.7% fuzzy.
Translated tutorial sl: 3.5% ready, 0.4% fuzzy.
Translated tutorial sv: 8.0% ready, 0.3% fuzzy.
Translated tutorial tr: 3.7% ready, 0.1% fuzzy.
Translated tutorial zh-Hans: 24.6% ready, 0.6% fuzzy.
Translated tutorial zh-Hk: 0.0% ready, 0.0% fuzzy.
Translated tutorial zh-TW: 2.5% ready, 0.4% fuzzy.
Generating docs for the Qt GUI...

C:\Dev\sonic-pi-4.4.0\app>copy /Y gui\qt\utils\ruby_help.tmpl gui\qt\utils\ruby_help.h
        1 file(s) copied.

C:\Dev\sonic-pi-4.4.0\app>server\native\ruby\bin\ruby server/ruby/bin/qt-doc.rb

C:\Dev\sonic-pi-4.4.0\app>cd C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>cd C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>call win-config.bat Release

C:\Dev\sonic-pi-4.4.0\app>set WORKING_DIR=C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>set CONFIG=Release

C:\Dev\sonic-pi-4.4.0\app>cd C:\Dev\sonic-pi-4.4.0\app\

C:\Dev\sonic-pi-4.4.0\app>if /I "Release" == "" (set CONFIG=Release )
"Creating build directory..."

C:\Dev\sonic-pi-4.4.0\app>mkdir build  1>nul
A subdirectory or file build already exists.
"Generating project files..."

C:\Dev\sonic-pi-4.4.0\app>cd build

C:\Dev\sonic-pi-4.4.0\app\build>cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release ..\
-- CMakeLists: Sonic Pi
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- TARGET_WIN
-- System: Windows-10.0.22631
-- Compiler: MSVC
-- Compiler Version: 19.38.33134.0
-- Debug Flags: /MDd /Zi /Ob0 /Od /RTC1 -D_DEBUG -DDEBUG
-- Release Flags: /MD /O2 /Ob2 /DNDEBUG
-- Externals Builder
-- USE_SYSTEM_LIBS: OFF
CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:834 (_find_package):
  Could not find a package configuration file provided by "SndFile" with any
  of the following names:

    SndFileConfig.cmake
    sndfile-config.cmake

  Add the installation prefix of "SndFile" to CMAKE_PREFIX_PATH or set
  "SndFile_DIR" to a directory containing one of the above files.  If
  "SndFile" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  external/CMakeLists.txt:40 (find_package)

-- Configuring incomplete, errors occurred!

C:\Dev\sonic-pi-4.4.0\app\build>cd C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>call win-build-gui.bat Release

C:\Dev\sonic-pi-4.4.0\app>set WORKING_DIR=C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>set CONFIG=Release

C:\Dev\sonic-pi-4.4.0\app>if /I "Release" == "" (set CONFIG=Release )

C:\Dev\sonic-pi-4.4.0\app>cd C:\Dev\sonic-pi-4.4.0\app\

C:\Dev\sonic-pi-4.4.0\app>cd build

C:\Dev\sonic-pi-4.4.0\app\build>cmake --build . --config Release
MSBuild version 17.8.5+b5265ef37 for .NET Framework
MSBUILD : error MSB1009: Project file does not exist.
Switch: ALL_BUILD.vcxproj

C:\Dev\sonic-pi-4.4.0\app\build>cd C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>call win-post-tau-prod-release.bat

C:\Dev\sonic-pi-4.4.0\app>set WORKING_DIR=C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>cd C:\Dev\sonic-pi-4.4.0\app\
Compiling Erlang/Elixir files...

C:\Dev\sonic-pi-4.4.0\app>cd C:\Dev\sonic-pi-4.4.0\app\\server\beam\tau

C:\Dev\sonic-pi-4.4.0\app\server\beam\tau>set MIX_ENV=prod

C:\Dev\sonic-pi-4.4.0\app\server\beam\tau>cmd /c mix tau.release
* creating c:/Users/Jonny/.mix/archives/hex-2.0.6
* creating c:/Users/Jonny/.mix/elixir/1-16/rebar3
Resolving Hex dependencies...
Resolution completed in 0.339s
Unchanged:
  bunt 0.2.1
  castore 1.0.3
  cowboy 2.10.0
  cowboy_telemetry 0.4.0
  cowlib 2.12.1
  credo 1.7.0
  decimal 2.1.1
  ecto 3.10.2
  esbuild 0.7.1
  expo 0.4.1
  exsync 0.2.4
  file_system 0.2.10
  floki 0.34.3
  gettext 0.22.2
  heroicons 0.5.3
  jason 1.4.0
  logger_file_backend 0.0.13
  mime 2.0.5
  petal_components 1.2.9
  phoenix 1.7.6
  phoenix_ecto 4.4.2
  phoenix_html 3.3.1
  phoenix_live_dashboard 0.7.2
  phoenix_live_reload 1.4.1
  phoenix_live_view 0.18.18
  phoenix_pubsub 2.1.3
  phoenix_template 1.0.1
  plug 1.14.2
  plug_cowboy 2.6.1
  plug_crypto 1.2.5
  ranch 1.8.0
  rustler 0.29.0
  tailwind 0.2.1
  telemetry 1.2.1
  telemetry_metrics 0.6.1
  telemetry_poller 1.0.0
  toml 0.7.0
  websock 0.5.2
  websock_adapter 0.5.3
All dependencies are up to date

12:15:23.580 [debug] Downloading tailwind from https://github.com/tailwindlabs/tailwindcss/releases/download/v3.3.2/tailwindcss-windows-x64.exe

12:15:38.175 [debug] Downloading esbuild from https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz
src/tau_server/tau_server_api.erl:298:1: warning: function hydra_eval/1 is unused
Clean complete for "priv/static"

Rebuilding...

Done in 1626ms.

  ..\priv\static\assets\app.js  1.8mb

Done in 326ms
Check your digested files at "priv/static"
* assembling tau-0.1.0 on MIX_ENV=prod
* using config/runtime.exs to configure the release at runtime
* creating _build/prod/rel/tau/releases/0.1.0/vm.args
* creating _build/prod/rel/tau/releases/0.1.0/remote.vm.args
* creating _build/prod/rel/tau/releases/0.1.0/env.sh
* creating _build/prod/rel/tau/releases/0.1.0/env.bat

Release created at _build/prod/rel/tau

    # To start your system
    _build/prod/rel/tau/bin/tau start

Once the release is running:

    # To connect to it remotely
    _build/prod/rel/tau/bin/tau remote

    # To stop it gracefully (you may also send SIGINT/SIGTERM)
    _build/prod/rel/tau/bin/tau stop

To list all commands:

    _build/prod/rel/tau/bin/tau

TlDr; Localappdata\vcpkg\archived cleared and win-build re-ran, appears same issues on build

samaaron commented 9 months ago

Not sure what's specifically going wrong for you. I'm assuming you're attempting to build the latest from dev rather than stable?

I think that @ethancrawford is likely to be on the right track. vcpkg can have old stuff hanging around which can interfere with new builds. That said, it's building fine on my Windows machine and fine on the Github CI - so it definitely can build in some situations in its current form. Something must be not quite the same on your setup.

On a whim, I've updated to the latest vcpkg on Windows - so try completely nuking vcpkg - so the whole Sonic Pi src folder and the files Ethan mentioned, pull the latest version and try again.

Note that any other issues (tailwind etc.) should be ignored until the vcpkg stuff is working well.

ethancrawford commented 9 months ago

I'm not sure how critical the Visual Studio prompt targeting x86 is also, if vcpkg says it is "installing for x64-windows-static-md", but I've been using Visual Studio 2022 Developer Command Prompt, and haven't seen any warnings like that. It may or may not help to use the developer command prompt, and/or target it to the correct architecture, if you aren't already - there are instructions on how to do so at https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell?view=vs-2022#command-line-arguments for example 🤷‍♂️

iamjonny commented 9 months ago

Thanks for the hot tips!! 🙏🏻 I'd read mention elsewhere on "building from latest dev", when encountering issues trying to build the version that has that Hydra magic, and suggestions to use the v4.4 that doesn't have some web stuff...

I'd received a link to the commit for the version I wanted to build, and with that I downloaded the zip from github, then extracted contents... maybe this is available from the latest dev as mentioned...

I can download the https://github.com/sonic-pi-net/sonic-pi/archive/refs/heads/dev.zip version if that's recommended?

I have tried nuking the source directory previously, retrying that now...

The other notable differences include the versions of the apps I located, eg qt 6.4.3 etc (mentioned in first post here) and the OS (windows 11 pro)


C:\Dev\sonic-pi-4.4.0\app>win-build-all.bat

C:\Dev\sonic-pi-4.4.0\app>set WORKING_DIR=C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>set CONFIG=

C:\Dev\sonic-pi-4.4.0\app>if /I "" == "" (set CONFIG=Release )

C:\Dev\sonic-pi-4.4.0\app>call win-prebuild.bat

C:\Dev\sonic-pi-4.4.0\app>set WORKING_DIR=C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>cd C:\Dev\sonic-pi-4.4.0\app\

C:\Dev\sonic-pi-4.4.0\app>call win-pre-vcpkg.bat

C:\Dev\sonic-pi-4.4.0\app>set WORKING_DIR=C:\Dev\sonic-pi-4.4.0\app

C:\Dev\sonic-pi-4.4.0\app>cd C:\Dev\sonic-pi-4.4.0\app\

C:\Dev\sonic-pi-4.4.0\app>REM Build vcpkg

C:\Dev\sonic-pi-4.4.0\app>if not exist "vcpkg\" (
echo Cloning vcpkg
 git clone --depth 1 --branch 2022.11.14 https://github.com/microsoft/vcpkg.git vcpkg
)
Cloning vcpkg
Cloning into 'vcpkg'...
remote: Enumerating objects: 11612, done.
remote: Counting objects: 100% (11612/11612), done.
remote: Compressing objects: 100% (9907/9907), done.
remote: Total 11612 (delta 2561), reused 7942 (delta 1654), pack-reused 0
Receiving objects: 100% (11612/11612), 5.06 MiB | 625.00 KiB/s, done.
Resolving deltas: 100% (2561/2561), done.
Note: switching to '6f7ffeb18f99796233b958aaaf14ec7bd4fb64b2'.

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

Updating files: 100% (9511/9511), done.

C:\Dev\sonic-pi-4.4.0\app>set VCPKG_ROOT=C:\Dev\sonic-pi-4.4.0\app\/vcpkg

C:\Dev\sonic-pi-4.4.0\app>if not exist "vcpkg\vcpkg.exe" (
cd vcpkg
 echo Building vcpkg
 call bootstrap-vcpkg.bat -disableMetrics
 cd C:\Dev\sonic-pi-4.4.0\app\
)
Building vcpkg
Downloading https://github.com/microsoft/vcpkg-tool/releases/download/2022-11-10/vcpkg.exe -> C:\Dev\sonic-pi-4.4.0\app\vcpkg\vcpkg.exe... done.
Validating signature... done.

Installing Libraries
Computing installation plan...
The following packages will be built and installed:
    catch2[core]:x64-windows-static-md -> 3.1.1#2
    concurrentqueue[core]:x64-windows-static-md -> 1.0.3
    crossguid[core]:x64-windows-static-md -> 2021-10-22#2
  * egl-registry[core]:x64-windows-static-md -> 2021-11-23#1
    fmt[core]:x64-windows-static-md -> 9.1.0
    gl3w[core]:x64-windows-static-md -> 2018-05-31#4
    gsl-lite[core]:x64-windows-static-md -> 0.40.0
    kissfft[core]:x64-windows-static-md -> 2021-11-14
  * libflac[core]:x64-windows-static-md -> 1.3.4#1
  * libogg[core]:x64-windows-static-md -> 1.3.5
    libsndfile[core,external-libs]:x64-windows-static-md -> 1.1.0#1
  * libvorbis[core]:x64-windows-static-md -> 1.3.7#2
  * opengl-registry[core]:x64-windows-static-md -> 2021-11-17
  * opus[core]:x64-windows-static-md -> 1.3.1#9
    platform-folders[core]:x64-windows-static-md -> 4.1.0
    reproc[core]:x64-windows-static-md -> 14.2.4#1
    sdl2[core]:x64-windows-static-md -> 2.24.2
  * vcpkg-cmake[core]:x64-windows -> 2022-10-30
  * vcpkg-cmake-config[core]:x64-windows -> 2022-02-06#1
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
A suitable version of powershell-core was not found (required v7.2.6) Downloading portable powershell-core 7.2.6...
Downloading powershell-core...
https://github.com/PowerShell/PowerShell/releases/download/v7.2.6/PowerShell-7.2.6-win-x86.zip->C:\Dev\sonic-pi-4.4.0\app\vcpkg\downloads\PowerShell-7.2.6-win-x86.zip
Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.2.6/PowerShell-7.2.6-win-x86.zip
Extracting powershell-core...
Detecting compiler hash for triplet x64-windows-static-md...
Restored 0 package(s) from C:\Users\Jonny\AppData\Local\vcpkg\archives in 514.8 us. Use --debug to see more details.
Installing 1/19 vcpkg-cmake:x64-windows...
Building vcpkg-cmake[core]:x64-windows...
-- Installing: C:/Dev/sonic-pi-4.4.0/app/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake
-- Installing: C:/Dev/sonic-pi-4.4.0/app/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake
-- Installing: C:/Dev/sonic-pi-4.4.0/app/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake
-- Installing: C:/Dev/sonic-pi-4.4.0/app/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/vcpkg-port-config.cmake
-- Installing: C:/Dev/sonic-pi-4.4.0/app/vcpkg/packages/vcpkg-cmake_x64-windows/share/vcpkg-cmake/copyright
-- Performing post-build validation
-- Performing post-build validation done
A suitable version of 7zip was not found (required v21.7.0) Downloading portable 7zip 21.7.0...
Downloading 7zip...
https://www.7-zip.org/a/7z2107-extra.7z->C:\Dev\sonic-pi-4.4.0\app\vcpkg\downloads\7z2107-extra.7z
Downloading https://www.7-zip.org/a/7z2107-extra.7z
Extracting 7zip...
Stored binary cache: "C:\Users\Jonny\AppData\Local\vcpkg\archives\f4\f4f651869c3e72b83770e2193167beaee48ff4e82deb2db504b2c9771c7922bc.zip"
Elapsed time to handle vcpkg-cmake:x64-windows: 6.167 s
Installing 2/19 vcpkg-cmake-config:x64-windows...
Building vcpkg-cmake-config[core]:x64-windows...
-- Installing: C:/Dev/sonic-pi-4.4.0/app/vcpkg/packages/vcpkg-cmake-config_x64-windows/share/vcpkg-cmake-config/vcpkg_cmake_config_fixup.cmake
-- Installing: C:/Dev/sonic-pi-4.4.0/app/vcpkg/packages/vcpkg-cmake-config_x64-windows/share/vcpkg-cmake-config/vcpkg-port-config.cmake
-- Installing: C:/Dev/sonic-pi-4.4.0/app/vcpkg/packages/vcpkg-cmake-config_x64-windows/share/vcpkg-cmake-config/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: "C:\Users\Jonny\AppData\Local\vcpkg\archives\b5\b5f4fce06bdfad8e75e60a72b9d944827ef750c087f8d5bf4d331075615ad99a.zip"
Elapsed time to handle vcpkg-cmake-config:x64-windows: 134.8 ms
Installing 3/19 catch2:x64-windows-static-md...
Building catch2[core]:x64-windows-static-md...
warning: -- Using community triplet x64-windows-static-md. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\Dev\sonic-pi-4.4.0\app\vcpkg\triplets\community\x64-windows-static-md.cmake
-- Downloading https://github.com/catchorg/Catch2/archive/v3.1.1.tar.gz -> catchorg-Catch2-v3.1.1.tar.gz...
-- Extracting source C:/Dev/sonic-pi-4.4.0/app/vcpkg/downloads/catchorg-Catch2-v3.1.1.tar.gz
-- Applying patch fix-install-path.patch
-- Applying patch no-absolute-paths.patch
-- Using source at C:/Dev/sonic-pi-4.4.0/app/vcpkg/buildtrees/catch2/src/v3.1.1-75a9114e59.clean
-- Configuring x64-windows-static-md
-- Building x64-windows-static-md-dbg
-- Building x64-windows-static-md-rel
-- Fixing pkgconfig file: C:/Dev/sonic-pi-4.4.0/app/vcpkg/packages/catch2_x64-windows-static-md/lib/pkgconfig/catch2-with-main.pc
-- Fixing pkgconfig file: C:/Dev/sonic-pi-4.4.0/app/vcpkg/packages/catch2_x64-windows-static-md/lib/pkgconfig/catch2.pc
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst -> msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst...
-- Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst;https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst -> msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
Downloading https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Download failed -- retrying after 1000ms.Download failed -- retrying after 2000ms.Download failed -- retrying after 4000ms.Downloading https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
Downloading https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst
error: Failed to download from mirror set
error: https://repo.msys2.org/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://www2.futureware.at/~nickoe/msys2-mirror/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirrors.ustc.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.bit.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: WinHttpSendRequest() failed: 12007
https://mirror.selfnet.de/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404
https://mirrors.sjtug.sjtu.edu.cn/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst: failed: status code 404

[DEBUG] D:\a\_work\1\s\src\vcpkg\base\downloads.cpp(774):
[DEBUG] Time in subprocesses: 0 us
[DEBUG] Time in parsing JSON: 12 us
[DEBUG] Time in JSON reader: 0 us
[DEBUG] Time in filesystem: 10493 us
[DEBUG] Time in loading ports: 0 us
[DEBUG] Exiting after 39.77 s (39765484 us)

CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):

      Failed to download file with error: 1
      If you use a proxy, please check your proxy setting. Possible causes are:

      1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable
         to `https://address:port`. This is not correct, because `https://` prefix
         claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr
         , etc..) is an HTTP proxy. Try setting `http://address:port` to both
         HTTP_PROXY and HTTPS_PROXY instead.

      2. You are using Fiddler. Currently a bug (https://github.com/microsoft/vcpkg/issues/17752)
         will set HTTPS_PROXY to `https://fiddler_address:port` which lead to problem 1 above.
         Workaround is open Windows 10 Settings App, and search for Proxy Configuration page,
         Change `http=address:port;https=address:port` to `address`, and fill the port number.

      3. Your proxy's remote server is out of service.

      In future vcpkg releases, if you are using Windows, you no longer need to set
      HTTP(S)_PROXY environment variables. Vcpkg will simply apply Windows IE Proxy
      Settings set by your proxy software. See (https://github.com/microsoft/vcpkg-tool/pull/49)
      and (https://github.com/microsoft/vcpkg-tool/pull/77)

      Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues

Call Stack (most recent call first):
  scripts/cmake/vcpkg_download_distfile.cmake:273 (z_vcpkg_download_distfile_show_proxy_and_fail)
  scripts/cmake/vcpkg_acquire_msys.cmake:26 (vcpkg_download_distfile)
  scripts/cmake/vcpkg_acquire_msys.cmake:124 (z_vcpkg_acquire_msys_download_package)
  scripts/cmake/vcpkg_find_acquire_program.cmake:535 (vcpkg_acquire_msys)
  scripts/cmake/vcpkg_fixup_pkgconfig.cmake:151 (vcpkg_find_acquire_program)
  ports/catch2/portfile.cmake:26 (vcpkg_fixup_pkgconfig)
  scripts/ports.cmake:147 (include)

error: building catch2:x64-windows-static-md failed with: BUILD_FAILED
error: Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+catch2
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[catch2]+Build+error
Include '[catch2] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
    vcpkg-tool version: 2022-11-10-5fdee72bc1fceca198fb1ab7589837206a8b81ba
    vcpkg-scripts version: 6f7ffeb 2022-11-11 (1 year, 3 months ago)

Please use the prefilled template from C:\Dev\sonic-pi-4.4.0\app\vcpkg\installed\vcpkg\issue_body.md when reporting your issue.
Translating tutorial...
The system cannot find the path specified.
Generating docs for the Qt GUI...
        1 file(s) copied.
The system cannot find the path specified.
"Creating build directory..."
"Generating project files..."
-- CMakeLists: Sonic Pi
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- The C compiler identification is MSVC 19.38.33134.0
-- The CXX compiler identification is MSVC 19.38.33134.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- TARGET_WIN
-- System: Windows-10.0.22631
-- Compiler: MSVC
-- Compiler Version: 19.38.33134.0
-- Debug Flags: /MDd /Zi /Ob0 /Od /RTC1 -D_DEBUG -DDEBUG
-- Release Flags: /MD /O2 /Ob2 /DNDEBUG
-- Externals Builder
-- USE_SYSTEM_LIBS: OFF
CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:834 (_find_package):
  Could not find a package configuration file provided by "SndFile" with any
  of the following names:

    SndFileConfig.cmake
    sndfile-config.cmake

  Add the installation prefix of "SndFile" to CMAKE_PREFIX_PATH or set
  "SndFile_DIR" to a directory containing one of the above files.  If
  "SndFile" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  external/CMakeLists.txt:40 (find_package)

-- Configuring incomplete, errors occurred!
MSBuild version 17.8.5+b5265ef37 for .NET Framework
MSBUILD : error MSB1009: Project file does not exist.
Switch: ALL_BUILD.vcxproj
Compiling Erlang/Elixir files...
* creating c:/Users/Jonny/.mix/archives/hex-2.0.6
* creating c:/Users/Jonny/.mix/elixir/1-16/rebar3
Resolving Hex dependencies...
Resolution completed in 0.283s
Unchanged:
  bunt 0.2.1
  castore 1.0.3
  cowboy 2.10.0
  cowboy_telemetry 0.4.0
  cowlib 2.12.1
  credo 1.7.0
  decimal 2.1.1
  ecto 3.10.2
  esbuild 0.7.1
  expo 0.4.1
  exsync 0.2.4
  file_system 0.2.10
  floki 0.34.3
  gettext 0.22.2
  heroicons 0.5.3
  jason 1.4.0
  logger_file_backend 0.0.13
  mime 2.0.5
  petal_components 1.2.9
  phoenix 1.7.6
  phoenix_ecto 4.4.2
  phoenix_html 3.3.1
  phoenix_live_dashboard 0.7.2
  phoenix_live_reload 1.4.1
  phoenix_live_view 0.18.18
  phoenix_pubsub 2.1.3
  phoenix_template 1.0.1
  plug 1.14.2
  plug_cowboy 2.6.1
  plug_crypto 1.2.5
  ranch 1.8.0
  rustler 0.29.0
  tailwind 0.2.1
  telemetry 1.2.1
  telemetry_metrics 0.6.1
  telemetry_poller 1.0.0
  toml 0.7.0
  websock 0.5.2
  websock_adapter 0.5.3
* Getting phoenix (Hex package)
* Getting phoenix_html (Hex package)
* Getting phoenix_live_reload (Hex package)
* Getting phoenix_live_view (Hex package)
* Getting heroicons (Hex package)
* Getting floki (Hex package)
* Getting phoenix_live_dashboard (Hex package)
* Getting esbuild (Hex package)
* Getting tailwind (Hex package)
* Getting telemetry_metrics (Hex package)
* Getting telemetry_poller (Hex package)
* Getting gettext (Hex package)
* Getting jason (Hex package)
* Getting plug_cowboy (Hex package)
* Getting petal_components (Hex package)
* Getting exsync (Hex package)
* Getting rustler (Hex package)
* Getting logger_file_backend (Hex package)
* Getting credo (Hex package)
* Getting bunt (Hex package)
* Getting file_system (Hex package)
* Getting toml (Hex package)
* Getting phoenix_ecto (Hex package)
* Getting ecto (Hex package)
* Getting plug (Hex package)
* Getting mime (Hex package)
* Getting plug_crypto (Hex package)
* Getting telemetry (Hex package)
* Getting decimal (Hex package)
* Getting cowboy (Hex package)
* Getting cowboy_telemetry (Hex package)
* Getting cowlib (Hex package)
* Getting ranch (Hex package)
* Getting expo (Hex package)
* Getting castore (Hex package)
* Getting phoenix_template (Hex package)
* Getting phoenix_pubsub (Hex package)
* Getting websock_adapter (Hex package)
* Getting websock (Hex package)
You have added/upgraded packages you could sponsor, run `mix hex.sponsor` to learn more
==> logger_file_backend
Compiling 1 file (.ex)
Generated logger_file_backend app
==> decimal
Compiling 4 files (.ex)
Generated decimal app
==> mime
Compiling 1 file (.ex)
Generated mime app
==> toml
Compiling 10 files (.ex)
Generated toml app
===> Analyzing applications...
===> Compiling telemetry
==> telemetry_metrics
Compiling 7 files (.ex)
Generated telemetry_metrics app
===> Analyzing applications...
===> Compiling telemetry_poller
==> jason
Compiling 10 files (.ex)
Generated jason app
warning: in order to compile .yrl files, you must add "compilers: [:yecc] ++ Mix.compilers()" to the "def project" section of expo's mix.exs
  (mix 1.16.1) lib/mix/tasks/compile.yecc.ex:70: Mix.Tasks.Compile.Yecc.preload/1
  (mix 1.16.1) lib/mix/compilers/erlang.ex:66: Mix.Compilers.Erlang.compile/6
  (mix 1.16.1) lib/mix/task.ex:478: anonymous fn/3 in Mix.Task.run_task/5
  (mix 1.16.1) lib/mix/tasks/compile.all.ex:124: Mix.Tasks.Compile.All.run_compiler/2
  (mix 1.16.1) lib/mix/tasks/compile.all.ex:104: Mix.Tasks.Compile.All.compile/4
  (mix 1.16.1) lib/mix/tasks/compile.all.ex:93: Mix.Tasks.Compile.All.with_logger_app/2

==> expo
Compiling 2 files (.erl)
Compiling 21 files (.ex)
Generated expo app
==> phoenix_pubsub
Compiling 11 files (.ex)
Generated phoenix_pubsub app
==> plug_crypto
Compiling 5 files (.ex)
Generated plug_crypto app
==> gettext
Compiling 17 files (.ex)
     warning: macro ends_in/2 is unused
     │
 251 │   defmacrop ends_in(n, digits) do
     │             ~
     │
     └─ lib/gettext/plural.ex:251:13: Gettext.Plural (module)

Generated gettext app
===> Analyzing applications...
===> Compiling ranch
==> ecto
Compiling 56 files (.ex)
     warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
     │
 474 │       Logger.warn """
     │              ~
     │
     └─ lib/ecto/changeset/relation.ex:474:14: Ecto.Changeset.Relation.process_current/3

     warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
     │
 208 │           Logger.warn """
     │                  ~
     │
     └─ lib/ecto/repo/preloader.ex:208:18: Ecto.Repo.Preloader.fetch_ids/4

      warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
      │
 3143 │       Logger.warn """
      │              ~
      │
      └─ lib/ecto/changeset.ex:3143:14: Ecto.Changeset.optimistic_lock/3

Generated ecto app
==> rustler
Compiling 7 files (.ex)
Generated rustler app
==> plug
Compiling 1 file (.erl)
Compiling 40 files (.ex)
Generated plug app
==> phoenix_html
Compiling 9 files (.ex)
Generated phoenix_html app
==> phoenix_template
Compiling 4 files (.ex)
Generated phoenix_template app
==> castore
Compiling 1 file (.ex)
Generated castore app
==> esbuild
Compiling 3 files (.ex)
    warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
    │
 69 │       Logger.warn("""
    │              ~
    │
    └─ lib/esbuild.ex:69:14: Esbuild.start/2

    warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
    │
 83 │         Logger.warn("""
    │                ~
    │
    └─ lib/esbuild.ex:83:16: Esbuild.start/2

Generated esbuild app
==> tailwind
Compiling 3 files (.ex)
    warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
    │
 72 │       Logger.warn("""
    │              ~
    │
    └─ lib/tailwind.ex:72:14: Tailwind.start/2

    warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
    │
 86 │         Logger.warn("""
    │                ~
    │
    └─ lib/tailwind.ex:86:16: Tailwind.start/2

Generated tailwind app
==> websock
Compiling 1 file (.ex)
Generated websock app
===> Analyzing applications...
===> Compiling cowlib
===> Analyzing applications...
===> Compiling cowboy
===> Analyzing applications...
===> Compiling cowboy_telemetry
==> plug_cowboy
Compiling 5 files (.ex)
     warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
     │
 352 │       Logger.warn("the :timeout option for Cowboy webserver has no effect and must be removed")
     │              ~
     │
     └─ lib/plug/cowboy.ex:352:14: Plug.Cowboy.to_args/5

Generated plug_cowboy app
==> websock_adapter
Compiling 2 files (.ex)
Generated websock_adapter app
==> phoenix
Compiling 71 files (.ex)
Generated phoenix app
==> phoenix_live_view
Compiling 35 files (.ex)
Generated phoenix_live_view app
==> heroicons
Compiling 3 files (.ex)
Compiling lib/heroicons.ex (it's taking more than 10s)
Generated heroicons app
==> phoenix_live_dashboard
Compiling 40 files (.ex)
Generated phoenix_live_dashboard app
==> phoenix_ecto
Compiling 7 files (.ex)
Generated phoenix_ecto app
==> petal_components
Compiling 29 files (.ex)
Generated petal_components app

13:13:27.191 [debug] Downloading tailwind from https://github.com/tailwindlabs/tailwindcss/releases/download/v3.3.2/tailwindcss-windows-x64.exe

13:13:35.888 [debug] Downloading esbuild from https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz
==> tau
Compiling 14 files (.erl)
src/tau_server/tau_server_api.erl:298:1: Warning: function hydra_eval/1 is unused
%  298| hydra_eval(Code) ->
%     | ^

Compiling 17 files (.ex)
Generated tau app
Clean complete for "priv/static"

Rebuilding...

Done in 1335ms.

  ..\priv\static\assets\app.js  1.8mb

Done in 351ms
Check your digested files at "priv/static"
* assembling tau-0.1.0 on MIX_ENV=prod
* using config/runtime.exs to configure the release at runtime
* creating _build/prod/rel/tau/releases/0.1.0/vm.args
* creating _build/prod/rel/tau/releases/0.1.0/remote.vm.args
* creating _build/prod/rel/tau/releases/0.1.0/env.sh
* creating _build/prod/rel/tau/releases/0.1.0/env.bat

Release created at _build/prod/rel/tau

    # To start your system
    _build/prod/rel/tau/bin/tau start

Once the release is running:

    # To connect to it remotely
    _build/prod/rel/tau/bin/tau remote

    # To stop it gracefully (you may also send SIGINT/SIGTERM)
    _build/prod/rel/tau/bin/tau stop

To list all commands:

    _build/prod/rel/tau/bin/tau
ethancrawford commented 9 months ago

In case it's relevant, When I tested this yesterday I was building latest commit on dev at the time, which was referencing vcpkg 2023.10.19. (Sam updated it even further a little earlier today also.) Maybe there's a specific issue with 2022.11.14 causing the mirrors for libwinpthread to fail? 🤷‍♂️

Incidentally, I had first succeeded a few days before that even with latest dev, no issues with vcpkg at the time - but I had specified Qt 6.6 something, and although it compiled, keyboard shortcuts stopped working! Downgrading to 6.4.3 worked. Good you chose that version 😅

iamjonny commented 9 months ago

I'm not sure how critical the Visual Studio prompt targeting x86 is also, if vcpkg says it is "installing for x64-windows-static-md", but I've been using Visual Studio 2022 Developer Command Prompt, and haven't seen any warnings like that. It may or may not help to use the developer command prompt, and/or target it to the correct architecture, if you aren't already - there are instructions on how to do so at https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell?view=vs-2022#command-line-arguments for example 🤷‍♂️

Many Thanks for this too - I had tried to work out where in the commands called by the scripts that the arguments should be added for targeting, but got lost and intimidated by all the files in the cmake scripts - I'll revisit this now, to try to resolve he targeting issue - FWIW I am running from the vs dev command prompt; I'd ordered my active processes by architecture and noticed a build application was one of the few x86 processes running.

iamjonny commented 9 months ago

I'm just about to retry with latest dev, if I run git clone https://github.com/sonic-pi-net/sonic-pi.git C:\dev\sonic-pi-dev will that nuke the folder for fresh start, or is it recommended/required to first clear the folder?

(Just wondering for future reference, eg what to purge when, and maybe to make a batch cleaner for tidying up stuff like the vcpkg folders, and anything else that should be wiped)

Latest attempt!

re: target architecture I think the argument to add is -arch=amd64 , added this to the vs_dev_prompt target that the startmenu shortcut points to, eg

%comspec% /k "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -arch=amd64

just waiting for objects to be received from git, then I'll relaunch the new, targeted dev-prompt and retry as per build instructions...

image

ethancrawford commented 9 months ago

not sure if normal, or wrong - my "incredibuild" directory was reportedly created ~ 2/2/24, and currently I don't have any other (x64) buildservice.exe

No idea tbh - I don't really know all that much about the windows/visual studio build toolchain 😅

iamjonny commented 9 months ago

Seems that 32-bit app is normal and okay, I won't muck with that unless I encounter memory issues. Related info, from Victor on the IntelliBuild team

Although I was able to fetch sonic-pi the vcpkg fails; am wondering if possible to get this via browser with d/l manager, and if that'll help here.

image

Because the wifi password is not known (sharing with QR) I'm using hotspot on mobile, but apparently a mobile hotspot is not a proxy...

image

Another great page on SO re the issues with git clone and curl helped configure verbose logging https://stackoverflow.com/questions/6842687/the-remote-end-hung-up-unexpectedly-while-git-cloning

image

I tried adjusting the http lowLimit but still getting the issue...

git config --global http.lowSpeedLimit 1000
git config --global http.lowSpeedTime 600

but after repeated calls to git clone vcpkg it finally finished ok (I think!), so ran win-build-all... and the latest dev appears to be building 😲

Thank you all so much for all your assistance and saint-like patience!!! 🙏 🤘🏻 🤞

iamjonny commented 9 months ago

just one more thing before I close this as solved 😁 I just wondered, if I'm rebuilding after changes, is it possible to do so now without an internet connection? eg offline build process?

if possible, do I have to do anything to make the build process not try to download stuff (that presumably I now finally have) ?

THANK YOU SO MUCH!!!!