koverstreet / bcachefs-tools

http://bcachefs.org
GNU General Public License v2.0
120 stars 89 forks source link

undefined reference to pwritev2 on musl libc #213

Closed xhebox closed 3 months ago

xhebox commented 8 months ago

Similar to #209. I am adding bcachefs-tools into openwrt with musl libc. And pwritev2 is not implemented in musl. There is a need for syscall() fallback.

xhebox commented 8 months ago

https://www.openwall.com/lists/musl/2024/01/18/5 Latest dicussion in the mailing list.

EDIT: this is indeed, should be solved on libc side probably. But I'll just leave this issue here for tracking.

rwinkhart commented 6 months ago

MUSL has added pwritev2 support for v1.2.5. I don't have a system to test this with on me right now, but I found this worth noting.

https://www.openwall.com/lists/musl/2024/03/01/2

ernsteiswuerfel commented 6 months ago

@rwinkhart Thanks for pointing out!

I updated to musl 1.2.5 on Gentoo which seems to work fine otherwise. But with bcachefs-tools I ran into another build error: #248