GithubHelp home page GithubHelp logo

bsansouci / bucklescript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rescript-lang/rescript-compiler

85.0 85.0 4.0 921.26 MB

A backend for the OCaml compiler which emits JavaScript.

License: Other

JavaScript 20.69% Makefile 0.39% OCaml 68.67% Shell 0.03% C++ 0.01% HTML 0.01% Standard ML 3.49% C 0.05% Batchfile 0.22% Go 0.01% CSS 0.01% TeX 1.28% PostScript 3.99% Gnuplot 0.01% Coq 1.17%

bucklescript's People

Contributors

arnarthor avatar bobzhang avatar bradking avatar bsansouci avatar chenglou avatar colincross avatar doctorlove avatar dorafmon avatar evanj avatar evmar avatar fanael avatar glennsl avatar jdeisenberg avatar joshaber avatar kwesolowski avatar maximuska avatar mchaver avatar mikaelbr avatar mransan avatar ngzhian avatar nico avatar nicolasdespres avatar pcc avatar qhuo avatar rgeary1 avatar riannucci avatar sgraham avatar syntheticpp avatar tfarina avatar zploskey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bucklescript's Issues

Fatal error: cannot load shared library dllunix

Just ran into this error while trying to build project https://github.com/bsansouci/reprocessing-example.

Fatal error: cannot load shared library dllunix
Reason: dlopen(/Users/cchampouillon/.opam/default/lib/ocaml/stublibs/dllunix.so, 138): Symbol not found: _caml_ba_compare
  Referenced from: /Users/cchampouillon/.opam/default/lib/ocaml/stublibs/dllunix.so
  Expected in: flat namespace
 in /Users/cchampouillon/.opam/default/lib/ocaml/stublibs/dllunix.so

npm install did not work for nodejs 10 or 11 on ubuntu 18.10 64bit

Here is the log
npm install -g bsb-native

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '-g', 'bsb-native' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session dd969accdb1340af
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 304 https://registry.npmjs.org/bsb-native 1003ms (from cache)
8 silly pacote tag manifest for bsb-native@latest fetched in 1017ms
9 timing stage:loadCurrentTree Completed in 1186ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 2ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule [email protected] checking installable status
17 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 6ms
18 timing stage:loadIdealTree Completed in 10ms
19 silly currentTree lib
20 silly idealTree lib
20 silly idealTree └── [email protected]
21 silly install generateActionsToTake
22 timing stage:generateActionsToTake Completed in 4ms
23 silly diffTrees action count 1
24 silly diffTrees add [email protected]
25 silly decomposeActions action count 8
26 silly decomposeActions fetch [email protected]
27 silly decomposeActions extract [email protected]
28 silly decomposeActions preinstall [email protected]
29 silly decomposeActions build [email protected]
30 silly decomposeActions install [email protected]
31 silly decomposeActions postinstall [email protected]
32 silly decomposeActions finalize [email protected]
33 silly decomposeActions refresh-package-json [email protected]
34 silly install executeActions
35 silly doSerial global-install 8
36 verbose correctMkdir /home/v/.npm/_locks correctMkdir not in flight; initializing
37 verbose lock using /home/v/.npm/_locks/staging-4ec0944d8e43c7e0.lock for /home/v/.npm-global/lib/node_modules/.staging
38 silly doParallel extract 1
39 silly extract [email protected]
40 silly tarball trying bsb-native@latest by hash: sha512-Ghp6968bxnSE7/5OLxhlszFGtiVhcBzE2LV8NkTSzP2Qoq6UCcvNrFXu4kNRRYfwx0NyJh/MfF33XsWsvwQghA==
41 silly extract bsb-native@latest extracted to /home/v/.npm-global/lib/node_modules/.staging/bsb-native-f0d2241f (24ms)
42 timing action:extract Completed in 27ms
43 silly doReverseSerial unbuild 8
44 silly doSerial remove 8
45 silly doSerial move 8
46 silly doSerial finalize 8
47 silly finalize /home/v/.npm-global/lib/node_modules/bsb-native
48 timing action:finalize Completed in 3ms
49 silly doParallel refresh-package-json 1
50 silly refresh-package-json /home/v/.npm-global/lib/node_modules/bsb-native
51 timing action:refresh-package-json Completed in 13ms
52 silly doParallel preinstall 1
53 silly preinstall [email protected]
54 info lifecycle [email protected]~preinstall: [email protected]
55 timing action:preinstall Completed in 2ms
56 silly doSerial build 8
57 silly build [email protected]
58 info linkStuff [email protected]
59 silly linkStuff [email protected] has /home/v/.npm-global/lib/node_modules as its parent node_modules
60 silly linkStuff [email protected] is part of a global install
61 silly linkStuff [email protected] is installed into a global node_modules
62 silly linkStuff [email protected] is installed into the top-level global node_modules
63 verbose linkBins [ { bsb: 'lib/bsb', bsc: 'lib/bsc', bsrefmt: 'lib/bsrefmt' },
63 verbose linkBins   '/home/v/.npm-global/bin',
63 verbose linkBins   true ]
64 timing action:build Completed in 6ms
65 silly doSerial global-link 8
66 silly doParallel update-linked 0
67 silly doSerial install 8
68 silly install [email protected]
69 info lifecycle [email protected]~install: [email protected]
70 timing action:install Completed in 2ms
71 silly doSerial postinstall 8
72 silly postinstall [email protected]
73 info lifecycle [email protected]~postinstall: [email protected]
74 verbose lifecycle [email protected]~postinstall: unsafe-perm in lifecycle true
75 verbose lifecycle [email protected]~postinstall: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/v/.npm-global/lib/node_modules/bsb-native/node_modules/.bin:/home/v/.npm-global/lib/node_modules/.bin:/home/v/.opam/4.02.3+buckle-master/bin:/home/v/.npm-global/bin/:/home/v/.npm-global/bin/:/home/v/.npm-global/bin/:/home/v/.opam/default/bin:/home/v/.npm-global/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/v/.local/bin/
76 verbose lifecycle [email protected]~postinstall: CWD: /home/v/.npm-global/lib/node_modules/bsb-native
77 silly lifecycle [email protected]~postinstall: Args: [ '-c', 'node postinstall.js' ]
78 silly lifecycle [email protected]~postinstall: Returned: code: 1  signal: null
79 info lifecycle [email protected]~postinstall: Failed to exec postinstall script
80 timing action:postinstall Completed in 92ms
81 verbose unlock done using /home/v/.npm/_locks/staging-4ec0944d8e43c7e0.lock for /home/v/.npm-global/lib/node_modules/.staging
82 timing stage:rollbackFailedOptional Completed in 5ms
83 timing stage:runTopLevelLifecycles Completed in 1359ms
84 verbose stack Error: [email protected] postinstall: `node postinstall.js`
84 verbose stack Exit status 1
84 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
84 verbose stack     at EventEmitter.emit (events.js:182:13)
84 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
84 verbose stack     at ChildProcess.emit (events.js:182:13)
84 verbose stack     at maybeClose (internal/child_process.js:962:16)
84 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
85 verbose pkgid [email protected]
86 verbose cwd /home/v
87 verbose Linux 4.18.0-11-generic
88 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "bsb-native"
89 verbose node v10.13.0
90 verbose npm  v6.4.1
91 error code ELIFECYCLE
92 error errno 1
93 error [email protected] postinstall: `node postinstall.js`
93 error Exit status 1
94 error Failed at the [email protected] postinstall script.
94 error This is probably not a problem with npm. There is likely additional logging output above.
95 verbose exit [ 1, true ]

Fresh installation fails

Hi, I wanted to give bsb-native a spin but can't install it on my machine, on a new project (empty package.json) I get the following error.

yarn add v1.22.4
warning package.json: No license field
info No lockfile found.
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/2] ⠂ bs-platform-native
error /home/clentfort/code/test/node_modules/bs-platform-native: Command failed.
Exit code: 1
Command: node scripts/install.js
Arguments: 
Directory: /home/clentfort/code/test/node_modules/bs-platform-native
Output:
ninja binary is already cached and installed:  /home/clentfort/code/test/node_modules/bs-platform-native/linux/ninja.exe
No working prebuilt buckleScript compiler
tar (child): ../vendor/ocaml.tar.gz: Funktion open fehlgeschlagen: Datei oder Verzeichnis nicht gefunden
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
child_process.js:650
    throw err;
    ^

Error: Command failed: tar xzvf ../vendor/ocaml.tar.gz
    at checkExecSyncError (child_process.js:611:11)
    at Object.execSync (child_process.js:647:15)
    at ensureOCamlExistsSync (/home/clentfort/code/test/node_modules/bs-platform-native/scripts/buildocaml.js:22:8)
    at Object.getVersionPrefix (/home/clentfort/code/test/node_modules/bs-platform-native/scripts/buildocaml.js:43:3)
    at provideCompiler (/home/clentfort/code/test/node_modules/bs-platform-native/scripts/install.js:179:44)
    at Object.<anonymous> (/home/clentfort/code/test/node_modules/bs-platform-native/scripts/install.js:221:20)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14) {
  status: 2,
  signal: null,
  output: [ null, null, null ],
  pid: 294835,
  stdout: null,
  stderr: null
}

When I do an ls -l node_modules/bs-platform-native I see that there is no ocaml.tar.gz.

The version of bs-platform-native is 0.0.6 according to the package.json.

insgesamt 208K
-rw-r--r-- 1 clentfort clentfort 204K 17. Mai 13:37 ninja.tar.gz
-rw-r--r-- 1 clentfort clentfort  200 17. Mai 13:37 README.md

The same error appears when I'm trying to install version 5.0 or 5.1, version range ~4.0.0 installs without any error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.