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
576 stars 47 forks source link

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

Closed snej closed 11 months ago

snej commented 2 years 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 11 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!