I was able to compile the pcsx_rearmed core on my cubox-i. I posted my steps to the solidrun forum. But I’ll post them here as well.
On Arch Linux Arm
Got pcsx_rearmed working and running well. Oddly enough, when I set “–enable-neon” I got lots of errors. I probably also overdid it on the CFLAGS but it’s working.
git clone https://github.com/libretro/pcsx_rearmed.git
cd ./pcsx_rearmed/
export CPPFLAGS="-D_FORTIFY_SOURCE=2"
export CFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DNO_ASM -DARM -D__arm__ -DARM_ASM -D__NEON_OPT -DNOSSE"
export CXXFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DNO_ASM -DARM -D__arm__ -DARM_ASM -D__NEON_OPT -DNOSSE"
export LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
export MAKEFLAGS="-j4"
./configure --platform=libretro
make -j
cp ./libretro.so /usr/lib/libretro/pcsx_rearmed_libretro.so