Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951183 - dev-lang/swift-6.0.3: Does not build
Summary: dev-lang/swift-6.0.3: Does not build
Status: UNCONFIRMED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Itai Ferber
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-12 03:22 UTC by benoit.dufour
Modified: 2025-03-13 08:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (swift-6.0.3_build_GigaByte_GA_MA770_UD3.log.xz,134.62 KB, application/x-xz)
2025-03-12 03:22 UTC, benoit.dufour
Details
emerge --info (emerge_info_gigabyte_ga_ma770_ud3.txt,8.95 KB, text/plain)
2025-03-12 03:25 UTC, benoit.dufour
Details

Note You need to log in before you can comment on or make changes to this bug.
Description benoit.dufour 2025-03-12 03:22:01 UTC
Created attachment 920601 [details]
build.log

I was trying to compile Swift 6.0.3 on an 'old' PC from 2010.
CPU is a AMD Phenom 2 X6 1100T.
dev-lang/swift-5.10.1-r3 emerged just fine.
dev-lang/swift-6.0.3 also emerged just fine on a newer computer from 2020.
ninja is used instead of samurai and symlinked to /usr/bin/ninja.


See the logs.
Comment 1 benoit.dufour 2025-03-12 03:25:00 UTC
Created attachment 920602 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-12 03:45:21 UTC
```
1.	Swift version 5.10.1 (swift-5.10.1-RELEASE)
2.	Compiling with the current language version
3.	While evaluating request ExecuteSILPipelineRequest(Run pipelines { PrepareOptimizationPasses, EarlyModulePasses, HighLevel,Function+EarlyLoopOpt, HighLevel,Module+StackPromote } on SIL for _CompilerRegexParser)
4.	While running pass #335798 SILModuleTransform "SerializeSILPass".
 #0 0x0000557e5c23c946 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x670a946)
 #1 0x0000557e5c23a662 llvm::sys::RunSignalHandlers() (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x6708662)
 #2 0x0000557e5c23ccf4 SignalHandler(int) Signals.cpp:0:0
 #3 0x00007f913c24d930 (/usr/lib64/libc.so.6+0x3c930)
 #4 0x0000557e57438a09 swift::ide::api::SDKNodeDecl::SDKNodeDecl(swift::ide::api::SDKNodeInitInfo, swift::ide::api::SDKNodeKind) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x1906a09)
 #5 0x0000557e574391d2 swift::ide::api::SDKNodeDeclType::SDKNodeDeclType(swift::ide::api::SDKNodeInitInfo) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x19071d2)
 #6 0x0000557e5743c08a swift::ide::api::SDKNodeInitInfo::createSDKNode(swift::ide::api::SDKNodeKind) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x190a08a)
 #7 0x0000557e574499f5 swift::ide::api::SwiftDeclCollector::constructTypeDeclNode(swift::NominalTypeDecl*) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x19179f5)
 #8 0x0000557e5744bb10 swift::ide::api::SwiftDeclCollector::processValueDecl(swift::ValueDecl*) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x1919b10)
 #9 0x0000557e5744bdf7 swift::ide::api::SwiftDeclCollector::foundDecl(swift::ValueDecl*, swift::DeclVisibilityKind, swift::DynamicLookupInfo) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x1919df7)
#10 0x0000557e5744b416 swift::ide::api::SwiftDeclCollector::lookupVisibleDecls(llvm::ArrayRef<swift::ModuleDecl*>) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x1919416)
#11 0x0000557e5744f317 swift::ide::api::dumpModuleContent(swift::ModuleDecl*, llvm::raw_ostream&, bool, bool) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x191d317)
#12 0x0000557e57430db4 emitABIDescriptor(llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::SerializationOptions const&) Serialization.cpp:0:0
#13 0x0000557e574313b9 swift::serialize(llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::SerializationOptions const&, swift::symbolgraphgen::SymbolGraphOptions const&, swift::SILModule const*, swift::fine_grained_dependencies::SourceFileDepGraph const*) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x18ff3b9)
#14 0x0000557e5719e9ca bool llvm::function_ref<bool (swift::fine_grained_dependencies::SourceFileDepGraph&&)>::callback_fn<performCompileStepsPostSILGen(swift::CompilerInstance&, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*)::$_0::operator()() const::'lambda'(swift::fine_grained_dependencies::SourceFileDepGraph&&)>(long, swift::fine_grained_dependencies::SourceFileDepGraph&&) FrontendTool.cpp:0:0
#15 0x0000557e58924009 swift::fine_grained_dependencies::withReferenceDependencies(llvm::PointerUnion<swift::ModuleDecl const*, swift::SourceFile const*>, swift::DependencyTracker const&, llvm::vfs::OutputBackend&, llvm::StringRef, bool, llvm::function_ref<bool (swift::fine_grained_dependencies::SourceFileDepGraph&&)>) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x2df2009)
#16 0x0000557e5719e8a5 std::_Function_handler<void (), performCompileStepsPostSILGen(swift::CompilerInstance&, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*)::$_0>::_M_invoke(std::_Any_data const&) FrontendTool.cpp:0:0
#17 0x0000557e5809555f swift::SILModule::serialize() (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x256355f)
#18 0x0000557e57cd5348 SerializeSILPass::run() SerializeSILPass.cpp:0:0
#19 0x0000557e579155e6 swift::SILPassManager::runModulePass(unsigned int) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x1de35e6)
#20 0x0000557e57916a6b swift::SILPassManager::execute() (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x1de4a6b)
#21 0x0000557e579123b8 swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x1de03b8)
#22 0x0000557e57912352 swift::ExecuteSILPipelineRequest::evaluate(swift::Evaluator&, swift::SILPipelineExecutionDescriptor) const (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x1de0352)
#23 0x0000557e57bc06be swift::SimpleRequest<swift::ExecuteSILPipelineRequest, std::tuple<> (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) SILOptimizerRequests.cpp:0:0
#24 0x0000557e5792ba40 llvm::Expected<swift::ExecuteSILPipelineRequest::OutputType> swift::Evaluator::getResultUncached<swift::ExecuteSILPipelineRequest>(swift::ExecuteSILPipelineRequest const&) PassManager.cpp:0:0
#25 0x0000557e579124e0 swift::executePassPipelinePlan(swift::SILModule*, swift::SILPassPipelinePlan const&, bool, swift::irgen::IRGenModule*) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x1de04e0)
#26 0x0000557e57ba4c09 swift::runSILOptimizationPasses(swift::SILModule&) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x2072c09)
#27 0x0000557e573ef297 swift::CompilerInstance::performSILProcessing(swift::SILModule*) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x18bd297)
#28 0x0000557e5719934e performCompileStepsPostSILGen(swift::CompilerInstance&, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) FrontendTool.cpp:0:0
#29 0x0000557e57198492 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x1666492)
#30 0x0000557e5719b5ea performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) FrontendTool.cpp:0:0
#31 0x0000557e5719a361 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x1668361)
#32 0x0000557e571342c9 swift::mainEntry(int, char const**) (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x16022c9)
#33 0x00007f913c2374be (/usr/lib64/libc.so.6+0x264be)
#34 0x00007f913c237589 __libc_start_main (/usr/lib64/libc.so.6+0x26589)
#35 0x0000557e57133165 _start (/usr/lib64/swift-5.10.1/usr/bin/swift-frontend+0x1601165)
error: fatalError
ninja: build stopped: subcommand failed.
ERROR: command terminated with a non-zero exit status 1, aborting

ERROR: command terminated with a non-zero exit status 1, aborting

 [31;01m*[0m ERROR: dev-lang/swift-6.0.3::guru failed (compile phase):
 [31;01m*[0m   (no error message)
```