Stream: t-compiler/help

Topic: using local compiler with other projects

davidtwco (Jul 14 2019 at 18:52, on Zulip):

I'm currently looking at #61963. I'm able to reproduce with the repository using the commit that was reported but I've been unable to produce a smaller reproduction based on what I'm observing the code do (I've looked at what the macro expands to, and can see the code that the lint would trigger for, but any macros that I write aren't doing it). I'm now trying to use a local build of the compiler so I can debug what's triggering it and work back from that to make a test case. However, if I use rustup toolchain link rust1-stage1 /path/to/stage1/folder and then change the rust-toolchain file, eventually I get an error like this:

error: cannot open shared object file: No such file or directory
  --> components/script/
15 | #![plugin(script_plugins)]
   |           ^^^^^^^^^^^^^^

I can work around it by adding /path/to/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib (where this file lives) to LD_PRELOAD_PATH, but then I immediately hit cannot access a scoped thread local variable without calling `set` first. Anyone got any ideas on what to try?

Vadim Petrochenkov (Jul 14 2019 at 23:11, on Zulip):

Legacy plugins require a stage2 toolchain.

Vadim Petrochenkov (Jul 14 2019 at 23:11, on Zulip):

(Not so long ago even stable proc macros required it.)

davidtwco (Jul 15 2019 at 07:20, on Zulip):

Ah, thanks! I’ll give that a go.

Last update: Sep 18 2020 at 21:15UTC