Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Fault with haxelib on MacOSX #34

Open
chipbell4 opened this issue Apr 13, 2020 · 6 comments
Open

Segmentation Fault with haxelib on MacOSX #34

chipbell4 opened this issue Apr 13, 2020 · 6 comments

Comments

@chipbell4
Copy link

Hello, I'm trying to install this package on my Mac and it's currently failing. Here's my package.json:

{
  "dependencies": {
    "haxe": "^5.0.0"
  },
  "haxeDependencies": {
    "haxe": "3.4.7",
    "haxelib": "3.3.0",
    "neko": "2.2.0"
  }
}

npm install finishes with no errors, but when I run npx haxelib it fails:

$ npx haxelib
Called from C:\Users\nadako\Code\haxe\std/neko/_std/Date.hx line 98
Uncaught exception - Segmentation fault

Some info about my setup:

  • Node: 10.7.0
  • NPM: 6.4.1
  • OS: 10.14.4

Let me know if I can help in any way! Thanks!

@damoebius
Copy link
Collaborator

Sorry, i don't no much about npx. Why do you need it ?

@chipbell4
Copy link
Author

Ah, npx ships with npm as a shortcut for running bin files from other modules. npx haxelib is the same as:

$ ./node_modules/.bin/haxelib

@damoebius
Copy link
Collaborator

does it work from your package.json like that ?

"scripts":{
"postinstall": "haxelib --always install build.hxml",
"build": "haxe build.hxml"
},

@chipbell4
Copy link
Author

Updating my package.json to this:

{
  "dependencies": {
    "haxe": "^5.0.0"
  },
  "haxeDependencies": {
    "haxe": "3.4.7",
    "haxelib": "3.3.0",
    "neko": "2.2.0"
  },
  "scripts":{
    "postinstall": "haxelib --always install build.hxml"
  }
}

And creating a dummy build.hxml:

--js main-javascript.js
--main Main

And running npm install gives me the following log:

> [email protected] install /Users/cbell/git/haxe/node_modules/haxe
> node install.js

clean folder
Getting Haxe 3.4.7 for darwin
https://haxe.org/website-content/downloads/3.4.7/downloads/haxe-3.4.7-osx.tar.gz
using cached version
Getting Haxelib 3.3.0
https://github.com/HaxeFoundation/haxelib/archive/3.3.0.tar.gz
using cached version
Getting NekoVM 2.2.0
https://github.com/HaxeFoundation/neko/releases/download/v2-2-0/neko-2.2.0-osx64.tar.gz
using cached version
Installing Haxelib Dependencies

> undefined postinstall /Users/cbell/git/haxe
> haxelib --always install build.hxml

Called from C:\Users\nadako\Code\haxe\std/neko/_std/Date.hx line 98
Uncaught exception - Segmentation fault

Looks like it's still failing. I haven't looked at that particular line in Date.hx yet, so I'll go take a look in a bit.

@sakarit-zz
Copy link

Did you find a solution?

@chipbell4
Copy link
Author

chipbell4 commented Jun 25, 2020

I unfortunately, did not. It's been a while, but IIRC I resorted to use a docker container with a global haxe install to run the build. Not ideal, but it got me unstuck at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants