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

I can't do cross compile to ARM since vfsgen was added #7149

Closed
1 of 7 tasks
esfraner opened this issue Jun 7, 2019 · 4 comments
Closed
1 of 7 tasks

I can't do cross compile to ARM since vfsgen was added #7149

esfraner opened this issue Jun 7, 2019 · 4 comments

Comments

@esfraner
Copy link

esfraner commented Jun 7, 2019

  • Gitea version (or commit ref): latest from master
  • Git version: 2.11.0
  • Operating system: Linux debian
  • Database:
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I can't do cross compile to ARM from x86_64 since vfsgen was added in #7080. If I use the previous commit (using go-bindata) there isn't any problem 😢

I realized that the error comes from //go:generate go run -mod=vendor main.go lines

I'm running this command: GOOS=linux GOARCH=arm GOARM=7 TAGS="bindata" make generate build

Screenshots

image

@sapk
Copy link
Member

sapk commented Jun 7, 2019

What version of go do you use ?

@esfraner
Copy link
Author

esfraner commented Jun 7, 2019

What version of go do you use ?

I am using 1.11.10

@sapk
Copy link
Member

sapk commented Jun 7, 2019

Ok, I think it failed because it try to run the generation via vfsgen for arm.
Can you try this order of commands ? (generate without the cross flags)

make generate
GOOS=linux GOARCH=arm GOARM=7 TAGS="bindata" make build

@esfraner
Copy link
Author

esfraner commented Jun 7, 2019

@sapk, thank you It was the problem 😄

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
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

3 participants