Hi Jack,
I had raised the original question in this thread.
We eventually figured out what was going on, and fixed it.
Briefly:
- Suppose you are making the tool chain in some target directory TARGET_DIR
- Then, before doing 'make' to create the tool chain,
make sure $(TARGET_DIR)/bin is in your path.
- Otherwise, at some point during the build, when it wants to use g++,
it defaults to using an existing g++ (instead of the new RISC-V
g++ that it just built).
This existing g++, if it is a recent version, will call the RISC-V
assembler with the (relatively recent) flag '--64', which the RISC-V
assembler does not recognize, etc.
Rgds,
Nikhil