compile it with the -j1 V=sc
options, to get further info, but with 18.06, you're pretty much on your own.
you could also try 22.03.3 tiny official(!) imagebuilder configuration for 4/32MB devices (ath79, TL-WA860RE v1 etc.), using ramdisk extroot too.