2015-11-02 11 views
5

Ich baue llvm/clang 3.7 mit Bitcode-Unterstützung (-fembed-bitcode). Einige Module können nicht wegen Fehlern verknüpft werden:ld: -bundle und -bitcode_bundle können nicht zusammen verwendet werden

ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together clang: error: linker command failed with exit code 1 (use -v to see invocation)

Vollfehlerausgang:

Linking CXX shared module ../../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,@executable_path/../lib ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: * [lib/BugpointPasses.dylib] Error 1 make[1]: * [tools/bugpoint-passes/CMakeFiles/BugpointPasses.dir/all] Error 2 make: *** [all] Error 2

Es scheint, dass -bundle von CMake hinzugefügt wird, wie ich nicht in der Lage war es in CMakeLists.txt zu finden und -bitcode_bundle wird von SDK wegen -fembed-bitcode hinzugefügt.

Wie kann ich es beheben? Irgendeine Problemumgehung (zB um dylibs Gebäude auszuschalten, da ich sie nicht brauche)?

+0

Ich würde empfehlen, an Clang Benutzer Mailingliste zu fragen: http://lists.llvm.org/mailman/listinfo/cfe-users – AlexDenisov

+0

Haben Sie dieses Problem gelöst? – Ponf

Antwort

0

Sie sicher, dass Sie nicht Bundle Loader in einem Ihrer Projekte verwenden: Bundle Loader setting und Satz-Match-O-Typ ausführbaren statt Bundle Match-O type setting

Hoffnung, die hilft, ich hatte das gleiche Problem und es behoben

Verwandte Themen