Conversation

Palmer Dabbelt

Does anyone have a good set of GCC/glibc cross-build/test scripts? Looks like riscv-gnu-toolchain is broken again...
1
0
0
@keithp I'd love to, that'd be way easier than trying to pile up a bunch of stuff. Looks like there's some testsuite hooks in there, but it wants to SSH <https://spacegit.unibe.ch/open-source/crosstool-ng/-/tree/a173dfa93937d835b10f3b460faaa652a017f035/contrib/gcc-test-suite>. That usually means it wants to run these on some box with another userspace?
1
0
0

@palmer Yeah, looks like you'd need to hack up the test stuff to do them locally. It looks like those crosstool bits only support remote testing, which is odd?

1
0
0
@keithp it seems to be somewhat common, everything assumes you've got HW that you want to run the tests on. I think we're just in an odd spot because we still don't have any useful hardware...
2
0
0

@palmer Oh, you want to use then? You could presumably boot a local qemu instance and then use the crosstool-ng stuff to ssh into that... I imagine it would be faster to run user-space qemu though, and OE appears to set that up. OE is also more linux-focused and doesn't try to support embedded toolchains, I think.

1
0
0
@keithp having something smaller than OE would be great. The crosstool-ng flow would need some distro, though, and at that point I'm back to gluing stuff together -- which kind of defeats the "use someone else's stuff" goal ;)
1
0
0

@palmer I've been building picolibc toolchains with crosstool-ng using github actions. At least I don't have to host a download server...

1
0
0
@keithp ya, for builds crosstool-ng is great. That's why I was kind of happy to stumble into the test script. It's gluing together all the test stuff that's the big headache, I'll just end up with a box full of hung QEMU instances again...
2
0
0

@palmer For sure. Using user-mode qemu seems like a much nicer way to go. As usual, there's no obvious best answer, just choices about what to start with and how much work to apply...

1
0
0
@keithp ya, sounds like it...

Good news is I was trying to do something so stupid I don't even need to run the tests to know it'll never work ;)
0
0
0

@palmer Here's some crosstool-ng hacks that let you set up to run tests using qemu. https://github.com/crosstool-ng/crosstool-ng/pull/2301

0
0
0