Open louisabraham opened 4 years ago
Trying to diagnose this made me discover that block
It looks like the Makefile doesn't detect that I'm on ARM.
Furthermore, there is a misplaced endif here https://github.com/libretro/parallel-n64/blob/4db122987d6d47b8e865d42a16a502c95f04e008/Makefile#L245 that disables the detection of platform=armv8
As the build is made on my machine, I also changed
CC = gcc
CXX = g++
I could then compile with make platform=armv8
and install with cp parallel_n64_libretro.so /usr/lib/libretro/
.
However, the core crashes when I load Zelda.
I'm using a Pinebook Pro, that supports OpenGL.
Could you orient me so that I can test good build options?
This is the info of the coredump:
PID: 64982 (retroarch)
UID: 1000 (louisabraham)
GID: 1000 (louisabraham)
Signal: 11 (SEGV)
Timestamp: Sun 2020-03-22 22:30:45 CET (4min 16s ago)
Command Line: retroarch --menu --verbose
Executable: /usr/bin/retroarch
Control Group: /user.slice/user-1000.slice/session-c2.scope
Unit: session-c2.scope
Slice: user-1000.slice
Session: c2
Owner UID: 1000 (louisabraham)
Boot ID: b3467db472c045a69274ad4f2baa09ec
Machine ID: e50553af412343349e99fa1a88459084
Hostname: pbp
Storage: /var/lib/systemd/coredump/core.retroarch.1000.b3467db472c045a69274ad4f2baa09ec.64982.1584912645000000000000.lz4
Message: Process 64982 (retroarch) of user 1000 dumped core.
Stack trace of thread 64982:
#0 0x0000000000000000 n/a (n/a + 0x0)
#1 0x0000ffff77abe24c glsm_ctl (parallel_n64_libretro.so + 0xfe24c)
#2 0x0000ffff7839c3a8 default_framebuffer (parallel_n64_libretro.so + 0x9dc3a8)
FWIW - This will be included in my next reelease of recalbox for the PBP. Seems to compile fine, but so far I've only tested it on Rk3328.
Oops, wrong button.
@mrfixit2001 First, thank you so much for what you do! Any idea about how I could compile it on arch?
No worries!
I'm compiling it in 32-bit (with 64-bit kernel), so perhaps the dynarec doesn't support aarch64?
You will also need this patch to make it work with MESA:
MRFIXIT: Fix upstream compatibility
--- a/libretro-common/include/glsm/glsm.h
+++ b/libretro-common/include/glsm/glsm.h
@@ -32,7 +32,7 @@
RETRO_BEGIN_DECLS
#ifdef HAVE_OPENGLES2
-typedef GLfloat GLdouble;
+typedef double GLdouble;
typedef GLclampf GLclampd;
#endif
I come to close issue as you, the detection of platform=armv8 (armv on my side) wasn't working. I came to conlusion that it was due to wrong else in makefile: https://github.com/libretro/parallel-n64/blob/4db122987d6d47b8e865d42a16a502c95f04e008/Makefile#L248
EDIT: PR has been merged here: https://github.com/libretro/parallel-n64/commit/82c352e27049ae39e30c8d1cffabec6cbc581a3c
Hi, I still get segfault. Any update?
Hi,
I'm trying to install parallel-n64 on manjaro ARM. I first tried https://aur.archlinux.org/libretro-parallel-n64-git.git and got an error. Then I tried compiling with make and got the same error: