Skip to content

builds wrong arch on raspberry #686

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

Closed
koendv opened this issue Dec 14, 2021 · 3 comments
Closed

builds wrong arch on raspberry #686

koendv opened this issue Dec 14, 2021 · 3 comments
Assignees
Labels
architecture: arm Specific to ARM host architecture conclusion: resolved Issue was resolved topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project

Comments

@koendv
Copy link

koendv commented Dec 14, 2021

Describe the bug
When I build arduino-ide-2.0.0-rc2 on raspberry pi/arm64, keytar.node is compiled as Intel 80386, instead of as ARM aarch64.

./electron/build/node_modules/keytar/build/Release/obj.target/keytar.node: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=3a1f5bfabface1ce95cb96c7f2ab16360d58137a, not stripped
./electron/build/node_modules/keytar/build/Release/keytar.node: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=5297fc4f4077850c4730db5527ea7f40de21e038, stripped

See attachment file.txt

Manually copying an Arm aarch64 version of keytar.node over the i386 version allows a sucessful build.

To Reproduce
On raspberry pi, execute attached build script.
build-ide.txt

Expected behavior
That a native compilation produces a native binary.

Desktop (please complete the following information):

  • OS: linux
  • Version: 5.10.63-v8+
$ uname -a
Linux raspberrypi 5.10.63-v8+ #1488 SMP PREEMPT Thu Nov 18 16:16:16 GMT 2021 aarch64 GNU/Linux

Additional context
I provide builds of Arduino-ide-2.0.0 for raspberry pi. No action is needed, I just want to give a 'heads up' message to others who wish to compile on arm64.

@koendv koendv added the type: imperfection Perceived defect in any part of project label Dec 14, 2021
@koendv koendv changed the title wrong arch builds wrong arch on raspberry Dec 14, 2021
@per1234 per1234 added architecture: arm Specific to ARM host architecture topic: infrastructure Related to project infrastructure labels Dec 14, 2021
@abusr
Copy link

abusr commented Dec 21, 2021

You copy keytar.node

from electron/build/node_modules/keytar/build/Release/obj.target/keytar.node
over electron/build/node_modules/keytar/build/Release/keytar.node

is it corect?
I'll try a build in the holidays, I hope.

@koendv
Copy link
Author

koendv commented Dec 21, 2021 via email

@koendv
Copy link
Author

koendv commented Mar 3, 2022

Works fine now.

@koendv koendv closed this as completed Mar 3, 2022
@per1234 per1234 added the conclusion: resolved Issue was resolved label Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architecture: arm Specific to ARM host architecture conclusion: resolved Issue was resolved topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

4 participants