Master build fails macOS due to error: Build input file cannot be found: SwiftNativeNSXXXBase.mm

Hi, I'm trying to build swift for the first time, but I fail with the following error:

Error: Build input file cannot be found: SwiftNativeNSXXXBase.mm

My OS: High Sierra 10.13.4 (17E202)

My xCode version:

$ xcodebuild -version
Xcode 10.0
Build version 10L176w

Swift version:

$ swift --version
Apple Swift version 4.2 (swiftlang-1000.0.16.7 clang-1000.10.25.3)
Target: x86_64-apple-darwin17.5.0

I tried to delete the build folder and rebuild. same result.

The build command I used: ./utils/build-script --debug --xcode

Here is the last part of the build log where the error occurred.

CompileC /Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/x86_64/SwiftNativeNSXXXBase.o /Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/8/SwiftNativeNSXXXBase.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target: swiftStdlibStubs-macosx-x86_64)
        cd /Users/giuseppelanza/Developer/OpenSource/swift/swift
        export LANG=en_US.US-ASCII
        /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -arch x86_64 -fmessage-length=154 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c++11 -stdlib=libc++ -Wno-trigraphs -fno-exceptions -fno-rtti -fno-sanitize=vptr -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wdocumentation -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wnon-virtual-dtor -Woverloaded-virtual -Wno-exit-time-destructors -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DCMAKE_INTDIR=\"Debug\" -DGTEST_HAS_RTTI=0 -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DCMARK_STATIC_DEFINE -DOBJC_OLD_DISPATCH_PROTOTYPES=1 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.14 -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -I/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/include -I/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs -I/Users/giuseppelanza/Developer/OpenSource/swift/swift/stdlib/public/stubs -I/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/include -I/Users/giuseppelanza/Developer/OpenSource/swift/swift/include -I/Users/giuseppelanza/Developer/OpenSource/swift/llvm/include -I/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/llvm-macosx-x86_64/include -I/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/llvm-macosx-x86_64/tools/clang/include -I/Users/giuseppelanza/Developer/OpenSource/swift/llvm/tools/clang/include -I/Users/giuseppelanza/Developer/OpenSource/swift/cmark/src -I/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/cmark-macosx-x86_64/src -I/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/DerivedSources/x86_64 -I/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal -Wno-unknown-warning-option -Werror=unguarded-availability-new -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -Werror=switch -Wdocumentation -Wimplicit-fallthrough -Wunreachable-code -Woverloaded-virtual -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -fno-sanitize=all -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1 -DSWIFT_RUNTIME_ENABLE_GUARANTEED_NORMAL_ARGUMENTS=1 -fno-exceptions -fno-rtti -Wall -Wglobal-constructors -Wexit-time-destructors -fvisibility=hidden -DswiftCore_EXPORTS -I/Users/giuseppelanza/Developer/OpenSource/swift/swift/include -target x86_64-apple-macosx10.9 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/../../../Developer/Library/Frameworks -mmacosx-version-min=10.9 -UNDEBUG -DSWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS -MMD -MT dependencies -MF /Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/x86_64/SwiftNativeNSXXXBase.d --serialize-diagnostics /Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/x86_64/SwiftNativeNSXXXBase.dia -c /Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/8/SwiftNativeNSXXXBase.mm -o /Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/x86_64/SwiftNativeNSXXXBase.o
    error: Build input file cannot be found: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/8/SwiftNativeNSXXXBase.mm'

** BUILD FAILED **


The following build commands failed:
	CompileC /Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/x86_64/SwiftNativeNSXXXBase.o /Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/8/SwiftNativeNSXXXBase.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
./utils/build-script: fatal error: command terminated with a non-zero exit status 65, aborting

Thank you for any help.

Same for me: Issues building latest master for Xcode development

Try navigating to that filepath (cd /Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/8) and see if the "SwiftNativeNSXXXBase.mm" file exists or not. This happened to me, and after checking and seeing that the file was there I just ran the build command again and got past it. I have heard of others who had success by deleting the 8 folder and re-running the build command as well.

I am going to see if I can find a little time this week or next to see what is going on with this. Can you file a bug?

Hi, sure thing I can. Should I do it on lira or on bugreport website? Anyway I checked and the file exists at the specified path. I ran another build now issuing the same command. I'll let you know if this time goes through. Thank you for helping me.

Ok, this time it went through, but it got stuck in a different point.

the builds fails by saying that it could not find a bunch of files

clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/AnyHashableSupport.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Array.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Casting.o'
clang: error: 
no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/CompatibilityOverride.o'
clang
: error
: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/CygwinPort.o'

clang: 
error
: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Demangle.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Enum.o'

clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/ErrorObjectConstants.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/ErrorObjectNative.o'
clang: error
: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Errors.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/ErrorDefaultImpls.o'
clang: error
: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Exclusivity.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/ExistentialContainer.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Heap.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/HeapObject.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/ImageInspectionMachO.o'

clang: error
: 
no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/ImageInspectionELF.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/ImageInspectionCOFF.o'
clang: error
: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/KnownMetadata.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Metadata.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/MetadataLookup.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/MutexPThread.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/MutexWin32.o'

clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Once.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Portability.o'
clang
: error: 
no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/ProtocolConformance.o'
clang: error
: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/RefCount.o'
clang: error: 
no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/RuntimeInvocationsTracking.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/SwiftDtoa.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/OldDemangler.o'
clang: error
: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Demangler.o'

clang: error
: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/NodePrinter.o'
clang: error
: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Context.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/ManglingUtils.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Punycode.o'
clang: error
: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/NodeDumper.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/ErrorObject.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/SwiftObject.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/SwiftValue.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/ReflectionMirror.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/OldRemangler.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Remangler.o'

clang: error
: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/TypeDecoder.o'
clang: error
: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/dummy.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/Assert.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/CommandLine.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/GlobalObjects.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/KeyPaths.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/LibcShims.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/Stubs.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/MathStubs.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/Availability.o'
clang: error
: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/FoundationHelpers.o'
clang: error: 
no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/OptionalBridgingHelper.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/Reflection.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/SwiftNativeNSXXXBaseARC.o'
clang
: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/SwiftNativeNSXXXBase.o'

clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/UnicodeNormalization.o'
clang: error: no such file or directory: '/Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/dummy.o'

PhaseScriptExecution CMake\ Rules /Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/SDK/Dispatch/Swift.build/Debug/swiftDispatch-swiftmodule-macosx-x86_64.build/Script-2C9A7771D0E948BB90A7CF13.sh (in target: swiftDispatch-swiftmodule-macosx-x86_64)
    cd /Users/giuseppelanza/Developer/OpenSource/swift/swift
    /bin/sh -c /Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/SDK/Dispatch/Swift.build/Debug/swiftDispatch-swiftmodule-macosx-x86_64.build/Script-2C9A7771D0E948BB90A7CF13.sh

** BUILD FAILED **


The following build commands failed:
	Ld /Users/giuseppelanza/Developer/OpenSource/swift/build/Xcode-DebugAssert/swift-macosx-x86_64/Debug/lib/swift/macosx/x86_64/libswiftCore.dylib normal x86_64
(1 failure)
./utils/build-script: fatal error: command terminated with a non-zero exit status 65, aborting

Checking the path of these files, this time I notice that many of them has as path
swift/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/Debug/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch ...

That undefined_arch can't be right. I ran twice the build with the same results. Also I checked in the file path and rather than having undefined_arch folder I correctly have x86_64 folder.

Thank you for helping.

JIRA. This is going to take me a bit to do since I am basically going to be debugging this. There could be all sorts of badness hiding there. We will see.

1 Like

it appears to proceed successfully with locating SwiftNativeNSXXXBase.mm if you run the script from the root folder as

swift/utils/build-script --debug --xcode

but i am getting stuck at

clang: error: no such file or directory: '/Users/{user-name}/Develop/swift-source/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/stdlib/public/stubs/Swift.build/RelWithDebInfo/swiftStdlibStubs-macosx-x86_64.build/Objects-normal/undefined_arch/dummy.o'

I created a JIRA for this issue here: https://bugs.swift.org/browse/SR-7959

Created an issue for the undefined_arch here: https://bugs.swift.org/browse/SR-7961

@GLanza @lakpa were y'all able to find a workaround for the undefined_arch issue? I'm currently running into this when trying to build with --xcode.

I have tried two days ago, failed to build again. Haven't tried since then.

I post a workaround on https://bugs.swift.org/browse/SR-7961.

Terms of Service

Privacy Policy

Cookie Policy