I am hoping for some gentle advice as I build my first package in OpenWrt in Ubuntu 20.04 under WSL 2. Actually, this is an Entware package to be run on an x86_64 NAS.
Entware packages are built in OpenWrt.
The toolchain appears to build fine.
The compile process currently fails here:
touch /home/entwarebuilder/Entware/build_dir/target-x86_64_glibc-2.27/veracrypt-1.0/.built_check
CFLAGS="-O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -I/home/entwarebuilder/Entware/staging_dir/toolchain-x86_64_gcc-8.4.0_glibc-2.27/include " CXXFLAGS="-O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -I/home/entwarebuilder/Entware/staging_dir/toolchain-x86_64_gcc-8.4.0_glibc-2.27/include " LDFLAGS="-Wl,--dynamic-linker=/opt/lib/ld-linux-x86-64.so.2 -Wl,-rpath=/opt/lib -L/home/entwarebuilder/Entware/staging_dir/toolchain-x86_64_gcc-8.4.0_glibc-2.27/lib " make -j1 -C /home/entwarebuilder/Entware/build_dir/target-x86_64_glibc-2.27/veracrypt-1.0/src AR="x86_64-openwrt-linux-gnu-gcc-ar" AS="x86_64-openwrt-linux-gnu-gcc -c -O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result " LD=x86_64-openwrt-linux-gnu-ld NM="x86_64-openwrt-linux-gnu-gcc-nm" CC="x86_64-openwrt-linux-gnu-gcc" GCC="x86_64-openwrt-linux-gnu-gcc" CXX="x86_64-openwrt-linux-gnu-g++" RANLIB="x86_64-openwrt-linux-gnu-gcc-ranlib" STRIP=x86_64-openwrt-linux-gnu-strip OBJCOPY=x86_64-openwrt-linux-gnu-objcopy OBJDUMP=x86_64-openwrt-linux-gnu-objdump SIZE=x86_64-openwrt-linux-gnu-size CROSS="x86_64-openwrt-linux-gnu-" ARCH="x86_64" NOGUI=1 WXSTATIC=1;
make[3]: Entering directory '/home/entwarebuilder/Entware/build_dir/target-x86_64_glibc-2.27/veracrypt-1.0/src'
make[4]: Entering directory '/home/entwarebuilder/Entware/build_dir/target-x86_64_glibc-2.27/veracrypt-1.0/src/Volume'
Assembling Aes_x64.asm
x86_64-openwrt-linux-gnu-gcc: error: elf64: No such file or directory
x86_64-openwrt-linux-gnu-gcc: error: unrecognized command line option '-f'
make[4]: *** [/home/entwarebuilder/Entware/build_dir/target-x86_64_glibc-2.27/veracrypt-1.0/src/Build/Include/Makefile.inc:44: ../Crypto/Aes_x64.o] Error 1
I understand that the compiler is looking for an elf64 file. I don't understand why it can't, and what I can do to have it look in the right directories for it.
I'm always happy to provide missing info that is necessary for figuring this out.
Many thanks