Skip to content

Instantly share code, notes, and snippets.

@colemancda
Created March 28, 2022 09:05
Show Gist options
  • Save colemancda/4ffe84956179848b15d68765a4449e5d to your computer and use it in GitHub Desktop.
Save colemancda/4ffe84956179848b15d68765a4449e5d to your computer and use it in GitHub Desktop.
[coleman@mac-mini buildroot]$ make swift-reconfigure
rm -f /home/coleman/Developer/buildroot/output/build/swift-5.6/.stamp_installed
rm -f /home/coleman/Developer/buildroot/output/build/swift-5.6/.stamp_staging_installed
rm -f /home/coleman/Developer/buildroot/output/build/swift-5.6/.stamp_target_installed
rm -f /home/coleman/Developer/buildroot/output/build/swift-5.6/.stamp_images_installed
rm -f /home/coleman/Developer/buildroot/output/build/swift-5.6/.stamp_host_installed
rm -f /home/coleman/Developer/buildroot/output/build/swift-5.6/.stamp_built
rm -f /home/coleman/Developer/buildroot/output/build/swift-5.6/.stamp_configured
>>> swift 5.6 Configuring
# Clean
rm -rf /home/coleman/Developer/buildroot/output/build/swift-5.6//build
# Configure for Ninja
(mkdir -p /home/coleman/Developer/buildroot/output/build/swift-5.6//build && cd /home/coleman/Developer/buildroot/output/build/swift-5.6//build && rm -f CMakeCache.txt && PATH="/home/coleman/Developer/buildroot/output/host/bin:/home/coleman/Developer/buildroot/output/host/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games":/home/coleman/Developer/swift-source/install-mips/usr/bin LIBS="-latomic" /usr/local/bin/cmake -S /home/coleman/Developer/buildroot/output/build/swift-5.6/ -B /home/coleman/Developer/buildroot/output/build/swift-5.6//build -G Ninja -DCMAKE_INSTALL_PREFIX="/usr" -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/home/coleman/Developer/swift-source/install-mips/usr/bin/clang -DCMAKE_CXX_COMPILER=/home/coleman/Developer/swift-source/install-mips/usr/bin/clang++ -DCMAKE_C_FLAGS="-w -fuse-ld=lld -target mipsel-unknown-linux-gnu --sysroot /home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot -latomic -msoft-float -march=mips32r2 -mabi=o32 -I/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/include -B/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/lib -B/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/lib -B/home/coleman/Developer/buildroot/output/host/lib/gcc/mipsel-swift-linux-gnu/10.3.0 -L/home/coleman/Developer/buildroot/output/host/lib/gcc/mipsel-swift-linux-gnu/10.3.0" -DCMAKE_CXX_FLAGS="-w -fuse-ld=lld -target mipsel-unknown-linux-gnu --sysroot /home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot -latomic -msoft-float -march=mips32r2 -mabi=o32 -I/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/include -B/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/lib -B/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/lib -B/home/coleman/Developer/buildroot/output/host/lib/gcc/mipsel-swift-linux-gnu/10.3.0 -L/home/coleman/Developer/buildroot/output/host/lib/gcc/mipsel-swift-linux-gnu/10.3.0 -I/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/include/c++/10.3.0/ -I/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/include/c++/10.3.0/mipsel-swift-linux-gnu" -DCMAKE_C_LINK_FLAGS="--sysroot /home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot -latomic -msoft-float -march=mips32r2 -mabi=o32" -DCMAKE_CXX_LINK_FLAGS="--sysroot /home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot -latomic -msoft-float -march=mips32r2 -mabi=o32" -DSWIFT_USE_LINKER=lld -DLLVM_USE_LINKER=lld -DLLVM_DIR=/home/coleman/Developer/swift-source/build/buildbot_linux/llvm-linux-aarch64/lib/cmake/llvm -DLLVM_BUILD_LIBRARY_DIR=/home/coleman/Developer/swift-source/build/buildbot_linux/llvm-linux-aarch64 -DSWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER=ON -DSWIFT_NATIVE_CLANG_TOOLS_PATH=/home/coleman/Developer/swift-source/install-mips/usr/bin -DSWIFT_NATIVE_SWIFT_TOOLS_PATH=/home/coleman/Developer/swift-source/install-mips/usr/bin -DSWIFT_BUILD_DYNAMIC_SDK_OVERLAY=ON -DSWIFT_BUILD_DYNAMIC_STDLIB=ON -DSWIFT_BUILD_REMOTE_MIRROR=OFF -DSWIFT_BUILD_SOURCEKIT=OFF -DSWIFT_BUILD_STDLIB_EXTRA_TOOLCHAIN_CONTENT=OFF -DSWIFT_BUILD_SYNTAXPARSERLIB=OFF -DSWIFT_BUILD_REMOTE_MIRROR=OFF -DSWIFT_ENABLE_SOURCEKIT_TESTS=OFF -DSWIFT_INCLUDE_DOCS=OFF -DSWIFT_INCLUDE_TOOLS=OFF -DSWIFT_INCLUDE_TESTS=OFF -DSWIFT_HOST_VARIANT_ARCH=mipsel -DSWIFT_SDKS=LINUX -DSWIFT_SDK_LINUX_ARCH_mipsel_PATH=/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot -DSWIFT_SDK_LINUX_ARCH_mipsel_LIBC_INCLUDE_DIRECTORY=/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/include -DSWIFT_PATH_TO_LIBDISPATCH_SOURCE=/home/coleman/Developer/buildroot/output/build/libdispatch/ -DSWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY=ON -DZLIB_LIBRARY=/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/lib/libz.so -DCMAKE_Swift_FLAGS_DEBUG="" -DCMAKE_Swift_FLAGS_RELEASE="" -DCMAKE_Swift_FLAGS_RELWITHDEBINFO="" )
CMake Deprecation Warning at CMakeLists.txt:10 (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.
-- The C compiler identification is Clang 13.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/coleman/Developer/swift-source/install-mips/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for a Swift compiler
-- Looking for a Swift compiler - /home/coleman/Developer/swift-source/install-mips/usr/bin/swiftc
-- The Swift compiler identification is Apple 5.6
-- Check for working Swift compiler: /home/coleman/Developer/swift-source/install-mips/usr/bin/swiftc
-- Check for working Swift compiler: /home/coleman/Developer/swift-source/install-mips/usr/bin/swiftc - works
CMake Warning (dev) at /usr/local/share/cmake-3.22/Modules/CMakeDependentOption.cmake:84 (message):
Policy CMP0127 is not set: cmake_dependent_option() supports full Condition
Syntax. Run "cmake --help-policy CMP0127" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt:191 (cmake_dependent_option)
This warning is for project developers. Use -Wno-dev to suppress it.
-- The CXX compiler identification is Clang 13.0.0
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /home/coleman/Developer/swift-source/install-mips/usr/bin/clang
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/coleman/Developer/swift-source/install-mips/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMake (/usr/local/bin/cmake) Version: 3.22.3
-- CMake Make Program (/usr/bin/ninja) Version: 1.10.1
-- C Compiler (/home/coleman/Developer/swift-source/install-mips/usr/bin/clang) Version: 13.0.0
-- C++ Compiler (/home/coleman/Developer/swift-source/install-mips/usr/bin/clang++) Version: 13.0.0
-- Swift Compiler (/home/coleman/Developer/swift-source/install-mips/usr/bin/swiftc) Version: 5.6
--
-- Found ZLIB: /home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/lib/libz.so (found version "1.2.11")
-- Found LibXml2: /home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/lib/libxml2.so (found version "2.9.13")
-- Linker detection: LLD
-- Performing Test LLVM_LIBSTDCXX_MIN
-- Performing Test LLVM_LIBSTDCXX_MIN - Success
-- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR
-- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR - Success
-- Performing Test CXX_SUPPORTS_CUSTOM_LINKER
-- Performing Test CXX_SUPPORTS_CUSTOM_LINKER - Success
-- Performing Test C_SUPPORTS_FPIC
-- Performing Test C_SUPPORTS_FPIC - Success
-- Performing Test CXX_SUPPORTS_FPIC
-- Performing Test CXX_SUPPORTS_FPIC - Success
-- Building with -fPIC
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME
-- Performing Test CXX_SUPPORTS_WERROR_DATE_TIME - Success
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Success
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test CXX_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Success
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG
-- Performing Test CXX_SUPPORTS_MISSING_FIELD_INITIALIZERS_FLAG - Success
-- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG
-- Performing Test C_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG
-- Performing Test CXX_SUPPORTS_IMPLICIT_FALLTHROUGH_FLAG - Success
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test C_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Success
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG
-- Performing Test CXX_SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG - Success
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG
-- Performing Test CXX_SUPPORTS_CLASS_MEMACCESS_FLAG - Success
-- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG
-- Performing Test CXX_SUPPORTS_NOEXCEPT_TYPE_FLAG - Success
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR
-- Performing Test CXX_WONT_WARN_ON_FINAL_NONVIRTUALDTOR - Success
-- Performing Test C_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG
-- Performing Test C_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG - Success
-- Performing Test CXX_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG
-- Performing Test CXX_SUPPORTS_DELETE_NON_VIRTUAL_DTOR_FLAG - Success
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG
-- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL
-- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - Success
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Success
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test C_SUPPORTS_STRING_CONVERSION_FLAG - Success
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG
-- Performing Test CXX_SUPPORTS_STRING_CONVERSION_FLAG - Success
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Success
-- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS
-- Performing Test C_SUPPORTS_FNO_FUNCTION_SECTIONS - Success
-- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS
-- Performing Test C_SUPPORTS_FFUNCTION_SECTIONS - Success
-- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS
-- Performing Test CXX_SUPPORTS_FFUNCTION_SECTIONS - Success
-- Performing Test C_SUPPORTS_FDATA_SECTIONS
-- Performing Test C_SUPPORTS_FDATA_SECTIONS - Success
-- Performing Test CXX_SUPPORTS_FDATA_SECTIONS
-- Performing Test CXX_SUPPORTS_FDATA_SECTIONS - Success
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Performing Test CXX_SUPPORTS_WERROR_SWITCH_FLAG
-- Performing Test CXX_SUPPORTS_WERROR_SWITCH_FLAG - Success
-- Performing Test CXX_SUPPORTS_WE4062
-- Performing Test CXX_SUPPORTS_WE4062 - Failed
-- Performing Test CXX_SUPPORTS_DOCUMENTATION_FLAG
-- Performing Test CXX_SUPPORTS_DOCUMENTATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_UNREACHABLE_CODE_FLAG
-- Performing Test CXX_SUPPORTS_UNREACHABLE_CODE_FLAG - Success
-- Performing Test CXX_SUPPORTS_OVERLOADED_VIRTUAL
-- Performing Test CXX_SUPPORTS_OVERLOADED_VIRTUAL - Success
-- Performing Test CXX_SUPPORTS_FAPPLICATION_EXTENSION
-- Performing Test CXX_SUPPORTS_FAPPLICATION_EXTENSION - Success
-- Linux SDK:
-- Object File Format: ELF
-- Swift Standard Library Path: linux
-- Architectures: mipsel
-- mipsel triple: mipsel-unknown-linux-gnu
-- Module triple: mipsel-unknown-linux-gnu
-- mipsel Path: /home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot
-- mipsel libc header path: /home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/include
--
-- Not building host Swift tools
--
-- Building Swift standard library and overlays for SDKs: LINUX
-- Build type: Release
-- Assertions: OFF
--
-- Building Swift runtime with:
-- Leak Detection Checker Entrypoints: OFF
--
-- Differentiable Programming Support: OFF
-- Concurrency Support: ON
-- Distributed Support: OFF
-- String Processing Support: OFF
--
-- Found Python3: /usr/bin/python3.9 (found version "3.9.2") found components: Interpreter
-- Could NOT find LibEdit (missing: LibEdit_LIBRARIES) (found version ".")
-- Looking for wait4
-- Looking for wait4 - found
-- Looking for proc_pid_rusage
-- Looking for proc_pid_rusage - not found
CMake Warning at stdlib/CMakeLists.txt:159 (message):
Building the swift runtime using the host compiler, and not the just-built
clang.
-- Performing Test is_supported
-- Performing Test is_supported - Success
-- Performing Test CXX_SUPPORTS_FORMAT_NONLITERAL_WARNING
-- Performing Test CXX_SUPPORTS_FORMAT_NONLITERAL_WARNING - Success
-- Performing Test CXX_SUPPORTS_GLOBAL_CONSTRUCTORS_WARNING
-- Performing Test CXX_SUPPORTS_GLOBAL_CONSTRUCTORS_WARNING - Success
-- Performing Test CXX_SUPPORTS_EXIT_TIME_DESTRUCTORS_WARNING
-- Performing Test CXX_SUPPORTS_EXIT_TIME_DESTRUCTORS_WARNING - Success
-- Using clang Resource Directory: /home/coleman/Developer/swift-source/install-mips/usr/lib/clang/13.0.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/coleman/Developer/buildroot/output/build/swift-5.6/build
>>> swift 5.6 Building
# Compile
(cd /home/coleman/Developer/buildroot/output/build/swift-5.6//build && ninja)
[48/219] Building CXX object stdlib/public/runtime/CMakeFiles/swiftRuntime-linux-mipsel.dir/AnyHashableSupport.cpp.o
FAILED: stdlib/public/runtime/CMakeFiles/swiftRuntime-linux-mipsel.dir/AnyHashableSupport.cpp.o
/home/coleman/Developer/swift-source/install-mips/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1 -DSWIFT_INLINE_NAMESPACE=__runtime -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/coleman/Developer/buildroot/output/build/swift-5.6/build/stdlib/public/runtime -I/home/coleman/Developer/buildroot/output/build/swift-5.6/stdlib/public/runtime -I/home/coleman/Developer/buildroot/output/build/swift-5.6/stdlib/include -I/home/coleman/Developer/buildroot/output/build/swift-5.6/build/include -I/home/coleman/Developer/buildroot/output/build/swift-5.6/include -I/home/coleman/Developer/swift-source/build/buildbot_linux/llvm-linux-aarch64/include -I/home/coleman/Developer/buildroot/output/build/libdispatch/src/BlocksRuntime -I/home/coleman/Developer/buildroot/output/build/libdispatch -w -fuse-ld=lld -target mipsel-unknown-linux-gnu --sysroot /home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot -latomic -msoft-float -march=mips32r2 -mabi=o32 -I/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/include -B/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/lib -B/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/lib -B/home/coleman/Developer/buildroot/output/host/lib/gcc/mipsel-swift-linux-gnu/10.3.0 -L/home/coleman/Developer/buildroot/output/host/lib/gcc/mipsel-swift-linux-gnu/10.3.0 -I/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/include/c++/10.3.0/ -I/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/include/c++/10.3.0/mipsel-swift-linux-gnu -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-class-memaccess -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=switch -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Werror=gnu -Werror=c++98-compat-extra-semi -UNDEBUG -Wall -Wformat-nonliteral -Werror=format-nonliteral -Wglobal-constructors -Werror=global-constructors -Wexit-time-destructors -Werror=exit-time-destructors -DswiftCore_EXPORTS -I/home/coleman/Developer/buildroot/output/build/swift-5.6/stdlib/include/llvm/Support -I/home/coleman/Developer/buildroot/output/build/swift-5.6/include -DSWIFT_TARGET_LIBRARY_NAME=swiftRuntime -DSWIFT_RUNTIME -target mipsel-unknown-linux-gnu --sysroot=/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot -O2 -g0 -DNDEBUG -DSWIFT_OBJC_INTEROP=0 -DSWIFT_LIBRARY_EVOLUTION=1 -DSWIFT_ENABLE_REFLECTION -DSWIFT_STDLIB_HAS_DLADDR -DSWIFT_STDLIB_HAS_DARWIN_LIBMALLOC=1 -DSWIFT_STDLIB_HAS_STDIN -DSWIFT_STDLIB_HAS_ENVIRON -DSWIFT_RUNTIME_OS_VERSIONING -DSWIFT_STDLIB_SHORT_MANGLING_LOOKUPS -DSWIFT_STDLIB_SUPPORTS_BACKTRACE_REPORTING -std=c++14 -MD -MT stdlib/public/runtime/CMakeFiles/swiftRuntime-linux-mipsel.dir/AnyHashableSupport.cpp.o -MF stdlib/public/runtime/CMakeFiles/swiftRuntime-linux-mipsel.dir/AnyHashableSupport.cpp.o.d -o stdlib/public/runtime/CMakeFiles/swiftRuntime-linux-mipsel.dir/AnyHashableSupport.cpp.o -c /home/coleman/Developer/buildroot/output/build/swift-5.6/stdlib/public/runtime/AnyHashableSupport.cpp
error: Undefined temporary symbol $sSHMp
1 error generated.
[54/219] Building CXX object stdlib/public/runtime/CMakeFiles/swiftRuntime-linux-mipsel.dir/Casting.cpp.o
FAILED: stdlib/public/runtime/CMakeFiles/swiftRuntime-linux-mipsel.dir/Casting.cpp.o
/home/coleman/Developer/swift-source/install-mips/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1 -DSWIFT_INLINE_NAMESPACE=__runtime -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/coleman/Developer/buildroot/output/build/swift-5.6/build/stdlib/public/runtime -I/home/coleman/Developer/buildroot/output/build/swift-5.6/stdlib/public/runtime -I/home/coleman/Developer/buildroot/output/build/swift-5.6/stdlib/include -I/home/coleman/Developer/buildroot/output/build/swift-5.6/build/include -I/home/coleman/Developer/buildroot/output/build/swift-5.6/include -I/home/coleman/Developer/swift-source/build/buildbot_linux/llvm-linux-aarch64/include -I/home/coleman/Developer/buildroot/output/build/libdispatch/src/BlocksRuntime -I/home/coleman/Developer/buildroot/output/build/libdispatch -w -fuse-ld=lld -target mipsel-unknown-linux-gnu --sysroot /home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot -latomic -msoft-float -march=mips32r2 -mabi=o32 -I/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/include -B/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/lib -B/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/lib -B/home/coleman/Developer/buildroot/output/host/lib/gcc/mipsel-swift-linux-gnu/10.3.0 -L/home/coleman/Developer/buildroot/output/host/lib/gcc/mipsel-swift-linux-gnu/10.3.0 -I/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/include/c++/10.3.0/ -I/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/include/c++/10.3.0/mipsel-swift-linux-gnu -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-class-memaccess -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=switch -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Werror=gnu -Werror=c++98-compat-extra-semi -UNDEBUG -Wall -Wformat-nonliteral -Werror=format-nonliteral -Wglobal-constructors -Werror=global-constructors -Wexit-time-destructors -Werror=exit-time-destructors -DswiftCore_EXPORTS -I/home/coleman/Developer/buildroot/output/build/swift-5.6/stdlib/include/llvm/Support -I/home/coleman/Developer/buildroot/output/build/swift-5.6/include -DSWIFT_TARGET_LIBRARY_NAME=swiftRuntime -DSWIFT_RUNTIME -target mipsel-unknown-linux-gnu --sysroot=/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot -O2 -g0 -DNDEBUG -DSWIFT_OBJC_INTEROP=0 -DSWIFT_LIBRARY_EVOLUTION=1 -DSWIFT_ENABLE_REFLECTION -DSWIFT_STDLIB_HAS_DLADDR -DSWIFT_STDLIB_HAS_DARWIN_LIBMALLOC=1 -DSWIFT_STDLIB_HAS_STDIN -DSWIFT_STDLIB_HAS_ENVIRON -DSWIFT_RUNTIME_OS_VERSIONING -DSWIFT_STDLIB_SHORT_MANGLING_LOOKUPS -DSWIFT_STDLIB_SUPPORTS_BACKTRACE_REPORTING -std=c++14 -MD -MT stdlib/public/runtime/CMakeFiles/swiftRuntime-linux-mipsel.dir/Casting.cpp.o -MF stdlib/public/runtime/CMakeFiles/swiftRuntime-linux-mipsel.dir/Casting.cpp.o.d -o stdlib/public/runtime/CMakeFiles/swiftRuntime-linux-mipsel.dir/Casting.cpp.o -c /home/coleman/Developer/buildroot/output/build/swift-5.6/stdlib/public/runtime/Casting.cpp
clang++: /home/coleman/Developer/swift-source/llvm-project/llvm/lib/MC/ELFObjectWriter.cpp:650: void (anonymous namespace)::ELFWriter::computeSymbolTable(llvm::MCAssembler &, const llvm::MCAsmLayout &, const (anonymous namespace)::SectionIndexMapTy &, const (anonymous namespace)::ELFWriter::RevGroupMapTy &, (anonymous namespace)::ELFWriter::SectionOffsetsTy &): Assertion `Local || !Symbol.isTemporary()' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /home/coleman/Developer/swift-source/install-mips/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1 -DSWIFT_INLINE_NAMESPACE=__runtime -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/coleman/Developer/buildroot/output/build/swift-5.6/build/stdlib/public/runtime -I/home/coleman/Developer/buildroot/output/build/swift-5.6/stdlib/public/runtime -I/home/coleman/Developer/buildroot/output/build/swift-5.6/stdlib/include -I/home/coleman/Developer/buildroot/output/build/swift-5.6/build/include -I/home/coleman/Developer/buildroot/output/build/swift-5.6/include -I/home/coleman/Developer/swift-source/build/buildbot_linux/llvm-linux-aarch64/include -I/home/coleman/Developer/buildroot/output/build/libdispatch/src/BlocksRuntime -I/home/coleman/Developer/buildroot/output/build/libdispatch -w -fuse-ld=lld -target mipsel-unknown-linux-gnu --sysroot /home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot -latomic -msoft-float -march=mips32r2 -mabi=o32 -I/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/include -B/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/usr/lib -B/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot/lib -B/home/coleman/Developer/buildroot/output/host/lib/gcc/mipsel-swift-linux-gnu/10.3.0 -L/home/coleman/Developer/buildroot/output/host/lib/gcc/mipsel-swift-linux-gnu/10.3.0 -I/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/include/c++/10.3.0/ -I/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/include/c++/10.3.0/mipsel-swift-linux-gnu -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-class-memaccess -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=switch -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -O3 -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Werror=gnu -Werror=c++98-compat-extra-semi -UNDEBUG -Wall -Wformat-nonliteral -Werror=format-nonliteral -Wglobal-constructors -Werror=global-constructors -Wexit-time-destructors -Werror=exit-time-destructors -DswiftCore_EXPORTS -I/home/coleman/Developer/buildroot/output/build/swift-5.6/stdlib/include/llvm/Support -I/home/coleman/Developer/buildroot/output/build/swift-5.6/include -DSWIFT_TARGET_LIBRARY_NAME=swiftRuntime -DSWIFT_RUNTIME -target mipsel-unknown-linux-gnu --sysroot=/home/coleman/Developer/buildroot/output/host/mipsel-swift-linux-gnu/sysroot -O2 -g0 -DNDEBUG -DSWIFT_OBJC_INTEROP=0 -DSWIFT_LIBRARY_EVOLUTION=1 -DSWIFT_ENABLE_REFLECTION -DSWIFT_STDLIB_HAS_DLADDR -DSWIFT_STDLIB_HAS_DARWIN_LIBMALLOC=1 -DSWIFT_STDLIB_HAS_STDIN -DSWIFT_STDLIB_HAS_ENVIRON -DSWIFT_RUNTIME_OS_VERSIONING -DSWIFT_STDLIB_SHORT_MANGLING_LOOKUPS -DSWIFT_STDLIB_SUPPORTS_BACKTRACE_REPORTING -std=c++14 -MD -MT stdlib/public/runtime/CMakeFiles/swiftRuntime-linux-mipsel.dir/Casting.cpp.o -MF stdlib/public/runtime/CMakeFiles/swiftRuntime-linux-mipsel.dir/Casting.cpp.o.d -o stdlib/public/runtime/CMakeFiles/swiftRuntime-linux-mipsel.dir/Casting.cpp.o -c /home/coleman/Developer/buildroot/output/build/swift-5.6/stdlib/public/runtime/Casting.cpp
1. <eof> parser at end of file
2. Code generation
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
/home/coleman/Developer/swift-source/install-mips/usr/bin/clang++(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamEi+0x34)[0x209ecdc]
clang-13: error: clang frontend command failed with exit code 134 (use -v to see invocation)
clang version 13.0.0 ([email protected]:MillerTechnologyPeru/llvm-project.git 495426032af8cab12a53914c1f50c111435a78e9)
Target: mipsel-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/coleman/Developer/swift-source/install-mips/usr/bin
clang-13: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-13: note: diagnostic msg: /tmp/Casting-0e335d.cpp
clang-13: note: diagnostic msg: /tmp/Casting-0e335d.sh
clang-13: note: diagnostic msg:
********************
[57/219] Performing configure step for 'libdispatch-linux-mipsel'
-- The C compiler identification is Clang 13.0.0
-- The CXX compiler identification is Clang 13.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/coleman/Developer/swift-source/install-mips/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/coleman/Developer/swift-source/install-mips/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Looking for __GNU_LIBRARY__
-- Looking for __GNU_LIBRARY__ - found
-- Performing Test __BUILTIN_TRAP
-- Performing Test __BUILTIN_TRAP - Success
-- Could NOT find LibRT (missing: LibRT_LIBRARIES)
-- Looking for _pthread_workqueue_init
-- Looking for _pthread_workqueue_init - not found
-- Looking for getprogname
-- Looking for getprogname - not found
-- Looking for mach_absolute_time
-- Looking for mach_absolute_time - not found
-- Looking for mach_approximate_time
-- Looking for mach_approximate_time - not found
-- Looking for mach_port_construct
-- Looking for mach_port_construct - not found
-- Looking for malloc_create_zone
-- Looking for malloc_create_zone - not found
-- Looking for posix_fadvise
-- Looking for posix_fadvise - found
-- Looking for posix_spawnp
-- Looking for posix_spawnp - found
-- Looking for pthread_key_init_np
-- Looking for pthread_key_init_np - not found
-- Looking for pthread_attr_setcpupercent_np
-- Looking for pthread_attr_setcpupercent_np - not found
-- Looking for pthread_yield_np
-- Looking for pthread_yield_np - not found
-- Looking for pthread_main_np
-- Looking for pthread_main_np - not found
-- Looking for pthread_workqueue_setdispatch_np
-- Looking for pthread_workqueue_setdispatch_np - not found
-- Looking for strlcpy
-- Looking for strlcpy - not found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for include file TargetConditionals.h
-- Looking for include file TargetConditionals.h - not found
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - found
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file libkern/OSAtomic.h
-- Looking for include file libkern/OSAtomic.h - not found
-- Looking for include file libkern/OSCrossEndian.h
-- Looking for include file libkern/OSCrossEndian.h - not found
-- Looking for include file libproc_internal.h
-- Looking for include file libproc_internal.h - not found
-- Looking for include file mach/mach.h
-- Looking for include file mach/mach.h - not found
-- Looking for include file malloc/malloc.h
-- Looking for include file malloc/malloc.h - not found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file pthread/qos.h
-- Looking for include file pthread/qos.h - not found
-- Looking for include file pthread/workqueue_private.h
-- Looking for include file pthread/workqueue_private.h - not found
-- Looking for include file pthread_machdep.h
-- Looking for include file pthread_machdep.h - not found
-- Looking for include file pthread_np.h
-- Looking for include file pthread_np.h - not found
-- Looking for include file pthread_workqueue.h
-- Looking for include file pthread_workqueue.h - not found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file sys/guarded.h
-- Looking for include file sys/guarded.h - not found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file objc/objc-internal.h
-- Looking for include file objc/objc-internal.h - not found
-- Looking for sem_init in pthread
-- Looking for sem_init in pthread - found
-- Looking for CLOCK_UPTIME
-- Looking for CLOCK_UPTIME - not found
-- Looking for CLOCK_UPTIME_FAST
-- Looking for CLOCK_UPTIME_FAST - not found
-- Looking for CLOCK_MONOTONIC
-- Looking for CLOCK_MONOTONIC - found
-- Looking for CLOCK_REALTIME
-- Looking for CLOCK_REALTIME - found
-- Looking for CLOCK_MONOTONIC_COARSE
-- Looking for CLOCK_MONOTONIC_COARSE - found
-- Looking for FD_COPY
-- Looking for FD_COPY - not found
-- Looking for NOTE_LOWAT
-- Looking for NOTE_LOWAT - not found
-- Looking for NOTE_NONE
-- Looking for NOTE_NONE - not found
-- Looking for NOTE_REAP
-- Looking for NOTE_REAP - not found
-- Looking for NOTE_REVOKE
-- Looking for NOTE_REVOKE - not found
-- Looking for NOTE_SIGNAL
-- Looking for NOTE_SIGNAL - not found
-- Looking for POSIX_SPAWN_START_SUSPENDED
-- Looking for POSIX_SPAWN_START_SUSPENDED - not found
-- Looking for SIGEMT
-- Looking for SIGEMT - found
-- Looking for VQ_DESIRED_DISK
-- Looking for VQ_DESIRED_DISK - not found
-- Looking for VQ_NEARLOWDISK
-- Looking for VQ_NEARLOWDISK - not found
-- Looking for VQ_QUOTA
-- Looking for VQ_QUOTA - not found
-- Looking for VQ_UPDATE
-- Looking for VQ_UPDATE - not found
-- Looking for VQ_VERYLOWDISK
-- Looking for VQ_VERYLOWDISK - not found
-- Looking for VQ_FREE_SPACE_CHANGE
-- Looking for VQ_FREE_SPACE_CHANGE - not found
-- Looking for program_invocation_name
-- Looking for program_invocation_name - found
-- Looking for __printflike
-- Looking for __printflike - found
-- Performing Test C_SUPPORTS_OMIT_LEAF_FRAME_POINTER
-- Performing Test C_SUPPORTS_OMIT_LEAF_FRAME_POINTER - Success
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_ANDROID_ARCH_ABI
CMAKE_ANDROID_NDK
-- Build files have been written to: /home/coleman/Developer/buildroot/output/build/swift-5.6/build/libdispatch-linux-mipsel-prefix/src/libdispatch-linux-mipsel-build
ninja: build stopped: subcommand failed.
make: *** [package/pkg-generic.mk:292: /home/coleman/Developer/buildroot/output/build/swift-5.6/.stamp_built] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment