NO

Author Topic: Bug : fatal error: Internal error: unroll_liveout().  (Read 1764 times)

Jokaste

  • Guest
Bug : fatal error: Internal error: unroll_liveout().
« on: May 24, 2019, 01:07:16 PM »

Quote
fatal error: Internal error: unroll_liveout().

If someone is interested.
I have many others. 8)

carlr

  • Guest
Re: Bug : fatal error: Internal error: unroll_liveout().
« Reply #1 on: April 18, 2020, 01:40:10 AM »
New to C so bear with me. I had that problem too.

Narrowed it down to the way I was cleaning an array.

I had:

Code: [Select]
for (j = 1; j < 6; j++)
{
for (k = 1; k < 16; k++)
{
array[j][k] = 0;
}
}

It was solved by doing the counts backwards. As mentioned I'm new to C and self taught so I'm not sure why this is the case. It could be the way I start my arrays at 1 or that my PC is little endian.
« Last Edit: April 18, 2020, 04:01:51 PM by frankie »

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
Re: Bug : fatal error: Internal error: unroll_liveout().
« Reply #2 on: April 18, 2020, 04:11:12 PM »
Hello welcome on board.
Don't worry to ask.
The error you get is an internal compiler error. Let's wait for Pelle to analyze it.
Normally is due to an anomalous condition while optimizing code. As a workaround for now try to recompile without optimization, or readjusting the code.
Then some considerations:
 -1 C arrays always starts from 0th element. If your intention was to act something like the BASIC option base it doesn't work in C.
 -2 All PC X86 architectures are little-endian, and in any case doesn't influence the compilation.
 -3 Keep care of code indentation to make it more readable.
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide