Closed issue by pullmoll on void-packages repository https://github.com/void-linux/void-packages/issues/6100 Description: For glibc stack fails to build due to what looks like a missing `#include ` somewhere: ``` [ 44 of 125] Compiling Stack.Constants ( src/Stack/Constants.hs, dist/build/Stack/Constants.o ) : can't load .so/.DLL for: /builddir/stack-1.7.1/.cabal-sandbox/lib/i386-linux-ghc-8.4.4/libHSunix-compat-0.5.0.1-7wHKrmu7kXH9utvYTrCCyN-ghc8.4.4.so (/builddir/stack-1.7.1/.cabal-sandbox/lib/i386-linux-ghc-8.4.4/libHSunix-compat-0.5.0.1-7wHKrmu7kXH9utvYTrCCyN-ghc8.4.4.so: undefined symbol: major) => ERROR: stack-1.7.1_1: do_build: 'cabal build ${makejobs}' exited with 1 ``` It seems that a missing definition for the macro `major` leads to `gcc` or `g++` assuming an external function `int major(...)`, which of course does not exist.