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

[Regression on stable] RLS doesn't seem to exist for x86_64-pc-windows-gnu anymore #993

Closed
CryZe opened this issue Aug 16, 2018 · 5 comments

Comments

@CryZe
Copy link

CryZe commented Aug 16, 2018

Multiple people have encountered this by now, but no nightly seems to ever have the RLS component available for the nightly-x86_64-pc-windows-gnu toolchain, while the same nightlies seem to have it available for the msvc toolchain.

@Jimmio92
Copy link

I suspect this is caused by a problem in racer that prevents racer from being built, and I think this project depends upon racer, so this makes sense. I don't know anything about these projects unfortunately, or I'd be working on fixing it.

@CryZe CryZe changed the title RLS doesn't seem to exist for nightly-x86_64-pc-windows-gnu [Regression on stable] RLS doesn't seem to exist for x86_64-pc-windows-gnu anymore Sep 13, 2018
@CryZe
Copy link
Author

CryZe commented Sep 13, 2018

It is now gone for stable too.

@willem66745
Copy link

I guess it is missing since it is not building in the windows-gnu environment for a while. Most likely due to rust-mingw component which is not fool proof any longer with more recent mingw installs.

I observed the issue also for a while. Back then it seems Racer (racer-rust/racer#919), but apparently it is solved. I still observed the issue when building RLS.

I created a very dirty workaround based on https://stackoverflow.com/questions/30412951

I changed in my build environment /mingw64/x86_64-w64-mingw32/include/stdio.h:

#define stdin  (__acrt_iob_func(0))
#define stdout (__acrt_iob_func(1))
#define stderr (__acrt_iob_func(2))

Into

#define stdin  (&__iob_func()[0])
#define stdout (&__iob_func()[1])
#define stderr (&__iob_func()[2])

This change results in a working RLS for me with today's nightlies. Hopefully it can give some pointers to address this issue.

@Xanewok
Copy link
Member

Xanewok commented Mar 2, 2019

@CryZe do you happen to know if the newest stable has the appropriate components? IIRC we fixed that and started shipping it but I may be wrong.

@Xanewok
Copy link
Member

Xanewok commented Mar 3, 2019

I'll close this as dup of #1189, please reopen if stable also doesn't have the rls component.

@Xanewok Xanewok closed this as completed Mar 3, 2019
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

4 participants