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

Can't compile new versions on OpenBSD #8290

Closed
wmoxam opened this issue Oct 7, 2019 · 3 comments · Fixed by #8293
Closed

Can't compile new versions on OpenBSD #8290

wmoxam opened this issue Oct 7, 2019 · 3 comments · Fixed by #8293

Comments

@wmoxam
Copy link
Contributor

wmoxam commented Oct 7, 2019

Compile output here:

https://gist.github.com/wmoxam/ec0c03fe56ee4454c1238cdfb3701ed4

I tracked down where this started occurring, and found that adafaf6 compiles, the next commit, 573cdc7 does not

I'm unsure where to go from here. Am happy to help debug this further if anyone has some pointers on how to do so 😅

@bcardiff
Copy link
Member

bcardiff commented Oct 7, 2019

What is your environment? Amount of memory? Could it be related to #8279?

@wmoxam
Copy link
Contributor Author

wmoxam commented Oct 7, 2019

This is on a fresh OpenBSD snapshot (pre-6.6), Intel i3-6100 CPU @ 3.70GHz, 16GB RAM

The gist I linked in the OP is from trying to compile with a v0.30.1 compiler. I've also tried un-installing that compiler and trying the OpenBSD port which depends on a cross-compiled object file, but linking the object file results in a broken compiler 😭

.build/crystal help
Unhandled exception: Failed to raise an exception: END_OF_STACK
[0x3b9862b0086] __crystal_sigfault_handler +1364918            
[0x3b9852f2a36] __crystal_raise +86                            
[0x3b98530b470] __crystal_realloc +6496                        
[0x3b9858288dc] __crystal_realloc +5369292                     
[0x3b9858286f3] __crystal_realloc +5368803                     
[0x3b98582f433] __crystal_realloc +5396771                     
[0x3b98582f695] __crystal_realloc +5397381                     
[0x3b98582f602] __crystal_realloc +5397234                     
[0x3b985830f61] __crystal_realloc +5403729                     
[0x3b985849e16] __crystal_realloc +5505798                     
[0x3b98534d70e] __crystal_realloc +277502                      
[0x3b9862b077b] __crystal_sigfault_handler +1366699            
[0x3b985306516] main +6                                        
[0x3b9852f113b] __start +315

@bcardiff
Copy link
Member

bcardiff commented Oct 8, 2019

Great! you got the fix! I was going to suggest things around building things with --no-debug and --threads 1, but that would not have done it. Thanks!

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

Successfully merging a pull request may close this issue.

2 participants