always have this error

  • hi fatal error

    Configured for linux-x86_64.

    *** Because of configuration changes, you MUST do the following before

    *** building:

    make depend

    Executing (host): make

    make[1]: Entering directory ‘/home/openkd/http://LibreELEC.tv/build.LibreELEC-S905.arm-8.2-devel/openssl-1.0.2l/.i686-linux-gnu

    making all in crypto…

    make[2]: Entering directory ‘/home/openkd/http://LibreELEC.tv/build.LibreELEC-S905.arm-8.2-devel/openssl-1.0.2l/.i686-linux-gnu/crypto

    /usr/bin/perl ../util/mkbuildinf.pl “/home/openkd/http://LibreELEC.tv/build.LibreELEC-S905.arm-8.2-devel/toolchain/bin/host-gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O2 -Wall -pipe -I/home/openkd/http://LibreELEC.tv/build.LibreELEC-S905.arm-8.2-devel/toolchain/include -Wno-format-security -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM” “linux-x86_64” >buildinf.h

    /home/openkd/http://LibreELEC.tv/build.LibreELEC-S905.arm-8.2-devel/toolchain/bin/host-gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O2 -Wall -pipe -I/home/openkd/http://LibreELEC.tv/build.LibreELEC-S905.arm-8.2-devel/toolchain/include -Wno-format-security -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM

    -DECP_NISTZ256_ASM -c -o cryptlib.o cryptlib.c

    In file included from /usr/include/stdlib.h:24:0,

    from cryptlib.h:62,

    from cryptlib.c:117:

    /usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory

    compilation terminated.

    make[2]: *** [: cryptlib.o] Error 1

    make[2]: Leaving directory ‘/home/openkd/http://LibreELEC.tv/build.LibreELEC-S905.arm-8.2-devel/openssl-1.0.2l/.i686-linux-gnu/crypto

    make[1]: *** [Makefile:287: build_crypto] Error 1

    make[1]: Leaving directory ‘/home/openkd/http://LibreELEC.tv/build.LibreELEC-S905.arm-8.2-devel/openssl-1.0.2l/.i686-linux-gnu

    Makefile:12: recipe for target ‘image’ failed

    make: *** [image] Error 2

    openkd@openkd-Aspire-ES1-711:~/LibreELEC.tv$


    used ubuntu 16.04 64bit

    who can help


    Code
    • Official Post

    It looks to me like some host error, you say it's Ubuntu 64bit but our toolchain is detecting your system as i686 (32bit)

    Please post the output of "uname -a" and also "gcc -dumpmachine"

  • is this the system or what is it?


    *** Because of configuration changes, you MUST do the following before

    *** building:

    make depend

    Executing (host): make

    make[1]: Entering directory '/home/openkd/CoreELEC/build.CoreELEC-S905.arm-9.0-devel/openssl-1.0.2o/.i686-linux-gnu'

    making all in crypto...

    make[2]: Entering directory '/home/openkd/CoreELEC/build.CoreELEC-S905.arm-9.0-devel/openssl-1.0.2o/.i686-linux-gnu/crypto'

    /usr/bin/perl ../util/mkbuildinf.pl "/home/openkd/CoreELEC/build.CoreELEC-S905.arm-9.0-devel/toolchain/bin/host-gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O2 -Wall -pipe -I/home/openkd/CoreELEC/build.CoreELEC-S905.arm-9.0-devel/toolchain/include -Wno-format-security -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM" "linux-x86_64" >buildinf.h

    /home/openkd/CoreELEC/build.CoreELEC-S905.arm-9.0-devel/toolchain/bin/host-gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O2 -Wall -pipe -I/home/openkd/CoreELEC/build.CoreELEC-S905.arm-9.0-devel/toolchain/include -Wno-format-security -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -c -o cryptlib.o cryptlib.c

    In file included from /usr/include/stdlib.h:24:0,

    from cryptlib.h:62,

    from cryptlib.c:117:

    /usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory

    compilation terminated.

    make[2]: *** [<builtin>: cryptlib.o] Error 1

    make[2]: Leaving directory '/home/openkd/CoreELEC/build.CoreELEC-S905.arm-9.0-devel/openssl-1.0.2o/.i686-linux-gnu/crypto'

    make[1]: *** [Makefile:287: build_crypto] Error 1

    make[1]: Leaving directory '/home/openkd/CoreELEC/build.CoreELEC-S905.arm-9.0-devel/openssl-1.0.2o/.i686-linux-gnu'

    Makefile:12: recipe for target 'image' failed

    make: *** [image] Error 2

    openkd@openkd-Aspire-ES1-711:~/CoreELEC$

  • make[1]: Leaving directory '/home/openkd/CoreELEC/build.CoreELEC-S905.arm-9.0-devel/openssl-1.0.2o/.i686-linux-gnu'

    "i686-linux-gnu" means you are trying to build on a 32-bit system which is not supported - your build host has to be 64bit.

    And you seem to try building CoreELEC, not LibreELEC. So please post your question(s) in the CoreELEC forum https://coreelec.org/forums/

    so long,

    Hias

  • Hi

    it just can not be done what is the worm inside

    what is wrong again

    is that the ubuntu system or why is it exactly.

    do not get built image

    Edited once, last by CvH: put log into code tag (June 25, 2018 at 3:41 PM).

  • Amlogic (and Rockchip) use precompiled compilers to build the kernel. These are 64bit binaries, so if you try to run them on a 32bit system you'll get that error.

    You could either change the gcc-linaro packages to download 32bit compilers or just switch to a 64bit build host - the latter would make building LibreELEC a lot easier.

    so long,

    Hias

  • hi have tried again with amd cpu and 64bit

    and I have this error

    who can help what is missing


    make[3]: Leaving directory '/home/openkd/http://LibreELEC.tv/build.LibreELEC-S905.arm-8 .2-devel/procps-ng-3.3.12/.armv8a-libreelec-linux-gnueabi'

    make[2]: Leaving directory '/home/openkd/http://LibreELEC.tv/build.LibreELEC-S905.arm-8 .2-devel/procps-ng-3.3.12/.armv8a-libreelec-linux-gnueabi'

    make[1]: Leaving directory '/home/openkd/http://LibreELEC.tv/build.LibreELEC-S905.arm-8 .2-devel/procps-ng-3.3.12/.armv8a-libreelec-linux-gnueabi'

    UNPACK gptfdisk

    UNPACK popt

    gzip: stdin: not in gzip format

    tar: Child returned status 1

    tar: Error is not recoverable: exiting now

    Makefile:12: recipe for target 'image' failed

    make: *** [image] Error 2

    openkd@openkd-K8V-MX:~/LibreELEC.tv$