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

[bug] terracognita 0.7.0 build failed on apple arm64 #195

Open
chenrui333 opened this issue Jul 2, 2021 · 6 comments
Open

[bug] terracognita 0.7.0 build failed on apple arm64 #195

chenrui333 opened this issue Jul 2, 2021 · 6 comments
Labels
Type: Bug Something isn't working

Comments

@chenrui333
Copy link
Contributor

General information:

  • Operating System: macOS 11-arm64
  • Terracognita version / tag: 0.7.4
  • Did you build Terracognita from sources or did you use the Docker image: source code

Describe the bug:

terracognita 0.7.0 build failed on apple arm64

Log message

# github.com/cycloidio/terracognita
net(__TEXT/__text): program too large, call relocation distance = 148372148
net(__TEXT/__text): program too large, call relocation distance = 148372128
net(__TEXT/__text): program too large, call relocation distance = 148372108
net(__TEXT/__text): program too large, call relocation distance = 148372024
net(__TEXT/__text): program too large, call relocation distance = 148371940
net(__TEXT/__text): program too large, call relocation distance = 148371948
net(__TEXT/__text): program too large, call relocation distance = 148371916
net(__TEXT/__text): program too large, call relocation distance = 148371904
net(__TEXT/__text): program too large, call relocation distance = 148371880
net(__TEXT/__text): program too large, call relocation distance = 148371780
os/user(__TEXT/__text): program too large, call relocation distance = 148371748
os/user(__TEXT/__text): program too large, call relocation distance = 148371724
os/user(__TEXT/__text): program too large, call relocation distance = 148371700
os/user(__TEXT/__text): program too large, call relocation distance = 148371668
os/user(__TEXT/__text): program too large, call relocation distance = 148371600
os/user(__TEXT/__text): program too large, call relocation distance = 148371532
os/user(__TEXT/__text): program too large, call relocation distance = 148371464
os/user(__TEXT/__text): program too large, call relocation distance = 148371404
os/user(__TEXT/__text): program too large, call relocation distance = 148371344
runtime/cgo(__TEXT/__text): program too large, call relocation distance = 148371252
runtime/cgo(__TEXT/__text): program too large, call relocation distance = 148371256
/opt/homebrew/Cellar/go/1.16.5/libexec/pkg/tool/darwin_arm64/link: too many errors
unexpected fault address 0x2d230a750
fatal error: fault
unexpected fault address 0x2d2405b00
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x2 addr=0x2d230a750 pc=0x10233e228]

Additional context

relates to:

@chenrui333 chenrui333 added the Type: Bug Something isn't working label Jul 2, 2021
@xescugc
Copy link
Member

xescugc commented Jul 6, 2021

Looks related to golang/go#40492 which is now solved but released within the 1.17.

I would say that for now there is not much to do with it, having a big binary is something we know and I plan to try to work on, but there is not any easy solution for it AFAIK.

I would say to wait until 1.17 is released and try it with that version.

@chenrui333
Copy link
Contributor Author

@xescugc I dont think it is related to that issue, because it was built out fine this April 29 with go1.16.3

Here is the build log.
https://github.com/Homebrew/homebrew-core/runs/2466540478

@chenrui333
Copy link
Contributor Author

I am actually surprised that github action still does not support apple arm yet, which make things bad.

@xescugc
Copy link
Member

xescugc commented Jul 12, 2021

IDK how to actually solve it, we know the size it has and it's hard to compile, we want to find a way to reduce it but it's not that easy.

IDK what can be the solution for this issue :(.

@chenrui333
Copy link
Contributor Author

yeah, it is complicated. 🤦

@xescugc
Copy link
Member

xescugc commented Jul 15, 2021

I was gonna mention that we released 0.7.1 but I see you already have a PR on it, just in case for that works, there is no change regarding sizes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants