Hi!
I have some troubles building for mediatek-mt7622 platform.
First of all, I need to say that I have successfully built firmwares for various routers from most of the platforms:
bcm47xx-mips74k-*
bcm53xx-generic-*
ramips-mt7620-*
ramips-mt7621-*
ramips-mt76x8-*
mediatek-filogic-*
ath79-generic-*
ipq40xx-generic-*
qualcommax-ipq807x-*
sunxi-cortexa7-*
sunxi-cortexa53-*
rockchip-armv8-*
ramips-rt3883-*
But ONE platform gives me errors.
When I try to build whatever router from mediatek-mt7622, for example:
mediatek-mt7622-xiaomi_redmi-router-ax6s
or
mediatek-mt7622-bananapi_bpi-r64
It gives me this:
/usr/bin/ld: /usr/lib/libcrypto.a(sha256-x86_64.o):fake:(.text+0x4d11): undefined reference to `__imp_RtlVirtualUnwind'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x20): undefined reference to `__mingw_vsscanf'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0xa02): undefined reference to `__imp_GetCurrentThreadId'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0xa93): undefined reference to `__imp_GetCurrentThreadId'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0xbe4): undefined reference to `__imp_GetModuleHandleW'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0xc00): undefined reference to `__imp_GetProcAddress'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0xc22): undefined reference to `__imp_GetProcessWindowStation'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0xc49): undefined reference to `__imp_GetUserObjectInformationW'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0xc5c): undefined reference to `__imp_GetLastError'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0xc93): undefined reference to `___chkstk_ms'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0xd36): undefined reference to `__imp_GetStdHandle'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0xd47): undefined reference to `__imp_GetFileType'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0xd9e): undefined reference to `___chkstk_ms'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0xdbf): undefined reference to `__imp_MultiByteToWideChar'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0xffc): undefined reference to `__imp__vsnwprintf'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x100b): undefined reference to `__imp_GetVersion'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x1030): undefined reference to `__imp_MessageBoxW'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x1063): undefined reference to `__imp_RegisterEventSourceW'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x10ae): undefined reference to `__imp_ReportEventW'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x10b7): undefined reference to `__imp_DeregisterEventSource'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x1114): undefined reference to `__imp__vsnprintf'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x1139): undefined reference to `__imp_WriteFile'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x117a): undefined reference to `__imp_MultiByteToWideChar'
/usr/bin/ld: /usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x13b8): undefined reference to `__imp___acrt_iob_func'
/usr/bin/ld: /usr/lib/libcrypto.a(mem_dbg.o):mem_dbg.c:(.text+0x4a3): undefined reference to `__imp__localtime64'
/usr/bin/ld: /usr/lib/libcrypto.a(mem_dbg.o):mem_dbg.c:(.text+0x1099): undefined reference to `__imp__time64'
/usr/bin/ld: /usr/lib/libcrypto.a(obj_dat.o):obj_dat.c:(.text+0x1413): undefined reference to `__imp_isalnum'
/usr/bin/ld: /usr/lib/libcrypto.a(obj_dat.o):obj_dat.c:(.text+0x141f): undefined reference to `__imp_isspace'
/usr/bin/ld: /usr/lib/libcrypto.a(bn_print.o):bn_print.c:(.text+0x61d): undefined reference to `__imp_isxdigit'
/usr/bin/ld: /usr/lib/libcrypto.a(bss_file.o):bss_file.c:(.text+0xa0): undefined reference to `__imp_MultiByteToWideChar'
/usr/bin/ld: /usr/lib/libcrypto.a(bss_file.o):bss_file.c:(.text+0xcc): undefined reference to `___chkstk_ms'
/usr/bin/ld: /usr/lib/libcrypto.a(bss_file.o):bss_file.c:(.text+0x173): undefined reference to `__imp_GetLastError'
/usr/bin/ld: /usr/lib/libcrypto.a(bss_file.o):bss_file.c:(.text+0x1b4): undefined reference to `__imp__wfopen'
/usr/bin/ld: /usr/lib/libcrypto.a(bss_file.o):bss_file.c:(.text+0x1c0): undefined reference to `__imp__errno'
/usr/bin/ld: /usr/lib/libcrypto.a(bss_file.o):bss_file.c:(.text+0x2d3): undefined reference to `__imp_GetLastError'
/usr/bin/ld: /usr/lib/libcrypto.a(bss_file.o):bss_file.c:(.text+0x5c6): undefined reference to `__imp__fileno'
/usr/bin/ld: /usr/lib/libcrypto.a(bss_file.o):bss_file.c:(.text+0x5dd): undefined reference to `__imp__setmode'
/usr/bin/ld: /usr/lib/libcrypto.a(bss_file.o):bss_file.c:(.text+0x6ff): undefined reference to `__imp__setmode'
/usr/bin/ld: /usr/lib/libcrypto.a(bss_file.o):bss_file.c:(.text+0x742): undefined reference to `__imp_GetLastError'
/usr/bin/ld: /usr/lib/libcrypto.a(bss_file.o):bss_file.c:(.text+0x8ba): undefined reference to `__imp_GetLastError'
/usr/bin/ld: /usr/lib/libcrypto.a(bss_file.o):bss_file.c:(.text+0x90e): undefined reference to `__imp__errno'
/usr/bin/ld: BFD (GNU Binutils for Ubuntu) 2.38 assertion fail ../../bfd/reloc.c:8580
/usr/lib/libcrypto.a(sha256-x86_64.o):fake:(.xdata+0x4): dangerous relocation: collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
Any ideas?
Building latest snapshot on Ubuntu 22.04