Thanks Ron for your answer
I'm trying to do a cross compilation
--------------------------------------
export STAGING_DIR="/home/build/git/openwrt/staging_dir"
export TINY="/home/build/git/openwrt/build_dir/target-mips_24kc_musl/openwrt-sdk-ar71xx-tiny_gcc-8.3.0_musl.Linux-x86_64/build_dir/target-mips_24kc_musl/linux-ar71xx_tiny/linux-4.14.148"
export CC="/home/build/git/openwrt/staging_dir/toolchain-mips_24kc_gcc-8.3.0_musl/bin/mips-openwrt-linux-gcc"
export CGO_CFLAGS="--sysroot=$TINY -I$TINY/include -I$TINY/include/linux"
env CGO_ENABLED=1 GOOS=linux GOARCH=mips GOMIPS=softfloat go build -a main.go
-------------------------------------
and the compiler responds
# runtime/cgo
In file included from _cgo_export.c:4:
cgo-builtin-prolog:7:33: error: unknown type name 'ptrdiff_t'
I haven't found why report this error