-
Notifications
You must be signed in to change notification settings - Fork 1.4k
executor: undefined reference to `guest_uexit' #6999
Description
Describe the bug
Syzkaller over the last few weeks does not build on amd64 - builds work on arm64
To Reproduce
export HOSTARCH=amd64
export GOARCH=amd64
cd syzkaller && make HOSTARCH=$(HOSTARCH) TARGETARCH=$(GOARCH)
Expected behavior
Build completes
Additional context
Output:
mkdir -p ./bin/linux_amd64
g++ -o ./bin/linux_amd64/syz-executor executor/executor.cc
-m64 -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -Wno-unused-but-set-variable -Wno-unused-command-line-argument -static-pie -std=c++17 -I. -Iexecutor/_include -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/home/chaasmadmin/nimbus8/syzkaller-amd64/syzkaller-chaasm-1.0.0=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/home/chaasmadmin/nimbus8/syzkaller-amd64/syzkaller-chaasm-1.0.0=/usr/src/syzkaller-chaasm-1.0.0-1 -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -DGOOS_linux=1 -DGOARCH_amd64=1
-DHOSTGOOS_linux=1 -DGIT_REVISION="c6143aacd8e1a01f2482ab5eec709f9949710cee"
/usr/bin/ld: /home/chaasmadmin/nimbus8/syzkaller-amd64/syzkaller-chaasm-1.0.0/tmp/ccY0ubOt.ltrans1.ltrans.o: in function runner(char**, int) [clone .lto_priv.0]': /usr/src/syzkaller-chaasm-1.0.0-1/src/github.com/google/syzkaller/executor/conn.h:126:(.text+0x76bf): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/bin/ld: /home/chaasmadmin/nimbus8/syzkaller-amd64/syzkaller-chaasm-1.0.0/tmp/ccY0ubOt.ltrans0.ltrans.o: in function uexit_irq_handler() [clone .lto_priv.0]':
/usr/src/syzkaller-chaasm-1.0.0-1/src/github.com/google/syzkaller/executor/common_kvm_amd64_syzos.h:165:(guest+0x8c): undefined reference to `guest_uexit'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:136: executor] Error 1