I've amended depbuild.cpp in the way that you said and it has created a much longer error this time that I'll have to edit a bit since it's so long even the terminal can't display it all.
Code: Select all
^
zstate.c:550:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
spcRamDP -= (unsigned int)SPCRAM;
^
zstate.c: In function ‘SaveSA1’:
zstate.c:569:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
SA1Ptr -= (unsigned int)SA1RegPCS;
^
zstate.c:581:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
SA1RegPCS -= (unsigned int)romdata;
^
zstate.c:582:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
CurBWPtr -= (unsigned int)romdata;
^
zstate.c:583:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
SA1BWPtr -= (unsigned int)romdata;
^
zstate.c:584:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
SNSBWPtr -= (unsigned int)romdata;
^
zstate.c: In function ‘RestoreSA1’:
zstate.c:589:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
SA1RegPCS += (unsigned int)romdata;
^
zstate.c:590:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
CurBWPtr += (unsigned int)romdata;
^
zstate.c:591:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
SA1BWPtr += (unsigned int)romdata;
^
zstate.c:592:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
SNSBWPtr += (unsigned int)romdata;
^
zstate.c:604:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
SA1Ptr += (unsigned int)SA1RegPCS;
^
zstate.c: In function ‘ResetState’:
zstate.c:617:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
spcPCRam += (unsigned int)SPCRAM;
^
zstate.c:618:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
spcRamDP += (unsigned int)SPCRAM;
^
zstate.c: In function ‘zst_load’:
zstate.c:994:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
SfxRAMMem = (unsigned int)sfxramdata + ((SfxRAMBR & 0xFF) << 16);
^
zstate.c:997:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
SCBRrel = (SfxSCBR << 10) + (unsigned int)sfxramdata;
^
zstate.c: In function ‘savespcdata’:
zstate.c:1403:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
*((unsigned short *)(ssdatst+0x25)) = spcPCRam-(unsigned int)SPCRAM; //00025h - PC Register value (1 Word)
^
zstate.c: In function ‘zst_load_compressed’:
zstate.c:942:12: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(compressed_buffer, 1, compressed_size, fp);
^
In file included from zstate.c:52:0:
numconv.h: In function ‘fread3’:
numconv.h:141:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(uint24buf, 3, 1, fp);
^
zstate.c: In function ‘zst_sram_load’:
zstate.c:1052:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(SA1RAMArea, 1, 131072, fp); // SA-1 sram
^
zstate.c:1056:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
if (SETAEnable) { fread(setaramdata, 1, 4096, fp); } // SETA sram
^
zstate.c:1060:23: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
if (ramsize) { fread(sram, 1, ramsize, fp); } // normal sram
^
zstate.c: In function ‘zst_sram_load_compressed’:
zstate.c:1081:14: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(compressed_buffer, 1, compressed_size, fp);
^
zstate.c: In function ‘OpenSramFile’:
zstate.c:1304:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(sram, 1, ramsize, fp);
^
zstate.c:1311:12: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(sram2, 1, ramsize, fp);
^
In file included from /usr/include/string.h:640:0,
from gblhdr.h:34,
from zstate.c:25:
In function ‘memcpy’,
inlined from ‘copy_extra_data.constprop.11’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_extra_data.constprop.11’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_extra_data.constprop.11’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_extra_data.constprop.11’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_snes_data.constprop.21’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In function ‘memcpy’,
inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
^
In file included from /usr/include/stdio.h:937:0,
from gblhdr.h:70,
from zstate.c:25:
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
In function ‘fread’,
inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
gcc -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -o gui/guifuncs.o -c gui/guifuncs.c
gui/guifuncs.c: In function ‘GetLoadData’:
gui/guifuncs.c:1362:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
GUIfileentries = main_names ? ((unsigned int)(*main_names))-2 : 0;
^
gui/guifuncs.c:1363:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
GUIdirentries = d_names ? ((unsigned int)(*d_names))-2 : 0;
^
gui/guifuncs.c: In function ‘GUILoadManualDir’:
gui/guifuncs.c:1463:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
realpath_success = (int)realpath_dir(ZRomPath, GUILoadTextA, path_buff);
^
gui/guifuncs.c: In function ‘LoadCustomFont’:
gui/guifuncs.c:98:12: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(data,10,fp); //get first line
^
gui/guifuncs.c:101:12: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(data,10,fp); //get second line
^
gui/guifuncs.c:104:12: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(data,10,fp); //get third line
^
gui/guifuncs.c:107:12: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(data,10,fp); //get fourth line
^
gui/guifuncs.c:110:12: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(data,10,fp); //get fifth line
^
gui/guifuncs.c: In function ‘GUIRestoreVars’:
gui/guifuncs.c:581:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(ComboBlHeader, 1, 23, cfg_fp);
^
gui/guifuncs.c:586:12: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(CombinDataGlob, 1, 66*NumComboGlob, cfg_fp);
^
gui/guifuncs.c: In function ‘LoadCheatSearchFile’:
gui/guifuncs.c:829:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(vidbuffer+129600, 1, 65536*2+32768, fp);
^
gui/guifuncs.c: In function ‘get_rom_name’:
gui/guifuncs.c:916:14: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(HeaderBuffer, 1, HEADER_SIZE, fp);
^
gui/guifuncs.c:947:16: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(HeaderBuffer, 1, INFO_LEN, fp);
^
gui/guifuncs.c:963:18: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(LoHead, 1, INFO_LEN, fp);
^
gui/guifuncs.c:967:18: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(HiHead, 1, INFO_LEN, fp);
^
gui/guifuncs.c:976:20: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(LoHead, 1, INFO_LEN, fp);
^
gui/guifuncs.c:988:18: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(namebuffer, INAME_LEN, 1, fp);
^
gcc -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -o linux/audio.o -c linux/audio.c
gcc -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -o linux/sdllink.o -c linux/sdllink.c
linux/sdllink.c:1297:1: warning: ‘stdcall’ attribute ignored [-Wattributes]
{
^
gcc -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -o linux/gl_draw.o -c linux/gl_draw.c
linux/gl_draw.c: In function ‘gl_drawspan’:
linux/gl_draw.c:175:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
unsigned short *vbuf1 = &((unsigned short *) vidbuffer)[16];
^
linux/gl_draw.c:176:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
unsigned short *vbuf2 = &((unsigned short *) vidbuffer)[75036 * 2 + 16];
^
linux/gl_draw.c:241:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
((unsigned short *) vidbuffer) + 288);
^
gcc -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -o linux/sw_draw.o -c linux/sw_draw.c
g++ -o zsnes cfg.o endmem.o init.o initc.o input.o md.o patch.o ui.o vcache.o version.o zloader.o zmovie.o zpath.o zstate.o ztime.o ztimec.o chips/c4emu.o chips/c4proc.o chips/dsp1emu.o chips/dsp1proc.o chips/dsp2proc.o chips/dsp3emu.o chips/dsp3proc.o chips/dsp4emu.o chips/dsp4proc.o chips/fxemu2.o chips/fxemu2b.o chips/fxemu2c.o chips/fxtable.o chips/obc1emu.o chips/obc1proc.o chips/sa1proc.o chips/sa1regs.o chips/sdd1emu.o chips/seta10.o chips/sfxproc.o chips/st10proc.o chips/7110proc.o chips/seta11.o chips/st11proc.o cpu/dma.o cpu/dsp.o cpu/dspproc.o cpu/execute.o cpu/executec.o cpu/irq.o cpu/memory.o cpu/memtable.o cpu/spc700.o cpu/stable.o cpu/table.o cpu/tablec.o debugasm.o debugger.o gui/gui.o gui/guifuncs.o gui/menu.o effects/burn.o effects/smoke.o effects/water.o jma/7zlzma.o jma/crc32.o jma/iiostrm.o jma/inbyte.o jma/jma.o jma/lzma.o jma/lzmadec.o jma/winout.o jma/zsnesjma.o mmlib/mm.o mmlib/linux.o video/makev16b.o video/makev16t.o video/makevid.o video/mode716.o video/mode716b.o video/mode716d.o video/mode716e.o video/mode716t.o video/mode7.o video/mode7ext.o video/mv16tms.o video/m716text.o video/newg162.o video/newgfx.o video/newgfx16.o video/newgfx2.o video/procvid.o video/procvidc.o video/sw_draw.o video/2xsaiw.o video/hq2x16.o video/hq2x32.o video/hq3x16.o video/hq3x32.o video/hq4x16.o video/hq4x32.o video/ntsc.o video/copyvwin.o linux/audio.o linux/battery.o linux/sdlintrf.o linux/sdllink.o linux/gl_draw.o linux/sw_draw.o linux/safelib.o zip/unzip.o zip/zpng.o -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -fno-rtti -L/usr/local/lib -L/usr/lib -lz -L/usr/lib/x86_64-linux-gnu -lSDL -lpng -lm -lcurses -lGL
g++: error: cfg.o: No such file or directory
g++: error: input.o: No such file or directory
g++: error: md.o: No such file or directory
make: *** [main] Error 1
As for my currently installed libc, my distribution came with the libc6 version pre-installed including the libc6-dev package but I've also installed the lib6-amd64:i386 and libc6-dev-amd64:i386 version for 64bit compatibility.