<div dir="ltr">Hi.<div><br></div><div>trying to build erlang 20 under elbrus computer  (arch e2k), it goes with compiler lcc</div><div><br></div><div>trying to configure with:</div><div><br></div><div>







<p class="gmail-p1"><span class="gmail-s1">./configure --prefix=/opt/flussonic --enable-smp-support --enable-kernel-poll --enable-hipe --without-java --enable-dirty-schedulers</span></p></div><div><br></div><div>erts/configure fails, in erts/config.log I see:</div><div><br></div><div><br></div><div><br></div><div><br></div><div>







<p class="gmail-p1"><span class="gmail-s1">| #define SIZEOF_TIME_T 8</span></p>
<p class="gmail-p1"><span class="gmail-s1">| /* end confdefs.h.<span class="gmail-Apple-converted-space">  </span>*/</span></p>
<p class="gmail-p1"><span class="gmail-s1">|<span class="gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-p1"><span class="gmail-s1">| /* pr36339.c */</span></p>
<p class="gmail-p1"><span class="gmail-s1">| extern void abort (void);</span></p>
<p class="gmail-p1"><span class="gmail-s1">|<span class="gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-p1"><span class="gmail-s1">| typedef unsigned long my_uintptr_t;</span></p>
<p class="gmail-p1"><span class="gmail-s1">|<span class="gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-p1"><span class="gmail-s1">| int check_a(my_uintptr_t tagged_ptr);</span></p>
<p class="gmail-p1"><span class="gmail-s1">|<span class="gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-p1"><span class="gmail-s1">| int __attribute__((noinline)) try_a(my_uintptr_t x)</span></p>
<p class="gmail-p1"><span class="gmail-s1">| {</span></p>
<p class="gmail-p1"><span class="gmail-s1">| <span class="gmail-Apple-converted-space">  </span>my_uintptr_t heap[2];</span></p>
<p class="gmail-p1"><span class="gmail-s1">| <span class="gmail-Apple-converted-space">  </span>my_uintptr_t *hp = heap;</span></p>
<p class="gmail-p1"><span class="gmail-s1">|<span class="gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-p1"><span class="gmail-s1">| <span class="gmail-Apple-converted-space">  </span>hp[0] = x;</span></p>
<p class="gmail-p1"><span class="gmail-s1">| <span class="gmail-Apple-converted-space">  </span>hp[1] = 0;</span></p>
<p class="gmail-p1"><span class="gmail-s1">| <span class="gmail-Apple-converted-space">  </span>return check_a((my_uintptr_t)(void*)((char*)hp + 1));</span></p>
<p class="gmail-p1"><span class="gmail-s1">| }</span></p>
<p class="gmail-p1"><span class="gmail-s1">|<span class="gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-p1"><span class="gmail-s1">| int __attribute__((noinline)) check_a(my_uintptr_t tagged_ptr)</span></p>
<p class="gmail-p1"><span class="gmail-s1">| {</span></p>
<p class="gmail-p1"><span class="gmail-s1">| <span class="gmail-Apple-converted-space">  </span>my_uintptr_t *hp = (my_uintptr_t*)(void*)((char*)tagged_ptr - 1);</span></p>
<p class="gmail-p1"><span class="gmail-s1">|<span class="gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-p1"><span class="gmail-s1">| <span class="gmail-Apple-converted-space">  </span>if (hp[0] == 42 && hp[1] == 0)</span></p>
<p class="gmail-p1"><span class="gmail-s1">| <span class="gmail-Apple-converted-space">    </span>return 0;</span></p>
<p class="gmail-p1"><span class="gmail-s1">| <span class="gmail-Apple-converted-space">  </span>return -1;</span></p>
<p class="gmail-p1"><span class="gmail-s1">| }</span></p>
<p class="gmail-p1"><span class="gmail-s1">|<span class="gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-p1"><span class="gmail-s1">| int main(void)</span></p>
<p class="gmail-p1"><span class="gmail-s1">| {</span></p>
<p class="gmail-p1"><span class="gmail-s1">| <span class="gmail-Apple-converted-space">  </span>if (try_a(42) < 0)</span></p>
<p class="gmail-p1"><span class="gmail-s1">| <span class="gmail-Apple-converted-space">    </span>abort ();</span></p>
<p class="gmail-p1"><span class="gmail-s1">| <span class="gmail-Apple-converted-space">  </span>return 0;</span></p>
<p class="gmail-p1"><span class="gmail-s1">| }</span></p>
<p class="gmail-p1"><span class="gmail-s1">|<span class="gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-p1"><span class="gmail-s1">configure:34880: result: yes</span></p>
<p class="gmail-p1"><span class="gmail-s1">configure:34883: error: This gcc miscompiles the Erlang runtime system; please use a different version</span></p><p class="gmail-p1"><span class="gmail-s1"><br></span></p><p class="gmail-p1"><span class="gmail-s1">I have commented this place in configure and after some other patches it has compiled.</span></p><p class="gmail-p1"><span class="gmail-s1"><br></span></p><p class="gmail-p1"><span class="gmail-s1">Is it a fatal error?</span></p><p class="gmail-p1"><span class="gmail-s1"><br></span></p><p class="gmail-p1"><span class="gmail-s1"><br></span></p></div></div>