New comment by waynevanson on void-packages repository https://github.com/void-linux/void-packages/pull/27961#issuecomment-761735959 Comment: Update: This comment reflects cross compilation in with haskell-stack, which doesn't cross compile. More success is achieved when building natively using different masterdir's per architecture. So it works for `x86_64`, but I cannot get it working with any other architectures. When building for `armv7l`, I get the following error: ``` network > configure network > [1 of 2] Compiling Main ( /tmp/stack-8ee1647aa5b6024f/network-3.1.1.1/Setup.hs, /tmp/stack-8ee1647aa5b6024f/network-3.1.1.1/.stack-work/dist/x86_64-linux/Cabal-3.0.1.0/setup/Main.o ) network > [2 of 2] Compiling StackSetupShim ( /builddir/haskell-language-server-0.8.0/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /tmp/stack-8ee1647aa5b6024f/network-3.1.1.1/.stack-work/dist/x86_64-linux/Cabal-3.0.1.0/setup/StackSetupShim.o ) network > Linking /tmp/stack-8ee1647aa5b6024f/network-3.1.1.1/.stack-work/dist/x86_64-linux/Cabal-3.0.1.0/setup/setup ... network > Configuring network-3.1.1.1... network > configure: WARNING: unrecognized options: --with-compiler network > checking build system type... x86_64-pc-linux-gnu network > checking host system type... x86_64-pc-linux-gnu network > checking for gcc... /usr/bin/cc network > checking whether the C compiler works... no network > configure: error: in `/tmp/stack-8ee1647aa5b6024f/network-3.1.1.1/.stack-work/dist/x86_64-linux/Cabal-3.0.1.0/build': network > configure: error: C compiler cannot create executables network > See `config.log' for more details ``` ~~What could be the reason for this? Googling around didn't get me anywhere.~~ Cross compilation is the problem! - `configure: WARNING: unrecognized options: --with-compiler` - `checking whether the C compiler works... no` - `configure: error: C compiler cannot create executables` ~I would like to see this accepted even it works just for `x86_64`, then we can add support for `armv7l` and friends later.~