FiloSottile / homebrew-musl-cross

Homebrew Formula for static-friendly musl-based GCC macOS-to-Linux cross-compilers
https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/
ISC License
547 stars 45 forks source link

GCC can’t find <linux/futex.h> #37

Closed snej closed 7 months ago

snej commented 1 year ago

I’m getting a build error “no such file” on #include <linux/futex.h>, down inside a library I use. And when I found the system headers down inside /opt/homebrew/Cellar/musl-cross/0.9.9_1, they don’t include such a header or even a linux subdirectory.

I know very little about Linux development, but I’m guessing this may have to do with musl vs. the default Linux library? In any case I have no idea how to work around this; it’s not even my code including this header, rather a 3rd party library.

FiloSottile commented 7 months ago

Unfortunately, I can't offer support for how to use the cross-compiler once installed, because the array of build systems and configurations is too diverse. Sorry!