Error building aarch64 on debian 8 x64

  • Hi

    I'm building one aarch64 image using the main branch.

    I get the following error

    Code
    BUILD    lz4 (host)
    ....
    In file included from /usr/include/stdlib.h:24:0,
                     from ../lib/lz4.c:105:
    /usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory
     #  include <sys/cdefs.h>
                             ^
    compilation terminated.

    I have fixed the error with sudo apt-get install gcc-multilib but I don't know if is the correct approach (I'm not a skilled developer).

    I really need the 32 bit c libraries provided by gcc-multilib or something must be changed/patched on the make files for aarch64?