Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

RLS doesn't release handles on Windows preventing to build projects from VSCode #810

Closed
shmutalov opened this issue Apr 5, 2018 · 1 comment

Comments

@shmutalov
Copy link

rust-lang/vscode-rust#294

C:\Users\Sherzod Mutalov>rls --version
rls-preview 0.126.0-nightly (f5a0c91 2018-03-26)

VSCode Insiders version 1.22.0-insider x64

Log:

> Executing task: cargo check <

   Compiling winapi-x86_64-pc-windows-gnu v0.4.0
   Compiling bitflags v1.0.1
   Compiling cfg-if v0.1.2
   Compiling winapi v0.3.4
   Compiling nodrop v0.1.12
   Compiling khronos_api v2.1.0
   Compiling lazy_static v1.0.0
   Compiling scopeguard v0.3.3
   Compiling memoffset v0.2.1
   Compiling num-traits v0.2.2
   Compiling unicode-xid v0.0.4
   Compiling cc v1.0.9
   Compiling libc v0.2.40
   Compiling rayon-core v1.4.0
   Compiling unicode-xid v0.1.0
   Compiling quote v0.3.15
   Compiling winapi-build v0.1.1
   Compiling either v1.5.0
   Compiling typenum v1.10.0
   Compiling matrixmultiply v0.1.14
   Compiling byteorder v1.2.1
   Compiling adler32 v1.0.2
   Compiling winapi v0.2.8
   Compiling void v1.0.2
   Compiling rustc-serialize v0.3.24
   Compiling bitflags v0.7.0
   Compiling rawpointer v0.1.0
   Compiling approx v0.1.1
   Compiling lzw v0.10.0
   Compiling lazy_static v0.2.11
   Compiling odds v0.2.26
   Compiling atom v0.3.4
   Compiling color_quant v1.0.0
   Compiling claxon v0.3.1
   Compiling serde v1.0.36
   Compiling mopa v0.2.2
   Compiling scoped_threadpool v0.1.9
   Compiling hound v1.1.0
   Compiling smallvec v0.4.4
   Compiling fnv v1.0.6
   Compiling podio v0.1.6
   Compiling rand_core v0.1.0-pre.0
   Compiling base64 v0.1.1
   Compiling tuple_utils v0.2.0
   Compiling crossbeam v0.3.2
   Compiling json v0.11.13
   Compiling xml-rs v0.7.0
   Compiling crossbeam-utils v0.2.2
   Compiling log v0.4.1
   Compiling sdl2-sys v0.31.0
   Compiling arrayvec v0.4.7
   Compiling synom v0.11.3
   Compiling num-traits v0.1.43
   Compiling num-integer v0.1.36
   Compiling num_cpus v1.8.0
   Compiling proc-macro2 v0.2.3
   Compiling bzip2-sys v0.1.6
   Compiling miniz-sys v0.1.10
   Compiling syn v0.10.8
   Compiling kernel32-sys v0.2.2
   Compiling ole32-sys v0.2.0
   Compiling shell32-sys v0.1.2
   Compiling itertools v0.5.10
   Compiling draw_state v0.8.0
   Compiling ogg v0.4.1
   Compiling stb_truetype v0.2.2
   Compiling deflate v0.7.18
   Compiling inflate v0.3.4
   Compiling unreachable v0.1.1
   Compiling xml-rs v0.3.6
   Compiling num-complex v0.1.43
   Compiling arrayvec v0.3.25
   Compiling gif v0.9.2
   Compiling toml v0.4.5
   Compiling gl_generator v0.9.0
   Compiling crossbeam-epoch v0.3.1
   Compiling syn v0.11.11
   Compiling euclid v0.17.2
   Compiling sid v0.5.0
   Compiling enum_primitive v0.1.1
   Compiling num-iter v0.1.35
   Compiling num-rational v0.1.42
   Compiling quote v0.4.2
   Compiling lewton v0.5.2
   Compiling derivative v1.0.0
   Compiling ordered-float v0.5.0
   Compiling alga v0.5.3
   Compiling crossbeam-deque v0.2.0
error: linking with `gcc` failed: exit code: 1
  |
  = note: "gcc" "-Wl,--enable-long-section-names" "-fno-use-linker-plugin" "-Wl,--nxcompat" "-nostdlib" "-m64" "C:\\Users\\Sherzod Mutalov\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\dllcrt2.o" "C:\\Users\\Sherzod Mutalov\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsbegin.o" "-L" "C:\\Users\\Sherzod Mutalov\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative0.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative1.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative10.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative11.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative12.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative13.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative14.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative15.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative2.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative3.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative4.rcgu.o"
"D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative5.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative6.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative7.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative8.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.derivative9.rcgu.o" "-o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.dll" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.crate.metadata.rcgu.o" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\derivative-ea9275d8bb513025.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-nodefaultlibs" "-L" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps" "-L" "C:\\Users\\Sherzod Mutalov\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bstatic" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\libsyn-b845d71df1e95e36.rlib" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\libunicode_xid-a33b39bcb88f3bd1.rlib" "D:\\Projects\\git\\rust\\game\\verge-online\\target\\debug\\deps\\libquote-e82818afeda6c03a.rlib" "-L" "C:\\Users\\Sherzod Mutalov\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bdynamic" "-l" "proc_macro-fc94ec1ca95a1c85" "-L" "C:\\Users\\Sherzod Mutalov\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-l" "syntax-fdac9bc343d97736" "-L" "C:\\Users\\Sherzod Mutalov\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-l" "rustc_errors-ccafe7558e7d3317" "-L" "C:\\Users\\Sherzod Mutalov\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-l" "syntax_pos-adb0654e0d9b5083" "-L" "C:\\Users\\Sherzod Mutalov\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-l" "rustc_data_structures-16b08039449bfbcd" "-L" "C:\\Users\\Sherzod Mutalov\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-l" "serialize-3beb02ee06c59935" "-L" "C:\\Users\\Sherzod Mutalov\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-l" "rustc_cratesio_shim-e3a33faea27ba6f4" "-L" "C:\\Users\\Sherzod Mutalov\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-l" "std-dae351646357f675" "-Wl,-Bstatic" "C:\\Users\\Sherzod Mutalov\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcompiler_builtins-03d9b8dfeb87e319.rlib" "-Wl,-Bdynamic" "-l" "credui" "-l" "user32" "-l" "synchronization" "-l" "gdi32" "-l" "kernel32" "-l" "setupapi" "-l" "msimg32" "-l" "winspool" "-l" "advapi32" "-l" "opengl32" "-l" "secur32" "-l" "dbghelp" "-l" "advapi32" "-l" "ws2_32" "-l" "userenv" "-l" "shell32" "-shared" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-lmsvcrt" "-luser32" "-lkernel32" "C:\\Users\\Sherzod Mutalov\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
  = note: ld: cannot open output file D:\Projects\git\rust\game\verge-online\target\debug\deps\derivative-ea9275d8bb513025.dll: Permission denied


error: aborting due to previous error

error: Could not compile `derivative`.
warning: build failed, waiting for other jobs to finish...
error: build failed

image

@Xanewok
Copy link
Member

Xanewok commented Apr 5, 2018

dup of #802 I believe, should be fixed in tomorrow's nightlies!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants