I’m asking here rather than the rust-avr git pages, because I think my issue is more about building rust than about that fork.
I’d like to play with that. I have some small C projects that I think would make good tests and would seriously benefit from being tackled in a rust state of mind.
To start that, I got a recent copy of the llvm source tree, and built that with the experimental avr target enabled. I’ve verified that it at least generates code for that target, and can create a hex file (though I’ve not tried flashing one yet). Halfway there, right?
But I can’t figure out how to get the rust-avr fork of rust to build. I keep getting a note that /usr/bij/ld could not find -lstdc++. I think the issue is that clang is the system compiler, so gcc - and in particular it’s libraries - are in non-standard places. There doesn’t seem to be a config setting for this, and setting LDFLAGS doesn’t help.
Can someone provide the clue I’m overlooking? Or maybe there’s more information you need from me?