I'm haveing issues building the toolchain, would someone be able to point out what might be the issue?
make[2]: Entering directory '/home/professor_jonny/pj_openwrt/scripts/config' make[2]: 'conf' is up to date. make[2]: Leaving directory '/home/professor_jonny/pj_openwrt/scripts/config' make[2]: Entering directory '/home/professor_jonny/pj_openwrt' make[3]: Entering directory '/home/professor_jonny/pj_openwrt/scripts/config' set -e; mkdir -p ./; trap "rm -f ./.mconf-cfg.tmp" EXIT; { /bin/sh mconf-cfg.sh; } > ./.mconf-cfg.tmp; if [ ! -r mconf-cfg ] || ! cmp -s mconf-cfg ./.mconf-cfg.tmp; then true ' UPD mconf-cfg'; mv -f ./.mconf-cfg.tmp mconf-cfg; fi make[3]: Leaving directory '/home/professor_jonny/pj_openwrt/scripts/config' make[3]: Entering directory '/home/professor_jonny/pj_openwrt' make[3]: Leaving directory '/home/professor_jonny/pj_openwrt' *** End of the configuration. *** Execute 'make' to start the build or try 'make help'. make[2]: Leaving directory '/home/professor_jonny/pj_openwrt' time: target/linux/prereq#0.25#0.53#1.12 make[1]: Entering directory '/home/professor_jonny/pj_openwrt' make[2]: Entering directory '/home/professor_jonny/pj_openwrt' + mkdir -p /home/professor_jonny/pj_openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi + cd /home/professor_jonny/pj_openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi + mkdir -p bin lib stamp usr/include usr/lib mkdir -p /home/professor_jonny/pj_openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp touch /home/professor_jonny/pj_openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/.prepared make[3]: Entering directory '/home/professor_jonny/pj_openwrt/toolchain/gdb' make[3]: Nothing to be done for 'compile'. make[3]: Leaving directory '/home/professor_jonny/pj_openwrt/toolchain/gdb' time: toolchain/gdb/compile#0.00#0.01#0.06 make[3]: Entering directory '/home/professor_jonny/pj_openwrt/toolchain/binutils' make -C /home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40 all make[4]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40' make[5]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40' make[6]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/libiberty' make[7]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/libiberty/testsuite' make[7]: Nothing to be done for 'all'. make[7]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/libiberty/testsuite' make[6]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/libiberty' make[6]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/intl' make[6]: Nothing to be done for 'all'. make[6]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/intl' make[6]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/libsframe' make all-am make[7]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/libsframe' make[7]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/libsframe' make[6]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/libsframe' make[6]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/bfd' Making info in po make[7]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/bfd/po' make[7]: Nothing to be done for 'info'. make[7]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/bfd/po' make[7]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/bfd' make[7]: Circular doc/bfd.stamp <- doc/bfd.texi dependency dropped. make[7]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/bfd' make all-recursive make[7]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/bfd' Making all in po make[8]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/bfd/po' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/bfd/po' make[8]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/bfd' make[8]: Circular doc/bfd.stamp <- doc/bfd.texi dependency dropped. make[8]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/bfd' make[7]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/bfd' make[6]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/bfd' make[6]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/opcodes' make all-recursive make[7]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/opcodes' Making all in . make[8]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/opcodes' make[8]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/opcodes' Making all in po make[8]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/opcodes/po' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/opcodes/po' make[7]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/opcodes' make[6]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/opcodes' make[6]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/gas' make all-recursive make[7]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/gas' Making all in po make[8]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/gas/po' make[8]: Nothing to be done for 'all'. make[8]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/gas/po' make[8]: Entering directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/gas' /usr/bin/env bash ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Wwrite-strings -I/home/professor_jonny/pj_openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/include -pthread -O2 -I/home/professor_jonny/pj_openwrt/staging_dir/host/include -L/home/professor_jonny/pj_openwrt/staging_dir/host/lib -o as-new app.o as.o atof-generic.o codeview.o compress-debug.o cond.o depend.o dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o gen-sframe.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o sframe-opt.o stabs.o subsegs.o symbols.o write.o config/tc-arm.o config/obj-elf.o config/atof-ieee.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz -L/home/professor_jonny/pj_openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/lib -lzstd -pthread libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Wwrite-strings -I/home/professor_jonny/pj_openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/include -pthread -O2 -I/home/professor_jonny/pj_openwrt/staging_dir/host/include -o as-new app.o as.o atof-generic.o codeview.o compress-debug.o cond.o depend.o dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o gen-sframe.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o sframe-opt.o stabs.o subsegs.o symbols.o write.o config/tc-arm.o config/obj-elf.o config/atof-ieee.o -pthread -L/home/professor_jonny/pj_openwrt/staging_dir/host/lib ../bfd/.libs/libbfd.a -L/home/professor_jonny/pj_openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/lib ../libiberty/libiberty.a -lz -lzstd -pthread /usr/bin/ld: skipping incompatible /home/professor_jonny/pj_openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/lib/libgcc_s.so.1 when searching for libgcc_s.so.1 /usr/bin/ld: skipping incompatible /home/professor_jonny/pj_openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/lib/libgcc_s.so.1 when searching for libgcc_s.so.1 /usr/bin/ld: skipping incompatible /home/professor_jonny/pj_openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /home/professor_jonny/pj_openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/lib/libc.a when searching for -lc /usr/bin/ld: skipping incompatible /home/professor_jonny/pj_openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/lib/libgcc_s.so.1 when searching for libgcc_s.so.1 /usr/bin/ld: skipping incompatible /home/professor_jonny/pj_openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/lib/libgcc_s.so.1 when searching for libgcc_s.so.1 /usr/bin/ld: as.o: in function `main': as.c:(.text.startup+0xf8b): undefined reference to `__stat_time64' /usr/bin/ld: as.c:(.text.startup+0xfbd): undefined reference to `__stat_time64' /usr/bin/ld: listing.o: in function `listing_print': listing.c:(.text+0x1e98): undefined reference to `__time64' /usr/bin/ld: listing.c:(.text+0x1ea7): undefined reference to `__localtime64' /usr/bin/ld: read.o: in function `s_incbin': read.c:(.text+0x7818): undefined reference to `__fstat_time64' /usr/bin/ld: ../bfd/.libs/libbfd.a(cache.o): in function `bfd_open_file': cache.c:(.text+0x37a): undefined reference to `__stat_time64' /usr/bin/ld: ../bfd/.libs/libbfd.a(cache.o): in function `cache_bstat': cache.c:(.text+0x752): undefined reference to `__fstat_time64' /usr/bin/ld: ../bfd/.libs/libbfd.a(opncls.o): in function `bfd_close_all_done': opncls.c:(.text+0xaa1): undefined reference to `__stat_time64' /usr/bin/ld: ../bfd/.libs/libbfd.a(elf32.o): in function `_bfd_elf32_bfd_from_remote_memory': elf32.c:(.text+0x2afc): undefined reference to `__time64' /usr/bin/ld: ../bfd/.libs/libbfd.a(plugin.o): in function `bfd_plugin_open_input': plugin.c:(.text+0x6f2): undefined reference to `__fstat_time64' /usr/bin/ld: ../bfd/.libs/libbfd.a(plugin.o): in function `try_load_plugin': plugin.c:(.text+0x863): undefined reference to `__dlsym_time64' /usr/bin/ld: ../bfd/.libs/libbfd.a(plugin.o): in function `bfd_plugin_object_p': plugin.c:(.text+0xb96): undefined reference to `__stat_time64' /usr/bin/ld: plugin.c:(.text+0xcd9): undefined reference to `__stat_time64' /usr/bin/ld: ../bfd/.libs/libbfd.a(archive.o): in function `_bfd_write_archive_contents': archive.c:(.text+0x2c82): undefined reference to `__stat_time64' /usr/bin/ld: archive.c:(.text+0x2e05): undefined reference to `__time64' /usr/bin/ld: ../bfd/.libs/libbfd.a(archive.o): in function `_bfd_bsd_write_armap': archive.c:(.text+0x34c3): undefined reference to `__stat_time64' /usr/bin/ld: ../bfd/.libs/libbfd.a(archive.o): in function `_bfd_coff_write_armap': archive.c:(.text+0x394d): undefined reference to `__time64' /usr/bin/ld: ../bfd/.libs/libbfd.a(archive64.o): in function `_bfd_archive_64_bit_write_armap': archive64.c:(.text+0x40d): undefined reference to `__time64' collect2: error: ld returned 1 exit status make[8]: *** [Makefile:1287: as-new] Error 1 make[8]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/gas' make[7]: *** [Makefile:1664: all-recursive] Error 1 make[7]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/gas' make[6]: *** [Makefile:1010: all] Error 2 make[6]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/gas' make[5]: *** [Makefile:5472: all-gas] Error 2 make[5]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40' make[4]: *** [Makefile:1005: all] Error 2 make[4]: Leaving directory '/home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40' make[3]: *** [Makefile:107: /home/professor_jonny/pj_openwrt/build_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/binutils-2.40/.built] Error 2 make[3]: Leaving directory '/home/professor_jonny/pj_openwrt/toolchain/binutils' time: toolchain/binutils/compile#0.64#2.64#4.99 ERROR: toolchain/binutils failed to build. make[2]: *** [toolchain/Makefile:93: toolchain/binutils/compile] Error 1 make[2]: Leaving directory '/home/professor_jonny/pj_openwrt' make[1]: *** [toolchain/Makefile:89: /home/professor_jonny/pj_openwrt/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-12.3.0_musl_eabi/stamp/.toolchain_compile] Error 2 make[1]: Leaving directory '/home/professor_jonny/pj_openwrt' make: *** [/home/professor_jonny/pj_openwrt/include/toplevel.mk:231: world] Error 2 professor_jonny@MRSPARKLE:~/pj_openwrt$ make clean && make defconfig