Skip to content

Compilation failed on Raspberry Pi #19258

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

Closed
4 of 6 tasks
Srandista opened this issue Jun 6, 2024 · 3 comments
Closed
4 of 6 tasks

Compilation failed on Raspberry Pi #19258

Srandista opened this issue Jun 6, 2024 · 3 comments
Milestone

Comments

@Srandista
Copy link

Platform

Raspberry Pi

Compiler and build tool versions

gcc 12.2.0 + cmake 3.25.1

Operating system version

Raspberry Pi Bookworm 64-bit

Build commands used

./b.sh --rpi64

What happens

I was trying to compile PPSSPP on my RPi yesterday, but I got following error:

[ 90%] Building CXX object CMakeFiles/Core.dir/GPU/Common/VertexDecoderHandwritten.cpp.o
/home/rpi/Downloads/ppsspp/GPU/Common/VertexDecoderHandwritten.cpp: In function ‘void VtxDec_Tu8_C5551_Ps16(const u8*, u8*, int, const UVScale*)’:
/home/rpi/Downloads/ppsspp/GPU/Common/VertexDecoderHandwritten.cpp:241:60: note: use ‘-flax-vector-conversions’ to permit conversions between vectors with differing element types or numbers of subparts
  241 |                 uint8x8_t uv8 = vreinterpret_s8_u64(uv8_one);
      |                                                            ^
/home/rpi/Downloads/ppsspp/GPU/Common/VertexDecoderHandwritten.cpp:241:52: error: cannot convert ‘int8x8_t’ to ‘uint8x8_t’ in initialization
  241 |                 uint8x8_t uv8 = vreinterpret_s8_u64(uv8_one);
      |                                 ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      |                                                    |
      |                                                    int8x8_t
make[2]: *** [CMakeFiles/Core.dir/build.make:4430: CMakeFiles/Core.dir/GPU/Common/VertexDecoderHandwritten.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:875: CMakeFiles/Core.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

I can see, that there was a similar issue reported here earlier, but in different file, and it was fixed in code.
#18688

Is it possible to fix this by the same way? Also if you need something else from me (like additional logs or some other files), just let me know.

Thanks!

PPSSPP version affected

v1.17.1-714-g3444c32097

Last working version

No response

Checklist

  • Test in the latest git build in case it's already fixed.
  • Make sure to run git submodule update --init --recursive before building.
  • Search for other reports of the same issue.
  • Try deleting the build directory and running the build again.
  • Check GitHub Actions, which builds every merge and PR.
  • Include logs and help us reproduce.
@Srandista
Copy link
Author

Just to clarify, with the "-flax-vector-conversions" flag it can compile past the mentioned error.

@hrydgard hrydgard added this to the v1.18.0 milestone Jun 8, 2024
@hrydgard
Copy link
Owner

hrydgard commented Jun 8, 2024

Oh, my bad again. The compilers I use somehow don't warn about this... but I did use the wrong type here. Fix coming.

@Srandista
Copy link
Author

Just want to confirm, that with v1.17.1-748-gef91fa8b4f, it compiles just fine without any issues.

Thanks for quick fix!

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