Skip to content
New issue

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

Build failed on riscv64. No SIMD instrinsics available for this platform. #1388

Open
qyl27 opened this issue Jul 19, 2024 · 3 comments
Open

Comments

@qyl27
Copy link

qyl27 commented Jul 19, 2024

Quick summary

When I trying to build and package Play! for linux on riscv64 architecture, I got No SIMD instrinsics available for this platform.

System Details

  • Operating system: Arch Linux risc-v port
  • Hardware: rv64gc target
  • Version of Play!: Commit ca98a3ca28a863469861400da2b220aa45cb1243

Issue Details

SIMD checking might should be in runtime, but not compile?

Screenshots/Videos

Logs here:

In file included from /build/libretro-play/src/libretro-play/Source/gs/GSH_OpenGL/GSH_OpenGL_Texture.cpp:9:
/build/libretro-play/src/libretro-play/deps/Framework/build_cmake/FrameworkOpenGl/../../include/SimdDefs.h:23:2: error: #error No SIMD instrinsics available for this platform.
   23 | #error No SIMD instrinsics available for this platform.
      |  ^~~~~
[ 39%] Built target Framework_Http
[ 39%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/Jitter_CodeGen_Wasm_64.cpp.o
[ 39%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/Jitter_CodeGen_Wasm_Fpu.cpp.o
[ 40%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/Jitter_CodeGen_Wasm_Md.cpp.o
[ 40%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/Jitter_CodeGen.cpp.o
[ 40%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/Jitter_CodeGenFactory.cpp.o
[ 40%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/Jitter.cpp.o
/build/libretro-play/src/libretro-play/deps/CodeGen/src/Jitter_CodeGenFactory.cpp:38:18: warning: #warning Architecture not supported [-Wcpp]
   38 |                 #warning Architecture not supported
      |                  ^~~~~~~
[ 41%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/Jitter_Optimize.cpp.o
[ 41%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/Jitter_RegAlloc.cpp.o
[ 41%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/Jitter_Statement.cpp.o
[ 41%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/Jitter_SymbolTable.cpp.o
[ 42%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/LiteralPool.cpp.o
[ 42%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/MachoObjectFile.cpp.o
[ 42%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/MemoryFunction.cpp.o
[ 42%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/ObjectFile.cpp.o
[ 42%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/WasmModuleBuilder.cpp.o
[ 43%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/X86Assembler.cpp.o
[ 43%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/X86Assembler_Avx.cpp.o
[ 43%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/X86Assembler_Fpu.cpp.o
make[2]: *** [Source/ui_libretro/gs/GSH_OpenGL/CMakeFiles/gsh_opengl.dir/build.make:104: Source/ui_libretro/gs/GSH_OpenGL/CMakeFiles/gsh_opengl.dir/GSH_OpenGL_Texture.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 43%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/X86Assembler_Sse.cpp.o
[ 44%] Building CXX object Source/ui_libretro/Source/CodeGen/CMakeFiles/CodeGen.dir/__/src/X86CpuFeatures.cpp.o
make[1]: *** [CMakeFiles/Makefile2:794: Source/ui_libretro/gs/GSH_OpenGL/CMakeFiles/gsh_opengl.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 44%] Linking CXX static library libCodeGen.a
[ 44%] Built target CodeGen
make: *** [Makefile:156: all] Error 2
make: Leaving directory '/build/libretro-play/src/build'
@jpd002
Copy link
Owner

jpd002 commented Jul 19, 2024

As yes, we could probably lower it down to a warning and have fallbacks for code that use the intrinsics (I think GSH_OpenGL is gonna be a problem for example).

Though unfortunately, even if you get it to compile, you won't get much further since we don't have a JIT for RISC-V.

@qyl27
Copy link
Author

qyl27 commented Jul 20, 2024

Though unfortunately, even if you get it to compile, you won't get much further since we don't have a JIT for RISC-V.

Does that mean Play haven't support RISC-V?

@jpd002
Copy link
Owner

jpd002 commented Jul 22, 2024

Not as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants