相关疑难解决方法(0)

ld:-bundle和-bitcode_bundle不能一起使用

我正在建设llvm/clang 3.7bitcode支持(-fembed-bitcode).由于错误,某些模块无法链接:

ld:-bundle和-bitcode_bundle(Xcode设置ENABLE_BITCODE = YES)不能一起使用clang:error:链接器命令失败,退出代码为1(使用-v查看调用)

完整错误输出:

链接CXX共享模块../../lib/BugpointPasses.dylib cd/Volumes/Transcend/dev/src/llvm_37_ios_any_build/tools/bugpoint-passes && /usr/local/Cellar/cmake/2.8.12.2/bin/cmake - E cmake_link_script CMakeFiles/BugpointPasses.dir/link.txt --verbose = 1/usr/bin/c ++ -fembed-bitcode -Os -std = c ++ 11 -stdlib = libc ++ -arch arm64 -mios-version-min = 8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -pedantic -Wno-long -long -Wnon-virtual-dtor -O3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -bundle -Wl,-headerpad_max_install_names -Wl,-dead_strip -Wl,-exported_symbols_list,/ Volumes/Transcend/dev/src/llvm_37_ios_any_build/tools/bugpoint-passes/BugpointPasses.exports -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -o ../../lib/ BugpointPasses.dylib CMakeFiles/BugpointPasses.dir/TestPasses.cpp.o -Wl,-rpath,@ execu table_path /../ lib ld:-bundle和-bitcode_bundle(Xcode设置ENABLE_BITCODE = YES)不能一起使用clang:error:链接器命令失败,退出代码为1(使用-v查看调用)make [2]:*[ lib/BugpointPasses.dylib]错误1 make [1]:* [tools/bugpoint-passes/CMakeFiles/BugpointPasses.dir/all]错误2 make:***[all]错误2 …

xcode clang ios xcode7 bitcode

6
推荐指数
1
解决办法
1208
查看次数

标签 统计

bitcode ×1

clang ×1

ios ×1

xcode ×1

xcode7 ×1