gcc:错误:从源代码构建tensorflow时无法识别的命令行选项'-mfpu = neon-vfpv4'。我用过bazel build -c opt --copt =“ - mfpu = neon-vfpv4”--copt =“ - funsafe-math-optimizations”--copt =“ - ftree-vectorize”--copt =“ - fomit- frame-pointer“--local_resources 1024,1.0,1.0 --verbose_failures tensorflow / tools / pip_package:build_pip_package来构建它
答案 0 :(得分:0)
不要在命令行中添加--copt="-mfpu=neon-vfpv4"
,因为这不是gcc支持的标志。
答案 1 :(得分:0)
此标志用于ARM体系结构。如果您在x86 / amd64下进行编译,只需将其删除即可。
$ gcc -mfpu=neon-vfpv4
gcc: error: unrecognized command line option '-mfpu=neon-vfpv4'
gcc: fatal error: no input files
compilation terminated.
$ arm-none-eabi-gcc -mfpu=neon-vfpv4
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.