Hi All,
Im Getting Compilation error while compiling th eopenwrt firmware with openwrt buildroot.
Error and Host info as below-
According to posts , downgrading make version to 4.3 can resolve the issue, but its not working.
config.status: creating Makefile
config.status: creating config.h
touch /home/shri/resources/resources/ne15/openwrt/build_dir/host/mtools-4.0.35/.configured
make -C /home/shri/resources/resources/ne15/openwrt/build_dir/host/mtools-4.0.35 mcopy mmd
make[4]: Entering directory '/home/shri/resources/resources/ne15/openwrt/build_dir/host/mtools-4.0.35'
gcc -I/home/shri/resources/resources/ne15/openwrt/staging_dir/host/include -DHAVE_CONFIG_H -DSYSCONFDIR=\"/home/shri/resources/resources/ne15/openwrt/staging_dir/host/etc\" -DCPU_x86_64 -DVENDOR_pc -DOS_linux_gnu -O2 -I/home/shri/resources/resources/ne15/openwrt/staging_dir/host/include -Wall -fno-strict-aliasing -I. -I. -c buffer.c
gcc -I/home/shri/resources/resources/ne15/openwrt/staging_dir/host/include -DHAVE_CONFIG_H -DSYSCONFDIR=\"/home/shri/resources/resources/ne15/openwrt/staging_dir/host/etc\" -DCPU_x86_64 -DVENDOR_pc -DOS_linux_gnu -O2 -I/home/shri/resources/resources/ne15/openwrt/staging_dir/host/include -Wall -fno-strict-aliasing -I. -I. -c charsetConv.c
gcc -I/home/shri/resources/resources/ne15/openwrt/staging_dir/host/include -DHAVE_CONFIG_H -DSYSCONFDIR=\"/home/shri/resources/resources/ne15/openwrt/staging_dir/host/etc\" -DCPU_x86_64 -DVENDOR_pc -DOS_linux_gnu -O2 -I/home/shri/resources/resources/ne15/openwrt/staging_dir/host/include -Wall -fno-strict-aliasing -I. -I. -c codepages.c
gcc -I/home/shri/resources/resources/ne15/openwrt/staging_dir/host/include -DHAVE_CONFIG_H -DSYSCONFDIR=\"/home/shri/resources/resources/ne15/openwrt/staging_dir/host/etc\" -DCPU_x86_64 -DVENDOR_pc -DOS_linux_gnu -O2 -I/home/shri/resources/resources/ne15/openwrt/staging_dir/host/include -Wall -fno-strict-aliasing -I. -I. -c config.c
config.c: In function 'get_env_conf':
config.c:269:57: error: implicit declaration of function 'strtoi'; did you mean 'strtoui'? [-Wimplicit-function-declaration]
269 | * ((int *)global_switches[i].address) = strtoi(s,0,0);
| ^~~~~~
| strtoui
make[4]: *** [Makefile:145: config.o] Error 1
make[4]: Leaving directory '/home/shri/resources/resources/ne15/openwrt/build_dir/host/mtools-4.0.35'
make[3]: *** [Makefile:40: /home/shri/resources/resources/ne15/openwrt/build_dir/host/mtools-4.0.35/.built] Error 2
make[3]: Leaving directory '/home/shri/resources/resources/ne15/openwrt/tools/mtools'
time: tools/mtools/compile#6.01#3.48#13.01
ERROR: tools/mtools failed to build.
make[2]: *** [tools/Makefile:159: tools/mtools/compile] Error 1
make[2]: Leaving directory '/home/shri/resources/resources/ne15/openwrt'
make[1]: *** [tools/Makefile:155: /home/shri/resources/resources/ne15/openwrt/staging_dir/host/stamp/.tools_compile_yyynyynnyyynyyyyyynyynyyyyynyyyyyyyyyyyyyyyynynnyyyyyyy] Error 2
make[1]: Leaving directory '/home/shri/resources/resources/ne15/openwrt'
make: *** [/home/shri/resources/resources/ne15/openwrt/include/toplevel.mk:230: world] Error 2
➜ openwrt git:(openwrt-21.02) neofetch
██████████████████ ████████ shri@shri-devbench
██████████████████ ████████ ------------------
██████████████████ ████████ OS: Manjaro Linux x86_64
██████████████████ ████████ Host: HP Pavilion Gaming Laptop 15-ec0xxx
████████ ████████ Kernel: 6.9.12-3-MANJARO
████████ ████████ ████████ Uptime: 2 hours, 3 mins
████████ ████████ ████████ Packages: 1417 (pacman), 1 (pkg), 31 (flatpak), 9 (snap)
████████ ████████ ████████ Shell: zsh 5.9
████████ ████████ ████████ Resolution: 3840x1080
████████ ████████ ████████ DE: Plasma 6.0.5
████████ ████████ ████████ WM: KWin
████████ ████████ ████████ Theme: Breeze-Dark [GTK2], Breeze [GTK3]
████████ ████████ ████████ Icons: breeze-dark [GTK2/3]
████████ ████████ ████████ Terminal: konsole
CPU: AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx (8) @ 2.100GHz
GPU: NVIDIA GeForce GTX 1650 Mobile / Max-Q
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
Memory: 6107MiB / 13853MiB
➜ openwrt git:(openwrt-21.02)