Search code examples
dockergccalpine-linux

Building GCC from source on Alpine: <asm/param.h> not found


When building GCC from source in a Docker container I get the error

<asm/param.h> no such file or directory.


Solution

  • You need to install the Linux headers via apk add linux-headers.

    Related: asm vs asm-generic in linux headers -- are they same