Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

no such instruction: `text ·bdoor_inout(SB),NOSPLIT|WRAPPER,$0' ,while building talos with gollvm #19

Open
advancedwebdeveloper opened this issue Sep 18, 2020 · 2 comments

Comments

@advancedwebdeveloper
Copy link

Hi there.
I was trying to build talos project using gollvm .

I was trying to use two known options:

$ go build -i -v -x main.go
WORK=/tmp/go-build763921707
github.com/vmware/vmw-guestinfo/bdoor
mkdir -p $WORK/b242/
cd $WORK
/usr/local/bin/llvm-goc -fgo-importcfg=/dev/null -c -x c - -o /dev/null || true
cd /home/oceanfish81/go/pkg/mod/github.com/vmware/[email protected]/bdoor
/usr/local/bin/llvm-goc -c -O2 -g -m64 -fdebug-prefix-map=$WORK=/tmp/go-build -gno-record-gcc-switches -fgo-pkgpath=github.com/vmware/vmw-guestinfo/bdoor -o $WORK/b242/go.o -I $WORK/b242/importcfgroot ./bdoor.go ./bdoor_amd64.go ./word.go
/usr/local/bin/llvm-goc -xassembler-with-cpp -I $WORK/b242/ -c -o $WORK/b242/bdoor_amd64.o -D GOOS_linux -D GOARCH_amd64 -D GOPKGPATH=github.x2ecom..z2fvmware..z2fvmw..z2dguestinfo..z2fbdoor -m64 ./bdoor_amd64.s

github.com/vmware/vmw-guestinfo/bdoor

../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s: Assembler messages:
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:31: Error: no such instruction: text ·bdoor_inout(SB),NOSPLIT|WRAPPER,$0' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:32: Error: junk (FP)' after expression
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:32: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:33: Error: junk (FP)' after expression
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:33: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:34: Error: junk (FP)' after expression
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:34: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:35: Error: junk (FP)' after expression
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:35: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:36: Error: junk (FP)' after expression
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:36: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:37: Error: junk (FP)' after expression
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:37: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:38: Error: junk (FP)' after expression
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:38: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:41: Error: number of operands mismatch for in'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:43: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:44: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:45: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:46: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:47: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:48: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:49: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:53: Error: no such instruction: text ·bdoor_hbout(SB),NOSPLIT|WRAPPER,$0'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:54: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:54: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:55: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:55: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:56: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:56: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:57: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:57: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:58: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:58: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:59: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:59: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:60: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:60: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:64: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:65: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:66: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:67: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:68: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:69: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:70: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:74: Error: no such instruction: text ·bdoor_hbin(SB),NOSPLIT|WRAPPER,$0'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:75: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:75: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:76: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:76: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:77: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:77: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:78: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:78: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:79: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:79: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:80: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:80: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:81: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:81: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:85: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:86: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:87: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:88: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:89: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:90: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:91: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:95: Error: no such instruction: text ·bdoor_inout_test(SB),NOSPLIT|WRAPPER,$0'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:96: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:96: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:97: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:97: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:98: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:98: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:99: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:99: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:100: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:100: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:101: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:101: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:102: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:102: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:104: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:105: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:106: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:107: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:108: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:109: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:110: Error: too many memory references for `movq'

Another one assume involving "noasm" build tag:

$ go build -i -v -x -tags noasm main.go
WORK=/tmp/go-build396031801
github.com/vmware/vmw-guestinfo/bdoor
mkdir -p $WORK/b242/
cd $WORK
/usr/local/bin/llvm-goc -fgo-importcfg=/dev/null -c -x c - -o /dev/null || true
cd /home/oceanfish81/go/pkg/mod/github.com/vmware/[email protected]/bdoor
/usr/local/bin/llvm-goc -c -O2 -g -m64 -fdebug-prefix-map=$WORK=/tmp/go-build -gno-record-gcc-switches -fgo-pkgpath=github.com/vmware/vmw-guestinfo/bdoor -o $WORK/b242/go.o -I $WORK/b242/importcfgroot ./bdoor.go ./bdoor_amd64.go ./word.go
/usr/local/bin/llvm-goc -xassembler-with-cpp -I $WORK/b242/ -c -o $WORK/b242/bdoor_amd64.o -D GOOS_linux -D GOARCH_amd64 -D GOPKGPATH=github.x2ecom..z2fvmware..z2fvmw..z2dguestinfo..z2fbdoor -m64 ./bdoor_amd64.s

github.com/vmware/vmw-guestinfo/bdoor

../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s: Assembler messages:
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:31: Error: no such instruction: text ·bdoor_inout(SB),NOSPLIT|WRAPPER,$0' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:32: Error: junk (FP)' after expression
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:32: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:33: Error: junk (FP)' after expression
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:33: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:34: Error: junk (FP)' after expression
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:34: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:35: Error: junk (FP)' after expression
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:35: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:36: Error: junk (FP)' after expression
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:36: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:37: Error: junk (FP)' after expression
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:37: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:38: Error: junk (FP)' after expression
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:38: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:41: Error: number of operands mismatch for in'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:43: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:44: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:45: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:46: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:47: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:48: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:49: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:53: Error: no such instruction: text ·bdoor_hbout(SB),NOSPLIT|WRAPPER,$0'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:54: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:54: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:55: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:55: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:56: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:56: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:57: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:57: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:58: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:58: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:59: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:59: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:60: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:60: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:64: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:65: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:66: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:67: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:68: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:69: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:70: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:74: Error: no such instruction: text ·bdoor_hbin(SB),NOSPLIT|WRAPPER,$0'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:75: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:75: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:76: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:76: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:77: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:77: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:78: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:78: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:79: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:79: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:80: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:80: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:81: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:81: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:85: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:86: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:87: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:88: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:89: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:90: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:91: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:95: Error: no such instruction: text ·bdoor_inout_test(SB),NOSPLIT|WRAPPER,$0'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:96: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:96: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:97: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:97: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:98: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:98: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:99: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:99: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:100: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:100: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:101: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:101: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:102: Error: junk (FP)' after expression ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:102: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:104: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:105: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:106: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:107: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:108: Error: too many memory references for movq' ../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:109: Error: too many memory references for movq'
../../../go/pkg/mod/github.com/vmware/[email protected]/bdoor/bdoor_amd64.s:110: Error: too many memory references for `movq'

Ivan

@advancedwebdeveloper
Copy link
Author

@sigma
Copy link
Contributor

sigma commented Sep 18, 2020

this is unfortunately the expected behavior: those assembly files are using the gc syntax, which other toolchains (gccgo, and apparently gollvm don't support)
We probably should guard those .s files with a "+build gc" tag and that would make the build failure more obvious, but fundamentally what's needed is to provide a suitable definition of the same functions for gollvm.

It might be interesting in the context of #18 in the sense that if avo supported generation of multiple formats (but I don't think it does) then we could still centralize the definition the same way.

sigma added a commit to sigma/vmw-guestinfo that referenced this issue Oct 3, 2020
Regarding issue vmware-archive#19, fail in a more obvious way on non-gc toolchains by guarding
the generated gc assembly.
sigma added a commit to sigma/vmw-guestinfo that referenced this issue Oct 3, 2020
Issue vmware-archive#19 shows that building with llvmgo (or gccgo) currently fails with an unclear message.
This is because it tries to compile .s files that are using a gc-specific format.
A complete solution would introduce .s files that do compile with those alternate toolchains,
but at least we'll now have a clearer error (undefined reference to a bunch of functions)
frapposelli pushed a commit to frapposelli/vmw-guestinfo that referenced this issue Oct 6, 2021
Regarding issue vmware-archive#19, fail in a more obvious way on non-gc toolchains by guarding
the generated gc assembly.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants