Mupen64 build for raspberry pi/arm error

I’m trying to build Mupen core, unfortunately i have this error :

Makefile:423: recipe for target 'mupen64plus-core/src/r4300/new_dynarec/new_dynarec.o' failed
make: *** [mupen64plus-core/src/r4300/new_dynarec/new_dynarec.o] Error 1
make: *** Waiting for unfinished jobs....


I use this command to compile make platform=rpi -j3 and i use Ubuntu 16 (gcc (Ubuntu 5.3.1-14ubuntu2) 5.3.1 20160413)

What kind of Raspberry Pi do you have? Do you actually have an original rpi? It’s not going to run N64 games anyway.

If you have an rpi2 or rpi3, the use “platform=rpi2” or “platform=rpi3”

I have a Pi zero and an odroid, with Pi 2 and Pi 3 configuration, i have compilation errors too

g++: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
g++: error: unrecognized command line option ‘-mfpu=neon-vfpv4’
g++: error: unrecognized command line option ‘-mfloat-abi=hard’
Makefile:426: recipe for target 'gles2rice/src/gDP_rice.o' failed
make: *** [gles2rice/src/gDP_rice.o] Error 1
make: *** Waiting for unfinished jobs....
g++: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
g++: error: unrecognized command line option ‘-mfpu=neon-vfpv4’
g++: error: unrecognized command line option ‘-mfloat-abi=hard’
Makefile:426: recipe for target 'gles2rice/src/gSP_rice.o' failed
make: *** [gles2rice/src/gSP_rice.o] Error 1
g++: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
g++: error: unrecognized command line option ‘-mfpu=neon-vfpv4’
g++: error: unrecognized command line option ‘-mfloat-abi=hard’
Makefile:426: recipe for target 'gles2rice/src/Blender.o' failed
make: *** [gles2rice/src/Blender.o] Error 1

I think i have a wrong version of g++.

Edit: same error with 4.8 version.