-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Compilation to arm fails #102
Comments
Thanks for the report. I have tested it on arm64 only. Will take a look |
Thanks for your response. Indeed it compiles fine for arm64. However when I try to run it on Asus Tinker Edge T it hangs and after a while the asus shuts off.
on the arm64 device:
The result: it hangs. I have to restart the device.
However usually there is no log at all. I debugged it a little and found that it hangs on this line: https://github.com/ergo-services/ergo/blob/79bebaa/proto/dist/resolver.go#L225 On my local PC it works fine (but I have erlang installed) but on the arm machine it does not. Could you give me some clues, I would really appreciate it. |
To be specific, I have tested it on aarch64 and all tests passed. I will
try to find the same hardware. It's a bit difficult to resolve it with no
access to the similar environment.
…On Fri, Apr 22, 2022, 10:32 Szymon Wygnański ***@***.***> wrote:
Thanks for your response. Indeed it compiles fine for arm64. However when
I try to run it on Asus Tinker Board T it hangs and after a while the asus
shuts off.
To reproduce:
cd ergo/examples/simple
GOARCH=arm64 go build simple.go
// scp to arm64 device
on the arm64 device:
./simple
The result: it hangs. I have to restart the device.
Occasionally I get this error log:
Message from ***@***.*** at Apr 22 08:13:22 ...
kernel:[ 64.830251] Internal error: undefined instruction: 0 [#1] PREEMPT SMP
Message from ***@***.*** at Apr 22 08:13:22 ...
kernel:[ 64.964868] Process simple (pid: 4048, stack limit = 0xffff000013498000)
Message from ***@***.*** at Apr 22 08:13:22 ...
kernel:[ 65.199004] Code: d2800014 54000be1 b9404004 f9401c03 (23232323)
However usually there is no log at all.
I debugged it a little and found that it hangs on this line:
https://github.com/ergo-services/ergo/blob/79bebaa/proto/dist/resolver.go#L225
However the value of the dsn variable seams to be correct: localhost:4369
On my local PC it works fine (but I have erlang installed) but on the arm
machine it does not. Could you give me some clues, I would really
appreciate it.
—
Reply to this email directly, view it on GitHub
<#102 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA5ATFEMHDT77JI5ZYZS5LVGJP2ZANCNFSM5T7VMSSQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sorry for the delay. I still don't have anything similar to your device. May I ask you to try these fixes:
by
it also requires to add "math" module to the And update
Or you can try this branch https://github.com/ergo-services/ergo/tree/fixarm |
Sure I will try it out. However I'm OOO currently and will be able to check it early next week. |
Hi,
and then I've made the fixes you've mentioned. There was one mistake on line:
I assume it should be:
I've built everything and ran the script again but it hanged the same way it did last time. |
so there were a few issues
It seems I need to get the same HW (or a similar one) or a way to run it somehow in the VM (I have no clue how to do this so far). |
Yes the compilation issue has been fixed (actually I was compiling to the wrong target: it should be arm64, not just arm). |
I finally bought this device. Waiting for the shipment. |
Sorry for the late answer. $ uname -a
Linux vexing-eft 4.14.98-imx #1 SMP PREEMPT Wed Jun 9 15:32:53 UTC 2021 aarch64 GNU/Linux It seams that we even have the same kernel versions (only the compilation time is different). |
what version of golang are you using? OS, distro? PS: forgot to mention. I've updated simple.go by adding |
I'm compiling it on:
|
May I ask you to build it using golang 1.18? |
could you please add |
btw, is this hostname (or localhost) present in the /ets/hosts? |
thanks for the quick reply. I'll take a look at why the node couldn't connect to itself on the 4369. |
and the last thing I would like to ask you... could you please try the |
There is one difference: with the http server it does not hang (the server). I can close it with Ctrl+C. When it comes to curl it hangs. |
I guess there must be a firewall setting that drops any incoming connections. You may check this out with |
Since this bug is not related to ergo I'm closing it. |
Describe the bug
Compiling to ARM does not work
To Reproduce
Expected behavior
Compilation works fine
Actual behaviour
This error is displayed:
Environment (please complete the following information):
Additional context
Removing
GOARCH
fixes it however I need to run few services on ARMThe text was updated successfully, but these errors were encountered: