You are not logged in.

Read the FAQ and Knowledge Base before posting.
WiFi not emulated and not supported!!
We won't make a 3DS/2DS emulator.



#1 2018-03-08 19:06:50

sentai78
Member
Registered: 2018-03-08
Posts: 1

Compiling from source: Getting error when running make

Hi, I'm a new linux user running 64-bit Fedora 27. I am getting some kind of error when running make that I do not understand. What can you tell me about it? Thank you!

[xxx@xxx desmume-0.9.11]$ sudo make
[sudo] xxx のパスワード:
Making all in po
make[1]: ディレクトリ '/home/xxx/ダウンロード/desmume-0.9.11/po' に入ります
make[1]: 'all' に対して行うべき事はありません.
make[1]: ディレクトリ '/home/xxx/ダウンロード/desmume-0.9.11/po' から出ます
Making all in src
make[1]: ディレクトリ '/home/xxx/ダウンロード/desmume-0.9.11/src' に入ります
Making all in .
make[2]: ディレクトリ '/home/xxx/ダウンロード/desmume-0.9.11/src' に入ります
depbase=`echo armcpu.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DPACKAGE_NAME=\"desmume\" -DPACKAGE_TARNAME=\"desmume\" -DPACKAGE_VERSION=\"svn\" -DPACKAGE_STRING=\"desmume\ svn\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"desmume\" -DVERSION=\"svn\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSVN_REV=0 -DSVN_REV_STR=\"0\" -DHAVE_LIBZ=1 -DHAVE_GL_GL_H=1 -DHAVE_GL_GLU_H=1 -DHAVE_LIBDL=1 -DHAVE_LIBGL=1 -DHAVE_GL_GLX_H=1 -DHAVE_GL_GLX=1 -DHAVE_JIT=1 -DHOST_LINUX=1 -DHOST_64=1 -I.  -I../src -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/alsa       -g -O2 -MT armcpu.o -MD -MP -MF $depbase.Tpo -c -o armcpu.o armcpu.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from armcpu.cpp:32:0:
MMU_timing.h: In instantiation of ‘class CacheController<13, 2, 5>’:
MMU_timing.h:253:26:   required from here
MMU_timing.h:158:28: エラー: left operand of shift expression ‘(-1 << 11)’ is negative [-fpermissive]
  enum { TAGMASK = (u32)(~0 << TAGSHIFT) };
                        ~~~~^~~~~~~~~~~~
MMU_timing.h:158:7: エラー: enumerator value for ‘TAGMASK’ is not an integer constant
  enum { TAGMASK = (u32)(~0 << TAGSHIFT) };
       ^
MMU_timing.h:159:61: エラー: left operand of shift expression ‘(-1 << 5)’ is negative [-fpermissive]
  enum { BLOCKMASK = ((u32)~0 >> (32 - TAGSHIFT)) & (u32)(~0 << BLOCKSIZESHIFT) };
                                                         ~~~~^~~~~~~~~~~~~~~~~~
MMU_timing.h:159:7: エラー: enumerator value for ‘BLOCKMASK’ is not an integer constant
  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: エラー: left operand of shift expression ‘(-1 << 10)’ is negative [-fpermissive]
  enum { TAGMASK = (u32)(~0 << TAGSHIFT) };
                        ~~~~^~~~~~~~~~~~
MMU_timing.h:158:7: エラー: enumerator value for ‘TAGMASK’ is not an integer constant
  enum { TAGMASK = (u32)(~0 << TAGSHIFT) };
       ^
MMU_timing.h:159:61: エラー: left operand of shift expression ‘(-1 << 5)’ is negative [-fpermissive]
  enum { BLOCKMASK = ((u32)~0 >> (32 - TAGSHIFT)) & (u32)(~0 << BLOCKSIZESHIFT) };
                                                         ~~~~^~~~~~~~~~~~~~~~~~
MMU_timing.h:159:7: エラー: enumerator value for ‘BLOCKMASK’ is not an integer constant
  enum { BLOCKMASK = ((u32)~0 >> (32 - TAGSHIFT)) & (u32)(~0 << BLOCKSIZESHIFT) };
       ^
make[2]: *** [Makefile:1200: armcpu.o] エラー 1
make[2]: ディレクトリ '/home/xxx/ダウンロード/desmume-0.9.11/src' から出ます
make[1]: *** [Makefile:1222: all-recursive] エラー 1
make[1]: ディレクトリ '/home/xxx/ダウンロード/desmume-0.9.11/src' から出ます
make: *** [Makefile:350: all-recursive] エラー 1
[xxx@xxx desmume-0.9.11]$ 

Offline

#2 2018-03-11 17:37:04

zeromus
Radical Ninja
Registered: 2009-01-05
Posts: 4,741

Re: Compiling from source: Getting error when running make

You are building old code on a new compiler. You have two choices.
1. Build newer code on new compiler
2. Build this old code on an older compiler

Offline

Board footer

Powered by FluxBB