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
Error compile with NEON enable #487
Comments
I confirm the issue with neon it cannot find convert_float_s16_asm! As workaround for now to compile it i just replaced the ifdef ARM_NEON in s16_to_float.c with a DUMMY_NEON so it compile fine but instead of use native asm it will fallback with C code. |
Tried to compile with UPDATE:
For example, HAVE_NEON check
Preprocessor definitions dump is easily obtainable data, at least for gcc. That is why 2nd step is important, to determine which compiler in use. |
CPUFLAGS = -DNO_ASM -DARM -D__arm__ -DARM_ASM -D__NEON_OPT -DNOSSE
CPUFLAGS = -marm -mfloat-abi=hard
HAVE_NEON = 1
WITH_DYNAREC=arm
CPUFLAGS += -mcpu=cortex-a7 -mfpu=neon
This configuration termineted with this error:
./libretro-common/audio/conversion/float_to_s16.o: In function
convert_float_to_s16':float_to_s16.c:(.text+0x8c): undefined reference to
convert_float_s16_asm' ./libretro-common/audio/conversion/s16_to_float.o: In function
convert_s16_to_float':s16_to_float.c:(.text+0x8c): undefined reference to
convert_s16_float_asm' collect2: error: ld returned 1 exit status Makefile:878: recipe for target 'parallel_n64_libretro.so' failed make: *** [parallel_n64_libretro.so] Error 1
If remove HAVE_NEON = 1 and -mfpu=neon compilation and without issue
My CPU have neon support:
CPU: swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
What's problem on compiling with neon enable?
GCC is 4.9.2, os is Debian
The text was updated successfully, but these errors were encountered: