Skip to content

builds wrong arch on raspberry #686

Closed
@koendv

Description

@koendv

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.

Activity

changed the title [-]wrong arch [/-] [+]builds wrong arch on raspberry[/+] on Dec 14, 2021
abusr

abusr commented on Dec 21, 2021

@abusr

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

koendv commented on Dec 21, 2021

@koendv
Author
koendv

koendv commented on Mar 3, 2022

@koendv
Author

Works fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @fstasi@koendv@per1234@abusr

      Issue actions

        builds wrong arch on raspberry · Issue #686 · arduino/arduino-ide