fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

Does anyone have a good set of GCC/glibc cross-build/test scripts? Looks like riscv-gnu-toolchain is broken again...

@palmer Can you use crosstool-ng?

@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?
keithp

@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?

@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...

@palmer Oh, you want to use qemu? 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.

@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 ;)

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

@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...

@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...

@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 ;)