Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
./swift/utils/build-parser-lib Error Log
$ ./swift/utils/build-parser-lib --release --no-assertions --build-dir /tmp/parser-lib-build-ios --host iphoneos --architectures arm64
+ mkdir -p /tmp/parser-lib-build-ios/x86_64-tblgen
+ pushd /tmp/parser-lib-build-ios/x86_64-tblgen
-- clang project is enabled
-- clang-tools-extra project is disabled
-- compiler-rt project is disabled
-- debuginfo-tests project is disabled
-- libc project is disabled
-- libclc project is disabled
-- libcxx project is disabled
-- libcxxabi project is disabled
-- libunwind project is disabled
-- lld project is disabled
-- lldb project is disabled
-- mlir project is disabled
-- openmp project is disabled
-- parallel-libs project is disabled
-- polly project is disabled
-- pstl project is disabled
-- flang project is disabled
-- swift project is enabled
-- Found libtool - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Ninja version: 1.10.1
-- Found ld64 - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- LLVM host triple: x86_64-apple-macosx10.15
-- LLVM default target triple: x86_64-apple-macosx10.12
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting X86
-- Clang version: 11.0.0
CMake Deprecation Warning at /Users/ivan.lugo/personal_projects/my_ios/llvm-project/swift/CMakeLists.txt:7 (cmake_policy):
The OLD behavior for policy CMP0068 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- CMake (/usr/local/Cellar/cmake/3.18.2/bin/cmake) Version: 3.18.2
-- CMake Make Program (/usr/local/bin/ninja) Version: 1.10.1
-- C Compiler (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc) Version: 12.0.0.12000032
-- C++ Compiler (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++) Version: 12.0.0.12000032
--
-- Xcode 12.0, Build version 12A7209
--
-- OS X SDK at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk does not support architecture arm64
-- OS X SDK at /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk does not support architecture arm64e
-- OS X SDK:
-- Object File Format: MACHO
-- Swift Standard Library Path: macosx
-- Version: 10.15.6
-- Build number: 19G68
-- Deployment version: 10.15
-- Version min name: macosx
-- Triple name: macosx
-- Simulator: FALSE
-- Architectures: x86_64
-- x86_64 triple: x86_64-apple-macosx
-- Module triple: x86_64-apple-macos
-- x86_64 Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
--
-- Building host Swift tools for OSX x86_64
-- Build type: Release
-- Assertions: OFF
-- LTO: OFF
--
-- Not building Swift standard library, SDK overlays, and runtime
--
-- Swift version: 5.3
-- Swift vendor:
-- Swift compiler version:
-- Embedded clang compiler version:
-- Registering Bye as a pass plugin (static build: OFF)
Traceback (most recent call last):
File "<string>", line 22, in <module>
IndexError: list index out of range
-- Failed to find LLVM FileCheck
-- Version: 0.0.0
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/parser-lib-build-ios/x86_64-tblgen
ninja: no work to do.
ninja: no work to do.
+ popd
+ mkdir -p /tmp/parser-lib-build-ios/arm64/obj
+ pushd /tmp/parser-lib-build-ios/arm64/obj
-- clang project is enabled
-- clang-tools-extra project is disabled
-- compiler-rt project is disabled
-- debuginfo-tests project is disabled
-- libc project is disabled
-- libclc project is disabled
-- libcxx project is disabled
-- libcxxabi project is disabled
-- libunwind project is disabled
-- lld project is disabled
-- lldb project is disabled
-- mlir project is disabled
-- openmp project is disabled
-- parallel-libs project is disabled
-- polly project is disabled
-- pstl project is disabled
-- flang project is disabled
-- swift project is enabled
-- Found libtool - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Native target AArch64 is not selected; lli will not JIT code
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Ninja version: 1.10.1
-- Found ld64 - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- LLVM host triple: arm64-apple-ios10.0
-- LLVM default target triple: arm64-apple-ios10.0
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting X86
-- Clang version: 11.0.0
CMake Deprecation Warning at /Users/ivan.lugo/personal_projects/my_ios/llvm-project/swift/CMakeLists.txt:7 (cmake_policy):
The OLD behavior for policy CMP0068 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- CMake (/usr/local/Cellar/cmake/3.18.2/bin/cmake) Version: 3.18.2
-- CMake Make Program (/usr/local/bin/ninja) Version: 1.10.1
-- C Compiler (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc) Version: 12.0.0.12000032
-- C++ Compiler (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++) Version: 12.0.0.12000032
--
-- Xcode 12.0, Build version 12A7209
--
-- Assuming iOS SDK at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk supports architecture armv7
-- Assuming iOS SDK at /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk supports architecture armv7s
-- iOS SDK:
-- Object File Format: MACHO
-- Swift Standard Library Path: iphoneos
-- Version: 14.0
-- Build number: 18A390
-- Deployment version: 10.0
-- Version min name: ios
-- Triple name: ios
-- Simulator: FALSE
-- Architectures: armv7;armv7s;arm64;arm64e
-- armv7 triple: armv7-apple-ios
-- Module triple: armv7-apple-ios
-- armv7s triple: armv7s-apple-ios
-- Module triple: armv7s-apple-ios
-- arm64 triple: arm64-apple-ios
-- Module triple: arm64-apple-ios
-- arm64e triple: arm64e-apple-ios
-- Module triple: arm64e-apple-ios
-- armv7 Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk
-- armv7s Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk
-- arm64 Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk
-- arm64e Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk
--
-- Building host Swift tools for IOS arm64
-- Build type: RelWithDebInfo
-- Assertions: OFF
-- LTO: OFF
--
-- Not building Swift standard library, SDK overlays, and runtime
--
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS)
-- Swift version: 5.3
-- Swift vendor:
-- Swift compiler version:
-- Embedded clang compiler version:
-- Registering Bye as a pass plugin (static build: OFF)
Traceback (most recent call last):
File "<string>", line 22, in <module>
IndexError: list index out of range
-- Failed to find LLVM FileCheck
-- Version: 0.0.0
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/parser-lib-build-ios/arm64/obj
+ popd
[1/2] Linking CXX shared library lib/lib_InternalSwiftSyntaxParser.dylib
FAILED: lib/lib_InternalSwiftSyntaxParser.dylib
: && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -arch arm64 -miphoneos-version-min=10.0 -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -Wno-nested-anon-types -Werror=switch -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -O2 -g -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk -dynamiclib -Wl,-headerpad_max_install_names -Wl,-exported_symbols_list,"/tmp/parser-lib-build-ios/arm64/obj/tools/swift/tools/libSwiftSyntaxParser/libSwiftSyntaxParser.exports" -Wl,-dead_strip -target arm64-apple-ios10.0 -Xlinker -dead_strip -Xlinker -compatibility_version -Xlinker 1 -o lib/lib_InternalSwiftSyntaxParser.dylib -install_name @rpath/lib_InternalSwiftSyntaxParser.dylib tools/swift/tools/libSwiftSyntaxParser/CMakeFiles/libSwiftSyntaxParser.dir/c-include-check.c.o tools/swift/tools/libSwiftSyntaxParser/CMakeFiles/libSwiftSyntaxParser.dir/libSwiftSyntaxParser.cpp.o lib/libswiftParse.a lib/libswiftSyntaxParse.a lib/libswiftParse.a lib/libswiftSyntaxParse.a lib/libswiftAST.a lib/libswiftBasic.a lib/libLLVMSupport.a -lm lib/libLLVMDemangle.a lib/libswiftDemangling.a ./lib/libclangBasic.a lib/libswiftSyntax.a && :
Undefined symbols for architecture arm64:
"clang::MacroInfo::dump() const", referenced from:
swift::ClangNode::dump() const in libswiftAST.a(Decl.cpp.o)
"clang::Type::dump() const", referenced from:
swift::UnexpectedClangTypeError::dump() in libswiftAST.a(ExtInfo.cpp.o)
"clang::Decl::dump() const", referenced from:
swift::ClangNode::dump() const in libswiftAST.a(Decl.cpp.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
ERROR: command terminated with a non-zero exit status 1, aborting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment