How to properly configure external toolchain?

Hi, I am trying to configure external toolchain to save build time. I have configured my external toolchain as
Screenshot from 2022-09-05 15-51-55

ERROR: toolchain/wrapper failed to build.

Here is the error after make j V=s

/home/hvk/openwrt/scripts/ext-toolchain.sh --toolchain "/home/hvk/toolchain/x86_64-openwrt-linux-musl" --cflags "-Os -pipe" --cflags "-mmusl " --cflags "-I/home/hvk/toolchain/x86_64-openwrt-linux-musl/usr/include -I/home/hvk/toolchain/x86_64-openwrt-linux-musl/include" --cflags "-L/home/hvk/toolchain/x86_64-openwrt-linux-musl/usr/lib -L/home/hvk/toolchain/x86_64-openwrt-linux-musl/lib" --wrap "/home/hvk/openwrt/staging_dir/toolchain-x86_64-openwrt-linux-musl/bin"
Makefile:62: recipe for target '/home/hvk/openwrt/staging_dir/toolchain-x86_64-openwrt-linux-musl/stamp/.wrapper_installed' failed
make[3]: *** [/home/hvk/openwrt/staging_dir/toolchain-x86_64-openwrt-linux-musl/stamp/.wrapper_installed] Error 1
make[3]: Leaving directory '/home/hvk/openwrt/toolchain/wrapper'
time: toolchain/wrapper/compile#0.00#0.00#0.01
    ERROR: toolchain/wrapper failed to build.
toolchain/Makefile:95: recipe for target 'toolchain/wrapper/compile' failed
make[2]: *** [toolchain/wrapper/compile] Error 1
make[2]: Leaving directory '/home/hvk/openwrt'
toolchain/Makefile:93: recipe for target '/home/hvk/openwrt/staging_dir/toolchain-x86_64-openwrt-linux-musl/stamp/.toolchain_compile' failed
make[1]: *** [/home/hvk/openwrt/staging_dir/toolchain-x86_64-openwrt-linux-musl/stamp/.toolchain_compile] Error 2
make[1]: Leaving directory '/home/hvk/openwrt'

my external toolchain dir

.
├── bin
├── include
│   ├── arpa
│   ├── asm
│   ├── asm-generic
│   ├── bits
│   ├── drm
│   ├── fortify
│   │   └── sys
│   ├── linux
│   │   ├── android
│   │   ├── byteorder
│   │   ├── caif
│   │   ├── can
│   │   ├── cifs
│   │   ├── dvb
│   │   ├── genwqe
│   │   ├── hdlc
│   │   ├── hsi
│   │   ├── iio
│   │   ├── isdn
│   │   ├── mmc
│   │   ├── netfilter
│   │   │   └── ipset
│   │   ├── netfilter_arp
│   │   ├── netfilter_bridge
│   │   ├── netfilter_ipv4
│   │   ├── netfilter_ipv6
│   │   ├── nfsd
│   │   ├── raid
│   │   ├── sched
│   │   ├── spi
│   │   ├── sunrpc
│   │   ├── tc_act
│   │   ├── tc_ematch
│   │   ├── usb
│   │   └── wimax
│   ├── misc
│   │   └── uacce
│   ├── mtd
│   ├── net
│   ├── netinet
│   ├── netpacket
│   ├── rdma
│   │   └── hfi
│   ├── scsi
│   │   └── fc
│   ├── sound
│   │   └── sof
│   ├── sys
│   ├── video
│   └── xen
├── initial
│   ├── bin
│   ├── include
│   ├── lib
│   │   ├── bfd-plugins
│   │   ├── gcc
│   │   │   └── x86_64-openwrt-linux-musl
│   │   │       └── 11.3.0
│   │   │           ├── include
│   │   │           ├── include-fixed
│   │   │           ├── install-tools
│   │   │           │   └── include
│   │   │           └── plugin
│   │   │               └── include
│   │   │                   ├── ada
│   │   │                   │   └── gcc-interface
│   │   │                   ├── c-family
│   │   │                   ├── common
│   │   │                   │   └── config
│   │   │                   │       └── i386
│   │   │                   ├── config
│   │   │                   │   └── i386
│   │   │                   ├── cp
│   │   │                   ├── d
│   │   │                   └── objc
│   │   └── ldscripts
│   ├── libexec
│   │   └── gcc
│   │       └── x86_64-openwrt-linux-musl
│   │           └── 11.3.0
│   │               ├── install-tools
│   │               └── plugin
│   ├── share
│   │   ├── info
│   │   └── man
│   │       ├── man1
│   │       └── man7
│   └── x86_64-openwrt-linux-musl
│       └── bin
├── lib
│   ├── bfd-plugins
│   ├── gcc
│   │   └── x86_64-openwrt-linux-musl
│   │       └── 11.3.0
│   │           ├── include
│   │           ├── include-fixed
│   │           ├── install-tools
│   │           │   └── include
│   │           └── plugin
│   │               └── include
│   │                   ├── ada
│   │                   │   └── gcc-interface
│   │                   ├── c-family
│   │                   ├── common
│   │                   │   └── config
│   │                   │       └── i386
│   │                   ├── config
│   │                   │   └── i386
│   │                   ├── cp
│   │                   ├── d
│   │                   └── objc
│   └── ldscripts
├── lib32 -> lib
├── lib64 -> lib
├── libexec
│   └── gcc
│       └── x86_64-openwrt-linux-musl
│           └── 11.3.0
│               ├── install-tools
│               └── plugin
├── share
│   ├── gdb
│   │   ├── syscalls
│   │   └── system-gdbinit
│   ├── info
│   └── man
│       ├── man1
│       └── man7
├── stamp
├── usr
│   ├── include
│   └── lib
├── x86_64-openwrt-linux -> x86_64-openwrt-linux-musl
└── x86_64-openwrt-linux-musl
    ├── bin
    ├── lib -> ../lib
    ├── lib64 -> ../lib64
    └── sys-include -> ../include

The method I used to create the external toolchain dir

make tools/install -j
make toolchain/install TOOLCHAIN_DIR=”/home/hvk/toolchain”  -j24

Ubuntu : 18.04
Openwrt : 21.02

Can anyone help me what I am missing configuring in external toolchain with the wrapper.

I have looked into the [Help] [External toolchain] How to properly set external toolchain , Using external toolchain

I did find any helpful about the wrapper.

Your links actually say it can’t be done, especially the second one!?

Yes, there aren't any solution found for the usage of external toolchain, and so I am asking how can I solve the wrapper failed error.