Skip to content

Compile error in asm #929

Open
Open
@tdewolff

Description

@tdewolff

When I run GO111MODULES=on CGO_ENABLED=1 garble -seed=${SEED} build -race -o web/${NAME} and note the -race the following is thrown:

# runtime
/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:199: expected '(', found /
/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:205: expected '(', found /
asm: /tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:205: symbol sync redeclared
	/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:199: other declaration of symbol sync
/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:211: expected '(', found /
asm: /tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:211: symbol sync redeclared
	/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:205: other declaration of symbol sync
/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:213: expected '(', found /
/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:215: expected '(', found /
asm: /tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:215: symbol sync redeclared
	/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:211: other declaration of symbol sync
/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:217: expected '(', found /
/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:219: expected '(', found /
asm: /tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:219: symbol sync redeclared
	/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:215: other declaration of symbol sync
/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:221: expected '(', found /
/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:223: expected '(', found /
asm: /tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:223: symbol sync redeclared
	/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:219: other declaration of symbol sync
/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:225: expected '(', found /
/tmp/garble-shared690217748/cF6JjQmD/fxepx386.s:228: expected '(', found /
asm: too many errors
exit status 1
exit status 1
make: *** [Makefile:19: run] Error 1

Getting rid of the -race flag, I found an issue in github.com/ebitengine/purego:

# github.com/ebitengine/purego
/tmp/garble-shared300175984/XtOZ0Mdj/aY62ezwcZ2GH.s:48: expected pseudo-register; found R11
/tmp/garble-shared300175984/XtOZ0Mdj/aY62ezwcZ2GH.s:49: expected pseudo-register; found R11
/tmp/garble-shared300175984/XtOZ0Mdj/aY62ezwcZ2GH.s:50: expected pseudo-register; found R11
/tmp/garble-shared300175984/XtOZ0Mdj/aY62ezwcZ2GH.s:51: expected pseudo-register; found R11
/tmp/garble-shared300175984/XtOZ0Mdj/aY62ezwcZ2GH.s:52: expected pseudo-register; found R11
/tmp/garble-shared300175984/XtOZ0Mdj/aY62ezwcZ2GH.s:53: expected pseudo-register; found R11
/tmp/garble-shared300175984/XtOZ0Mdj/aY62ezwcZ2GH.s:54: expected pseudo-register; found R11
/tmp/garble-shared300175984/XtOZ0Mdj/aY62ezwcZ2GH.s:55: expected pseudo-register; found R11
/tmp/garble-shared300175984/XtOZ0Mdj/aY62ezwcZ2GH.s:57: expected pseudo-register; found R11
/tmp/garble-shared300175984/XtOZ0Mdj/aY62ezwcZ2GH.s:58: expected pseudo-register; found R11
/tmp/garble-shared300175984/XtOZ0Mdj/aY62ezwcZ2GH.s:59: expected pseudo-register; found R11
asm: too many errors
exit status 1
exit status 1
make: *** [Makefile:19: run] Error 1

The latter can be solved using GOGARBLE on only our own packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs infoRequires extra information to be solved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions