Closed
Description
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.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
[-]wrong arch [/-][+]builds wrong arch on raspberry[/+]abusr commentedon 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 commentedon Dec 21, 2021
koendv commentedon Mar 3, 2022
Works fine now.