問題如下:
cc: error: unrecognized argument in option ‘-march=armv7-a+simd’ cc: note: valid arguments to ‘-march=’ are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc iwmmxt iwmmxt2 native CMakeFiles/dynarec_arm.dir/build.make:158: recipe for target 'CMakeFiles/dynarec_arm.dir/src/dynarec/arm_prolog.S.o' failed make[2]: *** [CMakeFiles/dynarec_arm.dir/src/dynarec/arm_prolog.S.o] Error 1 CMakeFiles/Makefile2:153: recipe for target 'CMakeFiles/dynarec_arm.dir/all' failed make[1]: *** [CMakeFiles/dynarec_arm.dir/all] Error 2 Makefile:165: recipe for target 'all' failed make: *** [all] Error 2
解法如下:
$ vim ../CMakeLists.txt +217 set(CMAKE_ASM_FLAGS "-pipe -march=armv7-a -mfpu=neon")