I just want to send you first the two patches that I'm working with to build glibc on riscv64. I didn't of course push either of them yet. I should also say that I've only built glibc, not fully tested it yet. Results from testing later.
Since I wrote this on the first submission, the patches have now received extensive testing, used to build thousands of Fedora/RISC-V packages.
The first one as discussed adds the symlink from /usr/lib64/lp64d to /usr/lib64. It's both simple because it doesn't involve any downstream patching of glibc itself, but it's also a little bit ugly.
The second one is a pretty uncontroversial change to disable valgrind. We've discussed valgrind on RISC-V with upstream but as it's a lot of work to port valgrind to new architectures they understandably don't want to do anything until it's clear how popular or otherwise the architecture will be. So we don't expect valgrind any time soon.
I'd like to push the second one which seems uncontroversial.
The first one works for me ...
Rich.