TensorFlow for Mobile Poets x86_64编译失败



我正在遵循Pete Warden的TensorFlow for Mobile Poets指南,似乎发现了一个错误。当我在大约 20 分钟后运行"tensorflow/contrib/makefile/build_all_ios.sh"时,它会返回一个错误:

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
make: *** [/Users/ryan/Desktop/tensorflow-
master/tensorflow/contrib/makefile/gen/bin/ios_X86_64/benchmark] Error 1
+ '[' 2 -ne 0 ']'
+ echo 'x86_64 compilation failed.'
x86_64 compilation failed.
+ exit 1

我正在运行这个:(MacOS High Sierra 10.13.2((蟒蛇 3.6.3((TensorFlow最新拉取自 https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/ios(

完整错误脚本:

https://drive.google.com/file/d/1JovTMGBJKbqzRPBzXy3cIQ-hbz76n0ab/view?usp=sharing

感谢您的调试日志,相关错误为:

ld:警告:忽略文件/Users/ryan/Downloads/tensorflow2/tensorflow/contrib/makefile/gen/protobuf_ios/lib/libprotobuf.a

,文件/Users/ryan/Downloads/tensorflow2/tensorflow/contrib/makefile/gen/protobuf_ios/lib/libprotobuf.a 中缺少所需的架构x86_64(1 切片(

这似乎是一个错误,因为我希望该文件包含所有体系结构(包括x86_64(的代码。

您可以尝试运行lipo -info /Users/ryan/Downloads/tensorflow2/tensorflow/contrib/makefile/gen/protobuf_ios/lib/libprotobuf.a以确认这一点吗?然后,您可以在 https://github.com/tensorflow/tensorflow/issues 提交错误,因为这似乎是我们这边的错误。

[更新,我想我现在已经用 https://github.com/tensorflow/tensorflow/pull/16559 解决了这个问题]

相关内容

  • 没有找到相关文章

最新更新