You are not logged in.
Pages: 1
Topic closed
yes hello i want to build from source code on linux ubuntu 20 so when i use the ./configure command it seems to work ok but when i do 'make' i get these errors:
In file included from armcpu.cpp:32:
MMU_timing.h: In instantiation of ‘class CacheController<13, 2, 5>’:
MMU_timing.h:253:26: required from here
MMU_timing.h:158:28: error: left operand of shift expression ‘(-1 << 11)’ is negative [-fpermissive]
158 | enum { TAGMASK = (u32)(~0 << TAGSHIFT) };
| ~~~~^~~~~~~~~~~~
MMU_timing.h:158:7: error: enumerator value for ‘TAGMASK’ is not an integer constant
158 | enum { TAGMASK = (u32)(~0 << TAGSHIFT) };
| ^
MMU_timing.h:159:61: error: left operand of shift expression ‘(-1 << 5)’ is negative [-fpermissive]
159 | enum { BLOCKMASK = ((u32)~0 >> (32 - TAGSHIFT)) & (u32)(~0 << BLOCKSIZESHIFT) };
| ~~~~^~~~~~~~~~~~~~~~~~
MMU_timing.h:159:7: error: enumerator value for ‘BLOCKMASK’ is not an integer constant
159 | enum { BLOCKMASK = ((u32)~0 >> (32 - TAGSHIFT)) & (u32)(~0 << BLOCKSIZESHIFT) };
| ^
MMU_timing.h: In instantiation of ‘class CacheController<12, 2, 5>’:
MMU_timing.h:254:26: required from here
MMU_timing.h:158:28: error: left operand of shift expression ‘(-1 << 10)’ is negative [-fpermissive]
158 | enum { TAGMASK = (u32)(~0 << TAGSHIFT) };
| ~~~~^~~~~~~~~~~~
MMU_timing.h:158:7: error: enumerator value for ‘TAGMASK’ is not an integer constant
158 | enum { TAGMASK = (u32)(~0 << TAGSHIFT) };
| ^
MMU_timing.h:159:61: error: left operand of shift expression ‘(-1 << 5)’ is negative [-fpermissive]
159 | enum { BLOCKMASK = ((u32)~0 >> (32 - TAGSHIFT)) & (u32)(~0 << BLOCKSIZESHIFT) };
| ~~~~^~~~~~~~~~~~~~~~~~
MMU_timing.h:159:7: error: enumerator value for ‘BLOCKMASK’ is not an integer constant
159 | enum { BLOCKMASK = ((u32)~0 >> (32 - TAGSHIFT)) & (u32)(~0 << BLOCKSIZESHIFT) };
| ^
make[2]: *** [Makefile:1200: armcpu.o] Error 1
make[2]: Leaving directory '/home/[name]/Downloads/desmume-0.9.11/src'
make[1]: *** [Makefile:1222: all-recursive] Error 1
make[1]: Leaving directory '/home/[name]/Downloads/desmume-0.9.11/src'
make: *** [Makefile:350: all-recursive] Error 1
any help or opinions on what i could do thanks
Offline
GOOGLE IT: " error: left operand of shift expression ‘(-1 << 11)’ is negative" desmume
https://github.com/TASEmulators/desmume/issues/82
Offline
Pages: 1
Topic closed