# Error building system image on Windows

**URL:** <https://discourse.julialang.org/t/error-building-system-image-on-windows/5815>\
**Category:** General Usage\
**Created:** [September 11, 2017, 1:54am UTC](https://discourse.julialang.org/t/error-building-system-image-on-windows/5815 "2017-09-11T01:54:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [September 11, 2017, 1:54am UTC](https://discourse.julialang.org/t/error-building-system-image-on-windows/5815/1 "2017-09-11T01:54:47Z")

</div>

I’m trying to the build system image for Julia v0.7:

```julia
Julia-0.7.0-DEV> include(joinpath(JULIA_HOME, Base.DATAROOTDIR, "julia", "build_sysimg.jl"))

Julia-0.7.0-DEV> build_sysimg(force=true) # cpu_target="native"

```

After a lot of messages, including some warnings I receive this:

```julia
INFO: Linking sys.dll
INFO: C:\Users\plowman\.julia\v0.7\WinRPM\deps\usr\x86_64-w64-mingw32\sys-root\mingw\bin\gcc.exe -LC:\Users\plowman\Julia-0.7.0-DEV\bin -shared -ljulia -lssp -o C:\Users\plowman\Julia-0.7.0-DEV\lib\julia\sys.dll C:\Users\plowman\Julia-0.7.0-DEV\lib\julia\sys.o
gcc.exe: fatal error: -fuse-linker-plugin, but liblto_plugin-0.dll not found
compilation terminated.
INFO: System image successfully built at C:\Users\plowman\Julia-0.7.0-DEV\lib\julia\sys.dll
INFO: Julia will automatically load this system image at next startup.

```

Notice that although it reports “System image successfully built”, there is in fact a fatal error and `sys.dll` is not created.

**Looks like `liblto_plugin-0.dll` is missing.**

This works for me on Julia v0.5 and v0.6

I’d appreciate any help with this. Thanks!
