Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-14483] Build stdlib failing on main, MacOS #56838

Closed
swift-ci opened this issue Apr 14, 2021 · 3 comments
Closed

[SR-14483] Build stdlib failing on main, MacOS #56838

swift-ci opened this issue Apr 14, 2021 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself standard library Area: Standard library umbrella

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-14483
Radar None
Original Reporter maustinstar (JIRA User)
Type Bug
Status Closed
Resolution Cannot Reproduce
Environment

MacOS

Additional Detail from JIRA
Votes 0
Component/s Compiler, Standard Library
Labels Bug
Assignee maustinstar (JIRA)
Priority Medium

md5: 93d1b40c25017a1795a10bf275916a54

Issue Description:

Up to date on main branch. Used utils/update-checkout --scheme main to update the other repos.

Building with ninja C ../build/Ninja-RelWithDebInfoAssert/swift-macosx$(uname -m)

FAILED: stdlib/public/Darwin/Foundation/OSX/x86_64/Foundation.o 
cd /Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/stdlib/public/Darwin/Foundation && /Applications/Xcode-beta.app/Contents/Developer/usr/bin/python3 /Users/michaelverges/swift-project/swift/utils/line-directive @/Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/stdlib/public/Darwin/Foundation/fce0ac2ded5c2f054ed9294b0d6d5d19ffdc11c8.txt -- /Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/./bin/swiftc -c -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -target x86_64-apple-macosx10.9 -resource-dir /Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/./lib/swift -F/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/../../../Developer/Library/Frameworks -O -g -D INTERNAL_CHECKS_ENABLED -D SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS -D SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING -D SWIFT_RUNTIME_OS_VERSIONING -module-cache-path /Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/./module-cache -no-link-objc-runtime -enable-library-evolution -Xfrontend -enforce-exclusivity=unchecked -module-name Foundation -swift-version 5 -swift-version 5 -autolink-force-load -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements -warn-swift3-objc-inference-complete -Xfrontend -verify-syntax-tree -Xllvm -sil-inline-generics -Xllvm -sil-partial-specialization -warn-implicit-overrides -Xfrontend -disable-implicit-concurrency-module-import -Fsystem /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/PrivateFrameworks/ -module-link-name swiftFoundation -whole-module-optimization -save-optimization-record=bitstream -parse-as-library -I /Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/./lib/swift/macosx -o /Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/stdlib/public/Darwin/Foundation/OSX/x86_64/Foundation.o @/Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/stdlib/public/Darwin/Foundation/fce0ac2ded5c2f054ed9294b0d6d5d19ffdc11c8.txt
/Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSError.swift:400:46: warning: redundant conformance constraint 'Self.RawValue' : 'FixedWidthInteger'
extension _BridgedNSError where Self.RawValue: FixedWidthInteger {
                                             ^
Assertion failed: (V && "Unexpected null Value"), function get, file /Users/michaelverges/swift-project/llvm-project/llvm/lib/IR/Metadata.cpp, line 350.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace.
Stack dump:
0.  Program arguments: /Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swift-frontend -frontend -c /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/AffineTransform.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Boxing.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Calendar.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/CharacterSet.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/CheckClass.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Codable.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Collections+DataProtocol.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/CombineTypealiases.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/ContiguousBytes.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Data.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/DataProtocol.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Date.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/DateComponents.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/DateInterval.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Decimal.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/DispatchData+DataProtocol.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/FileManager.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Foundation.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/IndexPath.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/IndexSet.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/JSONEncoder.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Locale.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Measurement.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Notification.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSArray.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSCoder.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSData+DataProtocol.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSDate.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSDictionary.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSError.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSExpression.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSFastEnumeration.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSGeometry.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSIndexSet.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSItemProvider.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSNumber.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSObject.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSOrderedCollectionDifference.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSPredicate.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSRange.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSSet.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSSortDescriptor.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSString.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSStringAPI.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSStringEncodings.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSTextCheckingResult.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSUndoManager.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/NSURL.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/PersonNameComponents.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/PlistEncoder.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Pointers+DataProtocol.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Progress.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Publishers+KeyValueObserving.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Publishers+Locking.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Publishers+NotificationCenter.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Publishers+Timer.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Publishers+URLSession.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/ReferenceConvertible.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Scanner.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Schedulers+Date.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Schedulers+OperationQueue.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/Schedulers+RunLoop.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/String.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/TimeZone.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/URL.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/URLCache.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/URLComponents.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/URLRequest.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/URLSession.swift /Users/michaelverges/swift-project/swift/stdlib/public/Darwin/Foundation/UUID.swift /Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/stdlib/public/Darwin/Foundation/8/NSValue.swift -supplementary-output-file-map /var/folders/4l/nx9nywmn0dg4pjrlg58b60vw0000gn/T/supplementaryOutputs-2c6ae2 -target x86_64-apple-macosx10.9 -enable-objc-interop -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -I /Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/./lib/swift/macosx -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/../../../Developer/Library/Frameworks -Fsystem /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/PrivateFrameworks/ -autolink-force-load -warn-swift3-objc-inference-complete -warn-implicit-overrides -enable-library-evolution -g -module-cache-path /Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/./module-cache -module-link-name swiftFoundation -resource-dir /Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/./lib/swift -swift-version 5 -O -D INTERNAL_CHECKS_ENABLED -D SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS -D SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING -D SWIFT_RUNTIME_OS_VERSIONING -enforce-exclusivity=unchecked -verify-syntax-tree -disable-implicit-concurrency-module-import -Xllvm -sil-inline-generics -Xllvm -sil-partial-specialization -target-sdk-version 11.0 -parse-as-library -module-name Foundation -save-optimization-record=bitstream -save-optimization-record-path /Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/stdlib/public/Darwin/Foundation/OSX/x86_64/Foundation.opt.bitstream -o /Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/stdlib/public/Darwin/Foundation/OSX/x86_64/Foundation.o -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements
1.  Swift version 5.5-dev (LLVM 0a8e04d51392b41, Swift f7fb5a1a9f3b821)
2.  Running pass 'CallGraph Pass Manager' on module '/Users/michaelverges/swift-project/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/stdlib/public/Darwin/Foundation/OSX/x86_64/Foundation.o'.
3.  While splitting coroutine @"$s10Foundation4DataVys5UInt8VSicir"
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):
0  swift-frontend           0x000000010feb0147 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
1  swift-frontend           0x000000010feaf215 llvm::sys::RunSignalHandlers() + 85
2  swift-frontend           0x000000010feb0776 SignalHandler(int) + 262
3  libsystem_platform.dylib 0x00007fff203bbd7d _sigtramp + 29
4  libdyld.dylib            0x00007fff20391473 dyldGlobalLockRelease() + 0
5  libsystem_c.dylib        0x00007fff202ca720 abort + 120
6  libsystem_c.dylib        0x00007fff202c99d6 err + 0
7  swift-frontend           0x0000000111a215e3 llvm::ValueAsMetadata::get(llvm::Value*) (.cold.1) + 35
8  swift-frontend           0x000000010fd17334 llvm::ValueAsMetadata::get(llvm::Value*) + 532
9  swift-frontend           0x000000010dd2e0b8 llvm::coro::salvageDebugInfo(llvm::SmallDenseMap<llvm::Value*, llvm::AllocaInst*, 4u, llvm::DenseMapInfo<llvm::Value*>, llvm::detail::DenseMapPair<llvm::Value*, llvm::AllocaInst*> >&, llvm::DbgDeclareInst*) + 968
10 swift-frontend           0x000000010dd481dc (anonymous namespace)::CoroCloner::create() + 7484
11 swift-frontend           0x000000010dd44628 splitCoroutine(llvm::Function&, llvm::SmallVectorImpl<llvm::Function*>&, bool) + 12632
12 swift-frontend           0x000000010dd4ad4e (anonymous namespace)::CoroSplitLegacy::runOnSCC(llvm::CallGraphSCC&) + 2606
13 swift-frontend           0x000000010f6b3d7e (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) + 1902
14 swift-frontend           0x000000010fd063b0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1104
15 swift-frontend           0x000000010b5b59fd swift::performLLVMOptimizations(swift::IRGenOptions const&, llvm::Module*, llvm::TargetMachine*) + 1789
16 swift-frontend           0x000000010b5b6a1c swift::performLLVM(swift::IRGenOptions const&, swift::DiagnosticEngine&, llvm::sys::SmartMutex<false>*, llvm::GlobalVariable*, llvm::Module*, llvm::TargetMachine*, llvm::StringRef, swift::UnifiedStatsReporter*) + 3180
17 swift-frontend           0x000000010b0d1bd9 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 2601
18 swift-frontend           0x000000010b0d0f6d performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 685
19 swift-frontend           0x000000010b0c5974 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 4852
20 swift-frontend           0x000000010b015d57 main + 519
21 libdyld.dylib            0x00007fff20392621 start + 1
22 libdyld.dylib            0x0000000000000081 start + 18446603339975547489
<unknown>:0: error: unable to execute command: Abort trap: 6
<unknown>:0: error: compile command failed due to signal 6 (use -v to see invocation)
ninja: build stopped: subcommand failed.
@typesanitizer
Copy link

This might be because your llvm-project checkout is outdated. What branch is it on/how recent is it? If it is not a relatively recent swift/main, then that's likely an issue; you can delete it then reclone it using utils/update-checkout --clone.

@swift-ci
Copy link
Collaborator Author

Comment by Michael Verges (JIRA)

theindigamer (JIRA User), I was up to date with the origin for swift/main at the time of posting this.

I deleted llvm-project and cloned with utils/update-checkout --clone as you suggested, but I am still getting the same crash. My llvm-project branch says it is up to date with 'origin/swift/main'.

Any ideas? Thanks!

@swift-ci
Copy link
Collaborator Author

Comment by Michael Verges (JIRA)

Deleted all other repos, cloned again, and rebuilt the compiler from scratch. It is working now, yet I'm still not sure why the update-checkout and ninja build were crashing.

Closing this now. Thanks

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

2 participants