npryce / rusty-pi

142 stars 15 forks source link

"Compiling the compiler" suggestion #1

Open paigeruten opened 10 years ago

paigeruten commented 10 years ago

Hello, thanks to your guide "Compiling the compiler" I got a nice RPi Rust cross-compiler working last night. However there was one roadblock that took a while for me to figure out, which was that I had to set LD_LIBRARY_PATH after the installation. I now know that the final output of make install is to tell you to make sure you set your LD_LIBRARY_PATH, but I guess I wasn't paying attention to it at first, and then running rustc gave me a rustc: symbol lookup error: rustc: undefined symbol: _ZN10lang_start20he89a41cbe8ac26fcWjeE error.

So I'd like to suggest adding the setting of LD_LIBRARY_PATH as an explicit step in the instructions, as I think it would help others like me.

npryce commented 10 years ago

This is caused by a recent change in the way the rust compiler works, and I've not updated my instructions to cope with it. I'll update my copy of rustc and fix the instructions. Thanks.