We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having done all the steps outlined in the wiki for compiling Retroarch, it always errors at the last step for compiling it. Here is the error.
/opt/devkitpro/devkitARM/bin/arm-none-eabi-gcc -c -o ctr/gpu_old.o ctr/gpu_old.c -DUSE_CTRULIB_2 -mword-relocations -fomit-frame-pointer -ffast-math -Werror=implicit-function-declaration -march=armv6k -mtune=mpcore -mfloat-abi=hard -marm -mfpu=vfp -mtp=soft -DARM11 -D_3DS -D__3DS__ -O0 -g -DLIBCTRU_NO_DEPRECATION -I. -Ideps -Ideps/7zip -Ideps/stb -Ideps/rcheevos/include -Ilibretro-common/include -Ilibretro-common/include/compat/zlib -DRARCH_INTERNAL -DRARCH_CONSOLE -DHAVE_DSP_FILTER -DHAVE_VIDEO_FILTER -DHAVE_FILTERS_BUILTIN -DHAVE_GRIFFIN=1 -DHAVE_MENU -DHAVE_CONFIGFILE -DHAVE_RGUI -DHAVE_XMB -DHAVE_LIBRETRODB -DHAVE_CC_RESAMPLER -DHAVE_ZLIB -DHAVE_7ZIP -D_7ZIP_ST -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DHAVE_NETWORKING -DHAVE_IFINFO -DHAVE_CHEEVOS -DRC_DISABLE_LUA -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_CORES -DHAVE_UPDATE_CORE_INFO -DHAVE_PATCH -DHAVE_RWAV -DHAVE_SCREENSHOTS -DHAVE_REWIND -DHAVE_THREADS -DHAVE_GFX_WIDGETS -DHAVE_OVERLAY -DHAVE_CORE_INFO_CACHE -DHAVE_CHEATS -std=gnu2x -ffast-math -I/opt/devkitpro/libctru/include In file included from ctr/gpu_old.c:14: ctr/gpu_old.h: In function 'GPU_Init': ctr/gpu_old.h:19:34: error: expected declaration specifiers before 'DEPRECATED' 19 | void GPU_Init(Handle *gsphandle) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:28:57: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 28 | void GPU_Reset(u32* gxbuf, u32* gpuBuf, u32 gpuBufSize) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:38:85: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 38 | void GPU_SetFloatUniform(GPU_SHADER_TYPE type, u32 startreg, u32* data, u32 numreg) DEPRECAT ED; | ^~~~~~~~ ~~ ctr/gpu_old.h:50:86: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 50 | void GPU_SetViewport(u32* depthBuffer, u32* colorBuffer, u32 x, u32 y, u32 w, u32 h) DEPRECA TED; | ^~~~~~~ ~~~ ctr/gpu_old.h:61:89: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 61 | void GPU_SetScissorTest(GPU_SCISSORMODE mode, u32 left, u32 bottom, u32 right, u32 top) DEPR ECATED; | ^~~~ ~~~~~~ ctr/gpu_old.h:69:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 69 | void GPU_DepthMap(float zScale, float zOffset) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:78:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 78 | void GPU_SetAlphaTest(bool enable, GPU_TESTFUNC function, u8 ref) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:88:96: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 88 | void GPU_SetDepthTestAndWriteMask(bool enable, GPU_TESTFUNC function, GPU_WRITEMASK writemas k) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:99:99: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 99 | void GPU_SetStencilTest(bool enable, GPU_TESTFUNC function, u8 ref, u8 input_mask, u8 write_ mask) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:108:85: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 108 | void GPU_SetStencilOp(GPU_STENCILOP sfail, GPU_STENCILOP dfail, GPU_STENCILOP pass) DEPRECAT ED; | ^~~~~~~~ ~~ ctr/gpu_old.h:115:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 115 | void GPU_SetFaceCulling(GPU_CULLMODE mode) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:125:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 125 | void GPU_SetCombinerBufferWrite(u8 rgb_config, u8 alpha_config) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:140:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 140 | GPU_BLENDFACTOR alphaSrc, GPU_BLENDFACTOR alphaDst) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:148:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 148 | void GPU_SetColorLogicOp(GPU_LOGICOP op) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:158:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 158 | void GPU_SetBlendingColor(u8 r, u8 g, u8 b, u8 a) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:173:223: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 173 | void GPU_SetAttributeBuffers(u8 totalAttributes, u32* baseAddress, u64 attributeFormats, u16 attributeMask, u64 attributePermutation, u8 numBuffers, u32 bufferOffsets[], u64 bufferPermutations [], u8 bufferNumAttributes[]) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:180:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 180 | void GPU_SetTextureEnable(GPU_TEXUNIT units) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:192:108: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 192 | void GPU_SetTexture(GPU_TEXUNIT unit, u32* data, u16 width, u16 height, u32 param, GPU_TEXCO LOR colorType) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:200:66: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 200 | void GPU_SetTextureBorderColor(GPU_TEXUNIT unit,u32 borderColor) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:214:174: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 214 | void GPU_SetTexEnv(u8 id, u16 rgbSources, u16 alphaSources, u16 rgbOperands, u16 alphaOperan ds, GPU_COMBINEFUNC rgbCombine, GPU_COMBINEFUNC alphaCombine, u32 constantColor) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:223:69: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 223 | void GPU_DrawArray(GPU_Primitive_t primitive, u32 first, u32 count) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:232:74: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 232 | void GPU_DrawElements(GPU_Primitive_t primitive, u32* indexArray, u32 n) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:238:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 238 | void GPU_FinishDrawing() DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.h:240:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'DEPRECATED' 240 | void GPU_Finalize(void) DEPRECATED; | ^~~~~~~~~~ ctr/gpu_old.c:17:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 17 | { | ^ ctr/gpu_old.c:24:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 24 | { | ^ ctr/gpu_old.c:30:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 30 | { | ^ ctr/gpu_old.c:46:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 46 | { | ^ ctr/gpu_old.c:91:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 91 | { | ^ ctr/gpu_old.c:101:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 101 | { | ^ ctr/gpu_old.c:108:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 108 | { | ^ ctr/gpu_old.c:114:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 114 | { | ^ ctr/gpu_old.c:120:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 120 | { | ^ ctr/gpu_old.c:125:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 125 | { | ^ ctr/gpu_old.c:132:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 132 | { | ^ ctr/gpu_old.c:138:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 138 | { | ^ ctr/gpu_old.c:144:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 144 | { | ^ ctr/gpu_old.c:149:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 149 | { | ^ ctr/gpu_old.c:155:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 155 | { | ^ ctr/gpu_old.c:182:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 182 | { | ^ ctr/gpu_old.c:199:1: error: parameter 'GPU_FORMATSIZE' is initialized 199 | const u8 GPU_FORMATSIZE[4]={1,1,2,4}; | ^~~~~ ctr/gpu_old.c:199:28: error: variable-sized object may not be initialized except with an empty initi alizer 199 | const u8 GPU_FORMATSIZE[4]={1,1,2,4}; | ^ ctr/gpu_old.c:199:29: warning: initialization of 'const u8 *' {aka 'const unsigned char *'} from 'in t' makes pointer from integer without a cast [-Wint-conversion] 199 | const u8 GPU_FORMATSIZE[4]={1,1,2,4}; | ^ ctr/gpu_old.c:199:29: note: (near initialization for 'GPU_FORMATSIZE') ctr/gpu_old.c:199:31: warning: excess elements in scalar initializer 199 | const u8 GPU_FORMATSIZE[4]={1,1,2,4}; | ^ ctr/gpu_old.c:199:31: note: (near initialization for 'GPU_FORMATSIZE') ctr/gpu_old.c:199:33: warning: excess elements in scalar initializer 199 | const u8 GPU_FORMATSIZE[4]={1,1,2,4}; | ^ ctr/gpu_old.c:199:33: note: (near initialization for 'GPU_FORMATSIZE') ctr/gpu_old.c:199:35: warning: excess elements in scalar initializer 199 | const u8 GPU_FORMATSIZE[4]={1,1,2,4}; | ^ ctr/gpu_old.c:199:35: note: (near initialization for 'GPU_FORMATSIZE') ctr/gpu_old.c:211:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 211 | { | ^ ctr/gpu_old.c:249:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 249 | { | ^ ctr/gpu_old.c:254:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 254 | { | ^ ctr/gpu_old.c:259:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 259 | { | ^ ctr/gpu_old.c:263:1: error: parameter 'GPU_TEVID' is initialized 263 | const u8 GPU_TEVID[]={0xC0,0xC8,0xD0,0xD8,0xF0,0xF8}; | ^~~~~ ctr/gpu_old.c:263:22: error: variable-sized object may not be initialized except with an empty initi alizer 263 | const u8 GPU_TEVID[]={0xC0,0xC8,0xD0,0xD8,0xF0,0xF8}; | ^ ctr/gpu_old.c:263:23: warning: initialization of 'const u8 *' {aka 'const unsigned char *'} from 'in t' makes pointer from integer without a cast [-Wint-conversion] 263 | const u8 GPU_TEVID[]={0xC0,0xC8,0xD0,0xD8,0xF0,0xF8}; | ^~~~ ctr/gpu_old.c:263:23: note: (near initialization for 'GPU_TEVID') ctr/gpu_old.c:263:28: warning: excess elements in scalar initializer 263 | const u8 GPU_TEVID[]={0xC0,0xC8,0xD0,0xD8,0xF0,0xF8}; | ^~~~ ctr/gpu_old.c:263:28: note: (near initialization for 'GPU_TEVID') ctr/gpu_old.c:263:33: warning: excess elements in scalar initializer 263 | const u8 GPU_TEVID[]={0xC0,0xC8,0xD0,0xD8,0xF0,0xF8}; | ^~~~ ctr/gpu_old.c:263:33: note: (near initialization for 'GPU_TEVID') ctr/gpu_old.c:263:38: warning: excess elements in scalar initializer 263 | const u8 GPU_TEVID[]={0xC0,0xC8,0xD0,0xD8,0xF0,0xF8}; | ^~~~ ctr/gpu_old.c:263:38: note: (near initialization for 'GPU_TEVID') ctr/gpu_old.c:263:43: warning: excess elements in scalar initializer 263 | const u8 GPU_TEVID[]={0xC0,0xC8,0xD0,0xD8,0xF0,0xF8}; | ^~~~ ctr/gpu_old.c:263:43: note: (near initialization for 'GPU_TEVID') ctr/gpu_old.c:263:48: warning: excess elements in scalar initializer 263 | const u8 GPU_TEVID[]={0xC0,0xC8,0xD0,0xD8,0xF0,0xF8}; | ^~~~ ctr/gpu_old.c:263:48: note: (near initialization for 'GPU_TEVID') ctr/gpu_old.c:266:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 266 | { | ^ ctr/gpu_old.c:281:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 281 | { | ^ ctr/gpu_old.c:303:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 303 | { | ^ ctr/gpu_old.c:327:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 327 | { | ^ ctr/gpu_old.c:334:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 334 | { | ^ ctr/gpu_old.h:19:6: error: old-style parameter declarations in prototyped function definition 19 | void GPU_Init(Handle *gsphandle) DEPRECATED; | ^~~~~~~~ ctr/gpu_old.c:347: error: expected '{' at end of input make: *** [Makefile.ctr:294: ctr/gpu_old.o] Error 1
It must be noted that this is on Windows 10 using MSYS2.
The app to compile successfully.
It fails to compile with the afromentioned errors.
You can find this information under Information/System Information
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Having done all the steps outlined in the wiki for compiling Retroarch, it always errors at the last step for compiling it.
Here is the error.
It must be noted that this is on Windows 10 using MSYS2.
Expected behavior
The app to compile successfully.
Actual behavior
It fails to compile with the afromentioned errors.
Version/Commit
You can find this information under Information/System Information
Environment information
The text was updated successfully, but these errors were encountered: