Sunday, April 21, 2024
HomeGolangGo compile failed with none warning or error - Getting Assist

Go compile failed with none warning or error – Getting Assist


I encountered a difficulty whereas compiling syzkaller (a custom-made model of syzkaller, primarily based on syzkaller commit a371c43c33b6f901421f93b655442363c072d251,Compiling on this commit was profitable).
When utilizing make fuzzer, I acquired a message saying

construct constraints exclude all Go information in xxx

right here is the total output

zec@creat2012-Inspiron-3910:~/SyzDirect/supply/syzdirect/syzdirect_fuzzer$ make fuzzer
go listing -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go set up ./sys/syz-sysgen
make .descriptions
make[1]: '.descriptions' is updated.
GOOS=linux GOARCH=amd64 go construct "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=02c9a6504a757e6cec0f10202624d175aa474d94+ -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240118-134457'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-fuzzer github.com/google/syzkaller/syz-fuzzer
bundle github.com/google/syzkaller/syz-fuzzer
        imports github.com/google/syzkaller/pkg/cowl
        imports github.com/google/syzkaller/pkg/cowl/backend
        imports github.com/google/syzkaller/pkg/host
        imports github.com/google/syzkaller/pkg/csource
        imports github.com/google/syzkaller/pkg/mgrconfig
        imports github.com/google/syzkaller/sys
        imports github.com/google/syzkaller/sys/akaros/gen: construct constraints exclude all Go information in /house/zec/SyzDirect/supply/syzdirect/syzdirect_fuzzer/sys/akaros/gen
bundle github.com/google/syzkaller/syz-fuzzer
        imports github.com/google/syzkaller/pkg/cowl
        imports github.com/google/syzkaller/pkg/cowl/backend
        imports github.com/google/syzkaller/pkg/host
        imports github.com/google/syzkaller/pkg/csource
        imports github.com/google/syzkaller/pkg/mgrconfig
        imports github.com/google/syzkaller/sys
        imports github.com/google/syzkaller/sys/darwin/gen: construct constraints exclude all Go information in /house/zec/SyzDirect/supply/syzdirect/syzdirect_fuzzer/sys/darwin/gen
bundle github.com/google/syzkaller/syz-fuzzer
        imports github.com/google/syzkaller/pkg/cowl
        imports github.com/google/syzkaller/pkg/cowl/backend
        imports github.com/google/syzkaller/pkg/host
        imports github.com/google/syzkaller/pkg/csource
        imports github.com/google/syzkaller/pkg/mgrconfig
        imports github.com/google/syzkaller/sys
        imports github.com/google/syzkaller/sys/freebsd/gen: construct constraints exclude all Go information in /house/zec/SyzDirect/supply/syzdirect/syzdirect_fuzzer/sys/freebsd/gen
bundle github.com/google/syzkaller/syz-fuzzer
        imports github.com/google/syzkaller/pkg/cowl
        imports github.com/google/syzkaller/pkg/cowl/backend
        imports github.com/google/syzkaller/pkg/host
        imports github.com/google/syzkaller/pkg/csource
        imports github.com/google/syzkaller/pkg/mgrconfig
        imports github.com/google/syzkaller/sys
        imports github.com/google/syzkaller/sys/fuchsia/gen: construct constraints exclude all Go information in /house/zec/SyzDirect/supply/syzdirect/syzdirect_fuzzer/sys/fuchsia/gen
bundle github.com/google/syzkaller/syz-fuzzer
        imports github.com/google/syzkaller/pkg/cowl
        imports github.com/google/syzkaller/pkg/cowl/backend
        imports github.com/google/syzkaller/pkg/host
        imports github.com/google/syzkaller/pkg/csource
        imports github.com/google/syzkaller/pkg/mgrconfig
        imports github.com/google/syzkaller/sys
        imports github.com/google/syzkaller/sys/netbsd/gen: construct constraints exclude all Go information in /house/zec/SyzDirect/supply/syzdirect/syzdirect_fuzzer/sys/netbsd/gen
bundle github.com/google/syzkaller/syz-fuzzer
        imports github.com/google/syzkaller/pkg/cowl
        imports github.com/google/syzkaller/pkg/cowl/backend
        imports github.com/google/syzkaller/pkg/host
        imports github.com/google/syzkaller/pkg/csource
        imports github.com/google/syzkaller/pkg/mgrconfig
        imports github.com/google/syzkaller/sys
        imports github.com/google/syzkaller/sys/openbsd/gen: construct constraints exclude all Go information in /house/zec/SyzDirect/supply/syzdirect/syzdirect_fuzzer/sys/openbsd/gen
bundle github.com/google/syzkaller/syz-fuzzer
        imports github.com/google/syzkaller/pkg/cowl
        imports github.com/google/syzkaller/pkg/cowl/backend
        imports github.com/google/syzkaller/pkg/host
        imports github.com/google/syzkaller/pkg/csource
        imports github.com/google/syzkaller/pkg/mgrconfig
        imports github.com/google/syzkaller/sys
        imports github.com/google/syzkaller/sys/check/gen: construct constraints exclude all Go information in /house/zec/SyzDirect/supply/syzdirect/syzdirect_fuzzer/sys/check/gen
bundle github.com/google/syzkaller/syz-fuzzer
        imports github.com/google/syzkaller/pkg/cowl
        imports github.com/google/syzkaller/pkg/cowl/backend
        imports github.com/google/syzkaller/pkg/host
        imports github.com/google/syzkaller/pkg/csource
        imports github.com/google/syzkaller/pkg/mgrconfig
        imports github.com/google/syzkaller/sys
        imports github.com/google/syzkaller/sys/trusty/gen: construct constraints exclude all Go information in /house/zec/SyzDirect/supply/syzdirect/syzdirect_fuzzer/sys/trusty/gen
bundle github.com/google/syzkaller/syz-fuzzer
        imports github.com/google/syzkaller/pkg/cowl
        imports github.com/google/syzkaller/pkg/cowl/backend
        imports github.com/google/syzkaller/pkg/host
        imports github.com/google/syzkaller/pkg/csource
        imports github.com/google/syzkaller/pkg/mgrconfig
        imports github.com/google/syzkaller/sys
        imports github.com/google/syzkaller/sys/home windows/gen: construct constraints exclude all Go information in /house/zec/SyzDirect/supply/syzdirect/syzdirect_fuzzer/sys/home windows/gen
make: *** [Makefile:158: fuzzer] Error 1

Since my atmosphere is amd64 and Linux, I assumed this could be regular; nevertheless, the compilation failed.

I attempted to make use of -x and -v to show the compilation logs, however -v didn’t produce any output, and the file /tmp/go-xxxxx generated by -x was empty.

I wish to know why the compilation fails, because it doesn’t show any errors or warnings. Is there any method to make Go present this info?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments