Crystal: Can't compile new versions on OpenBSD

Created on 7 Oct 2019  路  3Comments  路  Source: crystal-lang/crystal

Compile output here:

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

I tracked down where this started occurring, and found that adafaf6948f78c258766bb9f2852fdfb2b096089 compiles, the next commit, 573cdc7090a714a3f7617a78f37b5bfa75ef30cf 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 馃槄

Most helpful comment

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!

All 3 comments

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

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

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!

Was this page helpful?
0 / 5 - 0 ratings