<div dir="ltr">Oh! Turns out I was reading the GCC 5.0 changelog when I thought I was reading the 4.8 one -- I had both open at once<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 June 2017 at 05:11, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">That changes the error I get, but the build still fails:<br><br>Updated to revision 8847.<br>james@ghostorchid:~/src/ohr/<wbr>wip$ scons<br>scons: Reading SConscript files ...<br>Using target: linux  arch: x86  gcc: gcc  cc: gcc  gcctarget: x86_64-linux-gnu  fbcversion: 1050<br>scons: done reading SConscript files.<br>scons: Building targets ...<br>fbc -c build/bmod.rbas.bas -o build/bmod.rbas.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c build/menustuf.rbas.bas -o build/menustuf.rbas.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c build/moresubs.rbas.bas -o build/moresubs.rbas.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>Generating ver.txt<br>fbc -c build/savegame.rbas.bas -o build/savegame.rbas.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c build/purchase.rbas.bas -o build/purchase.rbas.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c build/common.rbas.bas -o build/game-common.rbas.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c build/loading.rbas.bas -o build/game-loading.rbas.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>gcc -o build/os_unix.o -c -O3 -DFBCVERSION=1050 -m32 -mpreferred-stack-boundary=2 -mno-sse -g -Wall --std=gnu99 os_unix.c<br>fbc -c os_unix2.bas -o build/os_unix2.o -mt -exx -g -O 2 -target linux -arch 686<br>fbc -c util.bas -o build/util.o -mt -exx -g -O 2 -target linux -arch 686<br>gcc -o build/blit.o -c -O3 -DFBCVERSION=1050 -m32 -mpreferred-stack-boundary=2 -mno-sse -g -Wall --std=gnu99 blit.c<br>gcc -o build/array.o -c -O3 -DFBCVERSION=1050 -m32 -mpreferred-stack-boundary=2 -mno-sse -g -Wall --std=gnu99 array.c<br>array.c: In function 'mem_alloc':<br>array.c:139:2: warning: implicit declaration of function '__builtin_smul_overflow' [-Wimplicit-function-<wbr>declaration]<br>  if (smul_overflow(alloc, typetbl->element_len, &arraysize) ||<br>  ^<br>array.c:140:6: warning: implicit declaration of function '__builtin_sadd_overflow' [-Wimplicit-function-<wbr>declaration]<br>      sadd_overflow(arraysize, ARRAY_OVERHEAD, &arraysize))<br>      ^<br>gcc -o build/miscc.o -c -O3 -DFBCVERSION=1050 -m32 -mpreferred-stack-boundary=2 -mno-sse -g -Wall --std=gnu99 miscc.c<br>g++ -o build/filelayer.o -c -O3 -DFBCVERSION=1050 -m32 -mpreferred-stack-boundary=2 -mno-sse --std=c++0x -g -Wall -Wno-non-virtual-dtor filelayer.cpp<br>fbc -c vector.bas -o build/vector.o -mt -exx -g -O 2 -target linux -arch 686<br>gcc -o build/os_unix_wm.o -c -O3 -DFBCVERSION=1050 -m32 -mpreferred-stack-boundary=2 -mno-sse -g -Wall --std=gnu99 os_unix_wm.c<br>g++ -o build/surface.o -c -O3 -DFBCVERSION=1050 -m32 -mpreferred-stack-boundary=2 -mno-sse --std=c++0x -g -Wall -Wno-non-virtual-dtor surface.cpp<br>fbc -c game.bas -o build/game.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c bmodsubs.bas -o build/bmodsubs.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c scriptcommands.bas -o build/scriptcommands.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c yetmore2.bas -o build/yetmore2.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c walkabouts.bas -o build/walkabouts.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c scripting.bas -o build/scripting.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c oldhsinterpreter.bas -o build/oldhsinterpreter.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c plankmenu.bas -o build/plankmenu.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c pathfinding.bas -o build/pathfinding.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c gfx_sdl.bas -o build/game-gfx_sdl.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c gfx_fb.bas -o build/game-gfx_fb.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c music_sdl.bas -o build/game-music_sdl.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c sdl_lumprwops.bas -o build/game-sdl_lumprwops.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c allmodex.bas -o build/game-allmodex.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c backends.bas -o build/game-backends.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c lumpfile.bas -o build/game-lumpfile.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c misc.bas -o build/game-misc.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c bam2mid.bas -o build/game-bam2mid.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c common_menus.bas -o build/game-common_menus.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c bcommon.bas -o build/game-bcommon.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c menus.bas -o build/game-menus.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c browse.bas -o build/game-browse.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c reload.bas -o build/game-reload.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c reloadext.bas -o build/game-reloadext.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c sliceedit.bas -o build/game-sliceedit.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>fbc -c slices.bas -o build/game-slices.o -mt -exx -g -O 2 -target linux -arch 686 -d IS_GAME -m game<br>g++ -O3 -DFBCVERSION=1050 -m32 -mpreferred-stack-boundary=2 -mno-sse --std=c++0x -g -Wall -Wno-non-virtual-dtor -o ohrrpgce-game build/bmod.rbas.o build/menustuf.rbas.o build/moresubs.rbas.o build/savegame.rbas.o build/purchase.rbas.o build/game-common.rbas.o build/game-loading.rbas.o build/os_unix.o build/os_unix2.o build/util.o build/blit.o build/base64.o build/unicode.o build/array.o build/miscc.o build/filelayer.o build/vector.o build/os_unix_wm.o build/rasterizer.o build/matrixMath.o build/surface.o build/lib/gif.o build/game.o build/bmodsubs.o build/scriptcommands.o build/yetmore2.o build/walkabouts.o build/scripting.o build/oldhsinterpreter.o build/plankmenu.o build/pathfinding.o build/game-gfx_sdl.o build/game-gfx_fb.o build/game-music_sdl.o build/game-sdl_lumprwops.o build/game-allmodex.o build/game-backends.o build/game-lumpfile.o build/game-misc.o build/game-bam2mid.o build/game-common_menus.o build/game-bcommon.o build/game-menus.o build/game-browse.o build/game-reload.o build/game-reloadext.o build/game-sliceedit.o build/game-slices.o "-Wl,-(" -Wl,--add-needed -Wl,-L/usr/local/bin/../lib/<wbr>freebasic/linux-x86 /usr/local/bin/../lib/<wbr>freebasic/linux-x86/fbrt0.o -lfbmt linux/fb_icon.c -lpthread -lncurses -lSDL -lfbgfxmt -lSDL -lSDL_mixer -lX11 -lXext -lXpm -lXrandr -lXrender "-Wl,-)"<br>build/array.o: In function `mem_resize':<br>/home/james/src/ohr/wip/array.<wbr>c:194: undefined reference to `__builtin_smul_overflow'<br>/home/james/src/ohr/wip/array.<wbr>c:195: undefined reference to `__builtin_sadd_overflow'<br>build/array.o: In function `mem_alloc':<br>/home/james/src/ohr/wip/array.<wbr>c:139: undefined reference to `__builtin_smul_overflow'<br>/home/james/src/ohr/wip/array.<wbr>c:140: undefined reference to `__builtin_sadd_overflow'<br>collect2: error: ld returned 1 exit status<br>scons: *** [ohrrpgce-game] Error 1<br>scons: building terminated because of errors.<br><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 9, 2017 at 10:05 AM,  <span dir="ltr"><<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.<wbr>com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">teeemcee<br>
2017-06-09 10:05:52 -0700 (Fri, 09 Jun 2017)<br>
93<br>
Fix non-standard C preprocessor usage in array.c<br>
<br>
(Seems to work with more recent GCC's only)<br>
---<br>
U   wip/array.c<br>
______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.o<wbr>rg</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org<wbr>/listinfo.cgi/ohrrpgce-motherh<wbr>amster.org</a><br>
</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org">ohrrpgce@lists.motherhamster.<wbr>org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.<wbr>org/listinfo.cgi/ohrrpgce-<wbr>motherhamster.org</a><br>
<br></blockquote></div><br></div>