Skip to content
This repository has been archived by the owner on Mar 1, 2020. It is now read-only.

Segmentation fault: 11 #4

Open
Jeehut opened this issue Jan 12, 2016 · 4 comments
Open

Segmentation fault: 11 #4

Jeehut opened this issue Jan 12, 2016 · 4 comments

Comments

@Jeehut
Copy link

Jeehut commented Jan 12, 2016

I installed querykit-cli via Homebrew and I'm getting a Segmentation fault: 11 when I try to run the querykit command as suggested in the README. Is it possible this isn't working with Swift 2.1?

Here's my full Swift version info:

$ swift --version
Apple Swift version 2.1.1 (swiftlang-700.1.101.15 clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
@troya2
Copy link

troya2 commented Jan 27, 2016

Same here. I get it just running querykit by itself or with -h or --help. Not sure which matters, but I'm on El Capitan, using XCode 7.2.

@gekitz
Copy link

gekitz commented Feb 7, 2016

Same here.

@kylef
Copy link
Member

kylef commented Feb 29, 2016

Unfortunately these issues are due to the homebrew version is a binary release, when the underlying Xcode on your system is updated, the binaries are now hitting a different version of Swift's run-time libraries bundled with Xcode.

Installing from source via there instructions in the README should work for now. Sorry about this.

You can install into home-brew's directory via:

$ brew uninstall querykit-cli
$ make DESTDIR=/usr/local/Cellar/querykit-cli/HEAD install
$ brew link querykit-cli

@sgflamel
Copy link

I follow you new command, but still it doesn't work
make DESTDIR=/usr/local/Cellar/querykit-cli/HEAD install
:0: error: no such file or directory: 'build'
make: *** [build] Error 1

And also, when I wanted to install the query kit from git, it returns the same error
MacBook-Pro:querykit-cli fyt$ make install
:0: error: no such file or directory: 'build'
make: *** [build] Error 1

Update~
Yesterday is a tough day, but I successfully built the project eventually!
First I check out my swift tool chain to 2.2 snapshot, but still the 'swift build' command won't work, then I check out to the latest 3.0 swift tool chain, and it worked! However, after the SwiftPM clone source from git, it told me that a folder name can not be found, but when I check the 'Tests' folder, it's already there. After a long time googling, I found a not that perfect but available solution, just change the 'Tests' folder's name to '_Tests', and the build will continue and finally done. And BTW, your project is fascinating

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

No branches or pull requests

5 participants