Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error in asm #929

Open
tdewolff opened this issue Mar 14, 2025 · 1 comment
Open

Compile error in asm #929

tdewolff opened this issue Mar 14, 2025 · 1 comment
Labels
needs info Requires extra information to be solved

Comments

@tdewolff
Copy link

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.

@lu4p
Copy link
Member

lu4p commented Mar 14, 2025

We need some code to reproduce this

@lu4p lu4p added the needs info Requires extra information to be solved label Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info Requires extra information to be solved
Development

No branches or pull requests

2 participants