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

Failed to build on TravisCI with Crystal 0.27.1 #88

Closed
anykeyh opened this issue Feb 4, 2019 · 9 comments
Closed

Failed to build on TravisCI with Crystal 0.27.1 #88

anykeyh opened this issue Feb 4, 2019 · 9 comments

Comments

@anykeyh
Copy link

anykeyh commented Feb 4, 2019

Hello,

I've an issue with my build here: https://travis-ci.org/anykeyh/clear/jobs/488396058

Failed make bin:
/usr/bin/shards build 
Dependencies are satisfied
Building: ameba
Error target ameba failed to compile:
Unhandled exception: Overflow (OverflowError)
Failed to raise an exception: END_OF_STACK
[0x2b57a994fa76] ???
[0x2b57a8ea3a09] ???
[0x2b57a8eb71c2] ???
[0x2b57a8eade78] ???
[0x2b57a8eaa824] ???
[0x2b57a8ee2542] ???
[0x2b57a8ea6ced] ???
[0x2b57aad8cf5e] ???

I'm using crystal v0.27.1 and ameba v0.9

$ crystal --version
Crystal 0.27.1 [64137d045] (2019-01-30)
LLVM: 4.0.0
Default target: x86_64-unknown-linux-gnu

Any ideas? It works well on my dev machine. It might be related to LLVM since I'm using the 6.0 on my dev machine vs 4.0 on the travis build.

@veelenga
Copy link
Member

veelenga commented Feb 4, 2019

@anykeyh
Copy link
Author

anykeyh commented Feb 4, 2019

It's weird. I wonder if any other shards building ameba binary in Travis-CI experience the same problem?
Any work-around possible?

@veelenga
Copy link
Member

veelenga commented Feb 4, 2019

@anykeyh

  • You can temporary switch to osx operation system on Travis
# .travis.yml
os: osx

or

  • use this branch as a temporary workaround on Ameba's side:
development_dependencies:
  ameba:
    github: veelenga/ameba
    branch: crystal-0.27.1-workaround

The workaround itself: https://github.com/veelenga/ameba/compare/crystal-0.27.1-workaround

@veelenga
Copy link
Member

veelenga commented Feb 4, 2019

@anykeyh please let me know if that helps.

@anykeyh
Copy link
Author

anykeyh commented Feb 4, 2019

It's good, I'll use the branch work-around until Crystal is fixed.

@gdotdesign
Copy link

I had the same issue (on Travis) and the workaround fixed it for me 👍

@anykeyh
Copy link
Author

anykeyh commented Feb 4, 2019

EDIT: Nevermind 😅

@veelenga veelenga changed the title Failed to build on TravisCI Failed to build on TravisCI with Crystal 0.27.1 Feb 4, 2019
@Sija
Copy link
Member

Sija commented Feb 6, 2019

Fixed with Crystal 0.27.2 released today 🎉

@veelenga
Copy link
Member

veelenga commented Feb 6, 2019

Closing this now. Will not remove the workaround branch in case anyone uses it.

@veelenga veelenga closed this as completed Feb 6, 2019
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

4 participants