New system is amd64 NetBSD-4.0.
And there are some programs is for i386 NetBSD-3.0
I compile kernel with
options COMPAT_30
options COMPAT_NETBSD32
options COMPAT_LINUX
options COMPAT_LINUX32
options EXEC_ELF32
but failed always with follow message:
$ foo
foo: 1: Syntax error: "(" unexpected