<div dir="ltr"><div>Dang, that is a weird bug!</div><div><br></div><div>But nice job getting it down to a test case like that! :D<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 26, 2022 at 8:11 PM Ralph Versteegen <<a href="mailto:teeemcee@gmail.com">teeemcee@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>This compile failure finally happened to me too. Looking through the emitted C code I realised that not only is <span style="font-size:12.8px">__builtin_va_list* wrong, but <span style="font-size:12.8px">__builtin_va_list** is also nonsense which happened to compile to the correct assembly. After some difficulty I produced a testcase and filed it: <a href="https://sourceforge.net/p/fbc/bugs/951/" target="_blank">https://sourceforge.net/p/fbc/bugs/951/</a></span></span></div><div><span style="font-size:12.8px"><span style="font-size:12.8px"><br></span></span></div><div><span style="font-size:12.8px"><span style="font-size:12.8px">The C code that fbc emits is random, but I've only seen 3 different possibilities. Two compile alright and the third produces that error message, so we can just ignore the problem and recompile when it fails.<br></span></span></div><div><span style="font-size:12.8px"><span style="font-size:12.8px"></span></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 1 Dec 2021 at 21:33, Ralph Versteegen <<a href="mailto:teeemcee@gmail.com" target="_blank">teeemcee@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I'm baffled.</div><div>scons does sometimes make mistakes which have to be cleared by running a second time or by cleaning (scons -c <targets>), but I've never seen symptoms that look like that, nor can I imagine how it coild happen.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 30 Nov 2021 at 13:02, James Paige <<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I saw this on my local dev machine today</div><div><br></div><div>bc -mt -g -i /home/james/src/ohrrpgce/build/ -target linux -arch x86_64 -exx -gen gcc -Wc -fno-omit-frame-pointer,-ffunction-sections,-fdata-sections,-no-pie,-Wno-builtin-declaration-mismatch,-Wno-maybe-uninitialized,-Wno-array-bounds,-Wno-missing-braces -d IS_CUSTOM -m custom -c sliceedit.bas -o build/edit-sliceedit.o<br>fbc -mt -g -i /home/james/src/ohrrpgce/build/ -target linux -arch x86_64 -exx -gen gcc -Wc -fno-omit-frame-pointer,-ffunction-sections,-fdata-sections,-no-pie,-Wno-builtin-declaration-mismatch,-Wno-maybe-uninitialized,-Wno-array-bounds,-Wno-missing-braces -d IS_CUSTOM -m custom -c slices.bas -o build/edit-slices.o<br>/home/james/src/ohrrpgce/<a href="http://reload.bi" target="_blank">reload.bi</a>: In function '_ZN6RELOAD3DOCaSERKS0_':<br>/home/james/src/ohrrpgce/reload.bi:74:46: error: assignment to expression with array type<br>   74 |  END TYPE<br>      |                                              ^<br>scons: *** [build/edit-reload.o] Error 1<br>scons: building terminated because of errors.</div><div><br></div><div>I did a `git svn rebase` to check for changes, but there were no changes.</div><div>I did `scons` to rebuild even though I didn't expect any changes (other than it being a different date than when I built last)</div><div>I got the error message above</div><div>I ran `scons` a second time, and it completed successfully with no errors. Weird!</div><div><br></div><div>---</div><div>James<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 21, 2021 at 7:24 AM James Paige <<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">I haven't tried to reproduce it yet (I'm away from my computer this weekend) but it looks like the Linux 64 bit builds are failing:<div dir="auto"><br></div><div dir="auto"><span style="font-size:12.8px">fbc -mt -O 2 -i /home/james/src/nightly/ohrrpg</span><span style="font-size:12.8px">ce-build/wip/build/ -target linux -arch x86_64 -gen gcc -Wc -fno-omit-frame-pointer,-O2,-f</span><span style="font-size:12.8px">function-sections,-fdata-secti</span><span style="font-size:12.8px">ons,-no-pie,-Wno-maybe-uniniti</span><span style="font-size:12.8px">alized,-Wno-array-bounds,-Wno-</span><span style="font-size:12.8px">missing-braces -d IS_CUSTOM -m custom -c reload.bas -o build/edit-reload.o</span><br style="font-size:12.8px"><span style="font-size:12.8px">build/edit-reload.c: In function '_ZN6RELOAD3DOCaSERKS0_':</span><br style="font-size:12.8px"><span style="font-size:12.8px">build/edit-reload.c:4564:46: error: assignment to expression with array type</span><br style="font-size:12.8px"><span style="font-size:12.8px">  *(__builtin_va_list*)((uint8*)</span><span style="font-size:12.8px">THIS$1 + 8ll) = *(__builtin_va_list*)((uint8*)</span><span style="font-size:12.8px">__FB_RHS__$1 + 8ll);</span><br style="font-size:12.8px"><span style="font-size:12.8px">                                              ^</span><br style="font-size:12.8px"><span style="font-size:12.8px">scons: *** [build/edit-reload.o] Error 1</span><br style="font-size:12.8px"><span style="font-size:12.8px">scons: building terminated because of errors</span><br></div></div>
</blockquote></div>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>
</blockquote></div>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>