target.go: undefined: strings.ReplaceAll error when running make

8 views
Skip to first unread message

r

unread,
Jun 10, 2020, 1:36:33 PM6/10/20
to syzkaller
Hi Dmitry,
Wrote a small syzkaller descriptions file to fuzz my own module.
When running 
make TARGETARCH=arm64
this error occurs:
sys/targets/targets.go:516:11: undefined: strings.ReplaceAll
Makefile:39: *** syz-make failed.  Stop.

Host: ubuntu x64
Targeting: 4.19.x arm64 kernel module

Digging the sources, seems like I'm missing compiling related arguments.
What is the symptom of this problem?

Dmitry Vyukov

unread,
Jun 10, 2020, 1:42:33 PM6/10/20
to r, syzkaller
Hi r,

strings.ReplaceAll was introduced only in Go 1.12:
https://golang.org/pkg/strings/#ReplaceAll
You probably have something older.
Try to upgrade your packages, download latest Go from
https://golang.org/dl/ or try syz-env:
https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
Reply all
Reply to author
Forward
0 new messages