rescript-association / genType

Auto generation of idiomatic bindings between Reason and JavaScript: either vanilla or typed with TypeScript/FlowType.
https://rescript-lang.org/docs/gentype/latest/introduction
MIT License
756 stars 44 forks source link

Installing on ARM-64 yields x86-64 executable #596

Closed LoganGrier closed 2 years ago

LoganGrier commented 2 years ago

I'm trying to run gentype on an ARM Debian machine, but yarn installs a x86-64 executable.

Minimal Reproduction

mkdir test
cd test
yarn init -y
yarn add gentype
file node_modules/gentype/gentype.exe

The last command output:

node_modules/gentype/gentype.exe: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=49c20f80235205f348925cab5be232ccb4972bb4, with debug_info, not stripped

System Information

I ran my reproduction on an AWS c6gd.large instance with a debian-11-arm64 image.

uname -a

Linux ip-172-31-87-129 5.10.0-11-cloud-arm64 #1 SMP Debian 5.10.92-1 (2022-01-18) aarch64 GNU/Linux

lscpu

Architecture:                    aarch64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
CPU(s):                          2
On-line CPU(s) list:             0,1
Thread(s) per core:              1
Core(s) per socket:              2
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       ARM
Model:                           1
Model name:                      Neoverse-N1
Stepping:                        r3p1
BogoMIPS:                        243.75
L1d cache:                       128 KiB
L1i cache:                       128 KiB
L2 cache:                        2 MiB
L3 cache:                        32 MiB
NUMA node0 CPU(s):               0,1
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:        Mitigation; __user pointer sanitization
Vulnerability Spectre v2:        Not affected
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp
                                 asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
cristianoc commented 2 years ago

No binaries for linux arm are provided at the moment. If anyone is interested in adapting GitHub ci to produce those, they can then be shipped with the npm package. At the moment you'd have to build from source using this repo.