export BUILDOS=linux
export NATIVEBUILDOS=linux
export HOSTOS=linux
export HOSTARCH=amd64
export TARGETOS=linux
export TARGETARCH=amd64
export TARGETVMARCH=amd64
export CC=gcc
export ADDCFLAGS=-O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=8192 -m64 -static
export NCORES=64
export EXE=
export NATIVEBUILDOS=linux

GOOS=linux GOARCH=amd64 go install ./syz-fuzzer
make fuzzer execprog stress executor
make[1]: Entering directory '/syzkaller/gopath/src/github.com/google/syzkaller'
export BUILDOS=linux
export NATIVEBUILDOS=linux
export HOSTOS=linux
export HOSTARCH=amd64
export TARGETOS=linux
export TARGETARCH=amd64
export TARGETVMARCH=amd64
export CC=gcc
export ADDCFLAGS=-O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=8192 -m64 -static
export NCORES=64
export EXE=
export NATIVEBUILDOS=linux

GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/sys.GitRevision=0766ce61fd7dd3ac61b6daca0df194285c6ba891 -X 'github.com/google/syzkaller/sys.gitRevisionDate=Wed Apr 24 00:02:57 2019 +0300'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-fuzzer github.com/google/syzkaller/syz-fuzzer
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/sys.GitRevision=0766ce61fd7dd3ac61b6daca0df194285c6ba891 -X 'github.com/google/syzkaller/sys.gitRevisionDate=Wed Apr 24 00:02:57 2019 +0300'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/sys.GitRevision=0766ce61fd7dd3ac61b6daca0df194285c6ba891 -X 'github.com/google/syzkaller/sys.gitRevisionDate=Wed Apr 24 00:02:57 2019 +0300'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-stress github.com/google/syzkaller/tools/syz-stress
mkdir -p ./bin/linux_amd64
gcc -o ./bin/linux_amd64/syz-executor executor/executor.cc \
	-O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=8192 -m64 -static  -DGOOS_linux=1 -DGOARCH_amd64=1 \
	-DHOSTGOOS_linux=1 -DGIT_REVISION=\"0766ce61fd7dd3ac61b6daca0df194285c6ba891\"
# github.com/google/syzkaller/sys/linux/gen
runtime: failed to create new OS thread (have 27 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc

runtime stack:
runtime.throw(0xc18d95, 0x9)
	/usr/local/go/src/runtime/panic.go:616 +0x81
runtime.newosproc(0xc4252e4c00, 0xc425e26000)
	/usr/local/go/src/runtime/os_linux.go:164 +0x1af
runtime.newm1(0xc4252e4c00)
	/usr/local/go/src/runtime/proc.go:1879 +0x113
runtime.newm(0xc36290, 0x0)
	/usr/local/go/src/runtime/proc.go:1858 +0x9b
runtime.startTheWorldWithSema(0xc4200bf501, 0x456893)
	/usr/local/go/src/runtime/proc.go:1155 +0x1d0
runtime.gcMarkTermination.func3()
	/usr/local/go/src/runtime/mgc.go:1647 +0x26
runtime.systemstack(0x0)
	/usr/local/go/src/runtime/asm_amd64.s:409 +0x79
runtime.mstart()
	/usr/local/go/src/runtime/proc.go:1175

goroutine 22 [running]:
runtime.systemstack_switch()
	/usr/local/go/src/runtime/asm_amd64.s:363 fp=0xc4200bf550 sp=0xc4200bf548 pc=0x452ce0
runtime.gcMarkTermination(0x3fedfb9fd4332c31)
	/usr/local/go/src/runtime/mgc.go:1647 +0x407 fp=0xc4200bf720 sp=0xc4200bf550 pc=0x417cd7
runtime.gcMarkDone()
	/usr/local/go/src/runtime/mgc.go:1513 +0x22c fp=0xc4200bf748 sp=0xc4200bf720 pc=0x41786c
runtime.gcBgMarkWorker(0xc420020000)
	/usr/local/go/src/runtime/mgc.go:1912 +0x2e7 fp=0xc4200bf7d8 sp=0xc4200bf748 pc=0x4187e7
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:2361 +0x1 fp=0xc4200bf7e0 sp=0xc4200bf7d8 pc=0x4556b1
created by runtime.gcBgMarkStartWorkers
	/usr/local/go/src/runtime/mgc.go:1723 +0x79

goroutine 1 [runnable]:
cmd/compile/internal/gc.(*noder).setlineno(0xc4203d1240, 0xcecae0, 0xc4242655f0, 0xc424a86000, 0xcec4e0)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:1295 +0x34c
cmd/compile/internal/gc.(*noder).nod(0xc4203d1240, 0xcecae0, 0xc4242655f0, 0xc4249e1d45, 0xc4249e1d00, 0xc4249e1d80, 0xc427341ed0)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:1292 +0x60
cmd/compile/internal/gc.(*noder).expr(0xc4203d1240, 0xcedde0, 0xc4242655f0, 0xc425e9e725)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:503 +0xdae
cmd/compile/internal/gc.(*noder).exprs(0xc4203d1240, 0xc42424de00, 0x2, 0x2, 0x0, 0x0, 0xc4249e1c00)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:475 +0xa2
cmd/compile/internal/gc.(*noder).expr(0xc4203d1240, 0xceda60, 0xc424263130, 0xc425e9e780)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:495 +0x718
cmd/compile/internal/gc.(*noder).expr(0xc4203d1240, 0xcedde0, 0xc4242655c0, 0xc4249e1725)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:503 +0xcff
cmd/compile/internal/gc.(*noder).exprs(0xc4203d1240, 0xc4242723c0, 0x2, 0x2, 0x0, 0x0, 0xc4249e1b00)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:475 +0xa2
cmd/compile/internal/gc.(*noder).expr(0xc4203d1240, 0xceda60, 0xc4242630e0, 0xcecc20)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:495 +0x718
cmd/compile/internal/gc.(*noder).expr(0xc4203d1240, 0xcedf20, 0xc42426c180, 0xc4249e1a00)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:544 +0x19c9
cmd/compile/internal/gc.(*noder).expr(0xc4203d1240, 0xcedde0, 0xc424265590, 0x0)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:503 +0xcff
cmd/compile/internal/gc.(*noder).exprs(0xc4203d1240, 0xc4242723e0, 0x2, 0x2, 0x0, 0x0, 0xc4249e1180)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:475 +0xa2
cmd/compile/internal/gc.(*noder).expr(0xc4203d1240, 0xceda60, 0xc424263040, 0xc42276a900)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:495 +0x718
cmd/compile/internal/gc.(*noder).exprs(0xc4203d1240, 0xc4243cc000, 0x10aa, 0x1200, 0x0, 0x0, 0xc4275a9700)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:475 +0xa2
cmd/compile/internal/gc.(*noder).expr(0xc4203d1240, 0xceda60, 0xc420579360, 0x0)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:495 +0x718
cmd/compile/internal/gc.(*noder).exprList(0xc4203d1240, 0xceda60, 0xc420579360, 0x0, 0xc4275943b8, 0x1)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:469 +0x5a
cmd/compile/internal/gc.(*noder).varDecl(0xc4203d1240, 0xc420579310, 0xc420579310, 0xcecf60, 0xc420579310)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:253 +0x1a8
cmd/compile/internal/gc.(*noder).decls(0xc4203d1240, 0xc4255fcc80, 0x8, 0x8, 0xc420020000, 0xc4205216f8, 0x404210)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:185 +0x1ae
cmd/compile/internal/gc.(*noder).node(0xc4203d1240)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:160 +0xba
cmd/compile/internal/gc.parseFiles(0xc420122120, 0x3, 0x4, 0x2)
	/usr/local/go/src/cmd/compile/internal/gc/noder.go:54 +0x381
cmd/compile/internal/gc.Main(0xc35628)
	/usr/local/go/src/cmd/compile/internal/gc/main.go:458 +0x1c38
main.main()
	/usr/local/go/src/cmd/compile/main.go:49 +0x95
Makefile:160: recipe for target 'stress' failed
make[1]: *** [stress] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/syzkaller/gopath/src/github.com/google/syzkaller'
Makefile:110: recipe for target 'target' failed
make: *** [target] Error 2