Error when building Gtk.jl on Julia 1.0.0, Windows 10

edit: There was some interference with other programs. Creating a new user or reinstalling Windows solves this issue.


I’m trying to build Gtk.jl with Julia 1.0.0 but I keep getting a build error which I cannot resolve. I read all the GitHub issues and forum entries I could find in this topic, but nothing has worked.

I built Gtk.jl without any error on another (freshly installed) Window 10 machine, but on my machine, I always run into this build error. I also tried to reinstalling Julia, deleting the contents of the .julia directory, and reinstalling MSYS2 without any luck. I need Gtk for one of my projects, and I hope that there is a better alternative than reinstalling Windows.

build.log:

(glib-compile-schemas.exe:11800): GLib-CRITICAL **: 04:22:10.181: g_dir_open_with_errno: assertion 'wpath != NULL' failed
Fehler beim Öffnen des Ordners »(NULL)«: No error
[ Info: Multiple package candidates found for mingw64(libjpeg-8.dll), picking newest.
┌ Info: Packages to install: 
└   join(names(todo), ", ") = "liblzma5, libepoxy0, libjasper4, gtk3-data, gtk2-lang, libjpeg8, libtiff5, gtk3-lang, libatk-1_0-0, libcairo-gobject2, libgdk_pixbuf-2_0-0, libgmodule-2_0-0, libgtk-3-0, libgio-2_0-0, gtk2, gnome-icon-theme-symbolic, gnome-icon-theme-extras, gnome-icon-theme, tango-icon-theme, hicolor-icon-theme, gdk-pixbuf-query-loaders, pango-tools, gtk2-tools, gtk3-tools, glib2-tools"
┌ Info: Downloading: 
└   name = "liblzma5"
┌ Info: Extracting: 
└   name = "liblzma5"
┌ Info: Downloading: 
└   name = "libepoxy0"
┌ Info: Extracting: 
└   name = "libepoxy0"
┌ Info: Downloading: 
└   name = "libjasper4"
┌ Info: Extracting: 
└   name = "libjasper4"
┌ Info: Downloading: 
└   name = "gtk3-data"
┌ Info: Extracting: 
└   name = "gtk3-data"
┌ Info: Downloading: 
└   name = "gtk2-lang"
┌ Info: Extracting: 
└   name = "gtk2-lang"
┌ Info: Downloading: 
└   name = "libjpeg8"
┌ Info: Extracting: 
└   name = "libjpeg8"
┌ Info: Downloading: 
└   name = "libtiff5"
┌ Info: Extracting: 
└   name = "libtiff5"
┌ Info: Downloading: 
└   name = "gtk3-lang"
┌ Info: Extracting: 
└   name = "gtk3-lang"
┌ Info: Downloading: 
└   name = "libatk-1_0-0"
┌ Info: Extracting: 
└   name = "libatk-1_0-0"
┌ Info: Downloading: 
└   name = "libcairo-gobject2"
┌ Info: Extracting: 
└   name = "libcairo-gobject2"
┌ Info: Downloading: 
└   name = "libgdk_pixbuf-2_0-0"
┌ Info: Extracting: 
└   name = "libgdk_pixbuf-2_0-0"
┌ Info: Downloading: 
└   name = "libgmodule-2_0-0"
┌ Info: Extracting: 
└   name = "libgmodule-2_0-0"
┌ Info: Downloading: 
└   name = "libgtk-3-0"
┌ Info: Extracting: 
└   name = "libgtk-3-0"
┌ Info: Downloading: 
└   name = "libgio-2_0-0"
┌ Info: Extracting: 
└   name = "libgio-2_0-0"
┌ Info: Downloading: 
└   name = "gtk2"
┌ Info: Extracting: 
└   name = "gtk2"
┌ Info: Downloading: 
└   name = "gnome-icon-theme-symbolic"
┌ Info: Extracting: 
└   name = "gnome-icon-theme-symbolic"
┌ Info: Downloading: 
└   name = "gnome-icon-theme-extras"
┌ Info: Extracting: 
└   name = "gnome-icon-theme-extras"
┌ Info: Downloading: 
└   name = "gnome-icon-theme"
┌ Info: Extracting: 
└   name = "gnome-icon-theme"
┌ Info: Downloading: 
└   name = "tango-icon-theme"
┌ Info: Extracting: 
└   name = "tango-icon-theme"
┌ Info: Downloading: 
└   name = "hicolor-icon-theme"
┌ Info: Extracting: 
└   name = "hicolor-icon-theme"
┌ Info: Downloading: 
└   name = "gdk-pixbuf-query-loaders"
┌ Info: Extracting: 
└   name = "gdk-pixbuf-query-loaders"
┌ Info: Downloading: 
└   name = "pango-tools"
┌ Info: Extracting: 
└   name = "pango-tools"
┌ Info: Downloading: 
└   name = "gtk2-tools"
┌ Info: Extracting: 
└   name = "gtk2-tools"
┌ Info: Downloading: 
└   name = "gtk3-tools"
┌ Info: Extracting: 
└   name = "gtk3-tools"
┌ Info: Downloading: 
└   name = "glib2-tools"
┌ Info: Extracting: 
└   name = "glib2-tools"
[ Info: Complete
ERROR: LoadError: failed process: Process(`'C:\Users\Patrik Plöchl\.julia\packages\WinRPM\Y9QdZ\src\..\deps\usr\x86_64-w64-mingw32\sys-root\mingw\bin/glib-compile-schemas' 'C:\Users\Patrik Plöchl\.julia\packages\WinRPM\Y9QdZ\src\..\deps\usr\x86_64-w64-mingw32\sys-root\mingw\bin/../share/glib-2.0/schemas'`, ProcessExited(1)) [1]
Stacktrace:
[1] pipeline_error at .\process.jl:695 [inlined]
[2] #run#505(::Bool, ::Function, ::Cmd) at .\process.jl:653
[3] run(::Cmd) at .\process.jl:651
[4] top-level scope at C:\Users\Patrik Plöchl\.julia\packages\Gtk\ADDrn\deps\build.jl:40
[5] include(::String) at .\client.jl:388
[6] top-level scope at none:0
in expression starting at C:\Users\Patrik Plöchl\.julia\packages\Gtk\ADDrn\deps\build.jl:24

console:

julia> Pkg.add("Gtk")
   Cloning default registries into C:\Users\Patrik Plöchl\.julia\registries
   Cloning registry General from "https://github.com/JuliaRegistries/General.git"
  Updating registry at `C:\Users\Patrik Plöchl\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
 Installed WinRPM ──────────── v0.4.2
 Installed HTTPClient ──────── v0.2.1
 Installed BinDeps ─────────── v0.8.10
 Installed Compat ──────────── v1.2.0
 Installed ColorTypes ──────── v0.7.5
 Installed Homebrew ────────── v0.7.0
 Installed JSON ────────────── v0.19.0
 Installed Gtk ─────────────── v0.16.4
 Installed Reexport ────────── v0.2.0
 Installed NaNMath ─────────── v0.3.2
 Installed Libz ────────────── v1.0.0
 Installed LibCURL ─────────── v0.4.1
 Installed BufferedStreams ─── v1.0.0
 Installed LibExpat ────────── v0.5.0
 Installed BinaryProvider ──── v0.5.0
 Installed Graphics ────────── v0.4.0
 Installed FixedPointNumbers ─ v0.5.3
 Installed URIParser ───────── v0.4.0
 Installed Colors ──────────── v0.9.4
 Installed Cairo ───────────── v0.5.6
  Updating `C:\Users\Patrik Plöchl\.julia\environments\v1.0\Project.toml`
  [4c0ca9eb] + Gtk v0.16.4
  Updating `C:\Users\Patrik Plöchl\.julia\environments\v1.0\Manifest.toml`
  [9e28174c] + BinDeps v0.8.10
  [b99e7846] + BinaryProvider v0.5.0
  [e1450e63] + BufferedStreams v1.0.0
  [159f3aea] + Cairo v0.5.6
  [3da002f7] + ColorTypes v0.7.5
  [5ae59095] + Colors v0.9.4
  [34da2185] + Compat v1.2.0
  [53c48c17] + FixedPointNumbers v0.5.3
  [a2bd30eb] + Graphics v0.4.0
  [4c0ca9eb] + Gtk v0.16.4
  [0862f596] + HTTPClient v0.2.1
  [d9be37ee] + Homebrew v0.7.0
  [682c06a0] + JSON v0.19.0
  [b27032c2] + LibCURL v0.4.1
  [522f3ed2] + LibExpat v0.5.0
  [2ec943e9] + Libz v1.0.0
  [77ba4419] + NaNMath v0.3.2
  [189a3867] + Reexport v0.2.0
  [30578b45] + URIParser v0.4.0
  [c17dfb99] + WinRPM v0.4.2
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [8bb1440f] + DelimitedFiles
  [8ba89e20] + Distributed
  [b77e0a4c] + InteractiveUtils
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [a63ad114] + Mmap
  [44cfe95a] + Pkg
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [1a1011a3] + SharedArrays
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays
  [10745b16] + Statistics
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  Building LibCURL ─→ `C:\Users\Patrik Plöchl\.julia\packages\LibCURL\OoXMv\deps\build.log`
  Building WinRPM ──→ `C:\Users\Patrik Plöchl\.julia\packages\WinRPM\Y9QdZ\deps\build.log`
  Building Homebrew → `C:\Users\Patrik Plöchl\.julia\packages\Homebrew\l8kUw\deps\build.log`
  Building Cairo ───→ `C:\Users\Patrik Plöchl\.julia\packages\Cairo\CXPG1\deps\build.log`
  Building Gtk ─────→ `C:\Users\Patrik Plöchl\.julia\packages\Gtk\ADDrn\deps\build.log`
┌ Error: Error building `Gtk`, showing the last 100 of log:
│ └   name = "libjasper4"
│ ┌ Info: Extracting:
│ └   name = "libjasper4"
│ ┌ Info: Downloading:
│ └   name = "gtk3-data"
│ ┌ Info: Extracting:
│ └   name = "gtk3-data"
│ ┌ Info: Downloading:
│ └   name = "gtk2-lang"
│ ┌ Info: Extracting:
│ └   name = "gtk2-lang"
│ ┌ Info: Downloading:
│ └   name = "libjpeg8"
│ ┌ Info: Extracting:
│ └   name = "libjpeg8"
│ ┌ Info: Downloading:
│ └   name = "libtiff5"
│ ┌ Info: Extracting:
│ └   name = "libtiff5"
│ ┌ Info: Downloading:
│ └   name = "gtk3-lang"
│ ┌ Info: Extracting:
│ └   name = "gtk3-lang"
│ ┌ Info: Downloading:
│ └   name = "libatk-1_0-0"
│ ┌ Info: Extracting:
│ └   name = "libatk-1_0-0"
│ ┌ Info: Downloading:
│ └   name = "libcairo-gobject2"
│ ┌ Info: Extracting:
│ └   name = "libcairo-gobject2"
│ ┌ Info: Downloading:
│ └   name = "libgdk_pixbuf-2_0-0"
│ ┌ Info: Extracting:
│ └   name = "libgdk_pixbuf-2_0-0"
│ ┌ Info: Downloading:
│ └   name = "libgmodule-2_0-0"
│ ┌ Info: Extracting:
│ └   name = "libgmodule-2_0-0"
│ ┌ Info: Downloading:
│ └   name = "libgtk-3-0"
│ ┌ Info: Extracting:
│ └   name = "libgtk-3-0"
│ ┌ Info: Downloading:
│ └   name = "libgio-2_0-0"
│ ┌ Info: Extracting:
│ └   name = "libgio-2_0-0"
│ ┌ Info: Downloading:
│ └   name = "gtk2"
│ ┌ Info: Extracting:
│ └   name = "gtk2"
│ ┌ Info: Downloading:
│ └   name = "gnome-icon-theme-symbolic"
│ ┌ Info: Extracting:
│ └   name = "gnome-icon-theme-symbolic"
│ ┌ Info: Downloading:
│ └   name = "gnome-icon-theme-extras"
│ ┌ Info: Extracting:
│ └   name = "gnome-icon-theme-extras"
│ ┌ Info: Downloading:
│ └   name = "gnome-icon-theme"
│ ┌ Info: Extracting:
│ └   name = "gnome-icon-theme"
│ ┌ Info: Downloading:
│ └   name = "tango-icon-theme"
│ ┌ Info: Extracting:
│ └   name = "tango-icon-theme"
│ ┌ Info: Downloading:
│ └   name = "hicolor-icon-theme"
│ ┌ Info: Extracting:
│ └   name = "hicolor-icon-theme"
│ ┌ Info: Downloading:
│ └   name = "gdk-pixbuf-query-loaders"
│ ┌ Info: Extracting:
│ └   name = "gdk-pixbuf-query-loaders"
│ ┌ Info: Downloading:
│ └   name = "pango-tools"
│ ┌ Info: Extracting:
│ └   name = "pango-tools"
│ ┌ Info: Downloading:
│ └   name = "gtk2-tools"
│ ┌ Info: Extracting:
│ └   name = "gtk2-tools"
│ ┌ Info: Downloading:
│ └   name = "gtk3-tools"
│ ┌ Info: Extracting:
│ └   name = "gtk3-tools"
│ ┌ Info: Downloading:
│ └   name = "glib2-tools"
│ ┌ Info: Extracting:
│ └   name = "glib2-tools"
│ [ Info: Complete
│ ERROR: LoadError: failed process: Process(`'C:\Users\Patrik Plöchl\.julia\packages\WinRPM\Y9QdZ\src\..\deps\usr\x86_64-w64-mingw32\sys-root\mingw\bin/glib-compile-schemas' 'C:\Users\Patrik Plöchl\.julia\packages\WinRPM\Y9QdZ\src\..\deps\usr\x86_64-w64-mingw32\sys-root\mingw\bin/../share/glib-2.0/schemas'`, ProcessExited(1)) [1]
│ Stacktrace:
│  [1] pipeline_error at .\process.jl:695 [inlined]
│  [2] #run#505(::Bool, ::Function, ::Cmd) at .\process.jl:653
│  [3] run(::Cmd) at .\process.jl:651
│  [4] top-level scope at C:\Users\Patrik Plöchl\.julia\packages\Gtk\ADDrn\deps\build.jl:40
│  [5] include(::String) at .\client.jl:388
│  [6] top-level scope at none:0
│ in expression starting at C:\Users\Patrik Plöchl\.julia\packages\Gtk\ADDrn\deps\build.jl:24
│
│ Full log at C:\Users\Patrik Plöchl\.julia\packages\Gtk\ADDrn\deps\build.log
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1068

Any idea how I might fix this?