I started experimenting with compiling LibreELEC for my RockPro64 device. All went well using VirtualBox with Linux on my Win10 PC. This time I tried to compile LibreELEC on my RockPro64 SBC. Unfortunately that fails during the compilation of openssl-1.0.2p with the error:
gcc: error: unrecognized command line option '-m64'
I started the make process with the following instruction:
rock64@rockpro64:~/LibreELEC.tv$ PROJECT=Rockchip DEVICE=RK3399 ARCH=arm UBOOT_SYSTEM=rockpro64 make image
To give some extra context I copied the last couple of lines from the compilation process:
make[2]: Entering directory '/home/rock64/LibreELEC.tv/build.LibreELEC-RK3399.arm-9.0-devel/openssl-1.0.2p/.aarch64-linux-gnu/test'
make[2]: Nothing to be done for 'generate'.
make[2]: Leaving directory '/home/rock64/LibreELEC.tv/build.LibreELEC-RK3399.arm-9.0-devel/openssl-1.0.2p/.aarch64-linux-gnu/test'
make[1]: Leaving directory '/home/rock64/LibreELEC.tv/build.LibreELEC-RK3399.arm-9.0-devel/openssl-1.0.2p/.aarch64-linux-gnu'
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/rock64/LibreELEC.tv/build.LibreELEC-RK3399.arm-9.0-devel/openssl-1.0.2p/.aarch64-linux-gnu'
making all in crypto...
make[2]: Entering directory '/home/rock64/LibreELEC.tv/build.LibreELEC-RK3399.arm-9.0-devel/openssl-1.0.2p/.aarch64-linux-gnu/crypto'
/usr/bin/perl ../util/mkbuildinf.pl "/home/rock64/LibreELEC.tv/build.LibreELEC-RK3399.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/rock64/LibreELEC.tv/build.LibreELEC-RK3399.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/rock64/LibreELEC.tv/build.LibreELEC-RK3399.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/rock64/LibreELEC.tv/build.LibreELEC-RK3399.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
gcc: error: unrecognized command line option '-m64'
make[2]: *** [<builtin>: cryptlib.o] Error 1
make[2]: Leaving directory '/home/rock64/LibreELEC.tv/build.LibreELEC-RK3399.arm-9.0-devel/openssl-1.0.2p/.aarch64-linux-gnu/crypto'
make[1]: *** [Makefile:287: build_crypto] Error 1
make[1]: Leaving directory '/home/rock64/LibreELEC.tv/build.LibreELEC-RK3399.arm-9.0-devel/openssl-1.0.2p/.aarch64-linux-gnu'
Makefile:12: recipe for target 'image' failed
make: *** [image] Error 2
Display More
I looked for solutions on Google, but none of the suggestions were helpful for solving this LibreELEC compilation problem. I can' t believe I am the first one to try to compile LibreELEC on a RK3399 SBC so I hope there is someone out here who can give me the right directions to solve this problem.
TIA, Baderks