简体   繁体   English

dsymutil缺少在iOS上编译GNU bash的功能

[英]dsymutil missing compiling GNU bash on iOS

I'm trying to compile GNU bash 4.3.30 on (and for) my iPad 2, iOS 8.4 using Clang, ld64, cctools, GNU make and the iOS 8.1 SDK. 我正在尝试使用Clang,ld64,cctools,GNU make和iOS 8.1 SDK (以及针对)我的iPad 2,iOS 8.4 编译GNU bash 4.3.30。 When processing bashversion, Clang is "unable to execute dsymutil", and reports that it "doesn't exist", exiting with error 1. 处理bashversion时,Clang“无法执行dsymutil”,并报告它“不存在”,并退出并显示错误1。

$ make
(...)
 "/usr/bin/ld" -demangle -dynamic -arch armv7 -iphoneos_version_min 5.0.0 -syslibroot /var/mobile/iPhoneOS8.1.sdk -o bashversion -lcrt1.3.1.o -L./lib/termcap /var/tmp/bashversion-814fa1.o buildversion.o -lSystem
 "dsymutil" -o bashversion.dSYM bashversion
clang: error: unable to execute command: Executable "dsymutil" doesn't exist!
clang: error: dsymutil command failed with exit code 1 (use -v to see invocation)
make: *** [bashversion] Error 1

$ echo $CC
clang --sysroot /var/mobile/iPhoneOS8.1.sdk -v
$ clang --version
clang version 3.5.0 (trunk)
Target: armv7-apple-darwin-14.0.0
Thread model: posix
$ ld -v
@(#)PROGRAM:ld  PROJECT:ld64-
configured to support archs: i386 x86_64 armv4t armv5 armv6 armv7 armv7f armv7k armv8 arm64 arm64v8
$ which dsymutil
$ dsymutil
-sh: dsymutil: command not found
$ find / -name dsymutil
$

Apparently, my iPad has no dsymutil. 显然,我的iPad没有dsymutil。 So, where can I find one? 那么,我在哪里可以找到一个? Does it come with Xcode? Xcode附带吗? Or is there any way to compile GNU bash 4.3.30 without it? 还是没有任何方法可以编译GNU bash 4.3.30?

Dsymutil is a closed source tool, and is not available for iOS. Dsymutil是一个封闭源代码工具,不适用于iOS。

But that's not much of a problem, just create a symlink to /bin/true, 但这不是什么大问题,只需创建一个/ bin / true的符号链接,

ie

ln -s /bin/true /usr/bin/dsymutil

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM