Hi,
I would like to use ReScript, compilation of rescript-compiler
(60a1c04e) failed at this step:
$ npm install # install some JS tools for testing purposes
.....
bsb: [1/4] ../linux/bsb_helper.exe
bsb: [2/4] ../linux/bsb.exe
bsb: [3/4] ../linux/bsc.exe
FAILED: ../linux/bsc.exe
/home/bp/rescript-compiler/native/4.06.1/bin/ocamlopt.opt -O2 -nodynlink -I 4.06.1 -g -w -a ../jscomp/stubs/ext_basic_hash_stubs.c -w A-4-9-48-40-45-41-44-50-21-30-32-34-37-27-60-42 -warn-error A 4.06.1/whole_compiler.mli 4.06.1/whole_compiler.ml -o ../linux/bsc.exe && strip ../linux/bsc.exe
File "ext_int.ml", line 32, characters 11-24:
Error: Integer literal exceeds the range of representable integers of type int
bsb: [4/4] ../linux/refmt.exe
FAILED: cannot make progress due to previous errors.
child_process.js:650
throw err;
^
Error: Command failed: /home/bp/rescript-compiler/linux/ninja.exe -f release.ninja -v
at checkExecSyncError (child_process.js:629:11)
at Object.execFileSync (child_process.js:647:13)
at provideCompiler (/home/bp/rescript-compiler/scripts/install.js:211:8)
at Object.<anonymous> (/home/bp/rescript-compiler/scripts/install.js:222:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bs-platform@8.4.0 postinstall: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bs-platform@8.4.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/bp/.npm/_logs/2020-12-29T11_21_02_660Z-debug.log
I tried npm install -g bs-platform
first, but it fails too, this is why I’m trying to compile the sources.