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
Toolbox install fails in Swift 5.5.1 #371
Comments
@carlhung I think there was another similar issue filed a few days back, related to a minor Swift 5.5 bug which was resolved in 5.5.1. Try upgrading your Swift toolchain to 5.5.1 and then run |
same problem in 5.5.1
|
Hello everyone, i've been in this and i wasnt able to install it using the way the docs said , so i tried using the vapor 3 docs way, and it did work for me , |
It's a bug with the script/Swift interpreting the script, I'm hoping to fix it next week |
Build failing after make install
1. Swift version 5.5.1 (swift-5.5.1-RELEASE)
2. 3. While evaluating request ExecuteSILPipelineRequest(Run pipelines { PrepareOptimizationPasses, EarlyModulePasses, HighLevel,Function+EarlyLoopOpt, HighLevel,Module+StackPromote, Serialize, MidLevel,Function, ClosureSpecialize, LowLevel,Function, LateLoopOpt, SIL Debug Info Generator } on SIL for NIOPosix.NIOPosix) 4. While running pass #19707 SILModuleTransform "GlobalOpt". #0 0x00000000059e1783 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/share/swift/usr/bin/swift-frontend+0x59e1783) #1 0x00000000059df66e llvm::sys::RunSignalHandlers() (/usr/share/swift/usr/bin/swift-frontend+0x59df66e) #2 0x00000000059e1b05 SignalHandler(int) (/usr/share/swift/usr/bin/swift-frontend+0x59e1b05) #3 0x00007f76075247e0 __restore_rt (/lib64/libpthread.so.0+0x117e0) #4 0x00007f7605e72ca0 raise (/lib64/libc.so.6+0x33ca0) #5 0x00007f7605e74148 abort (/lib64/libc.so.6+0x35148) #6 0x00007f7605e6ba4a __assert_fail_base (/lib64/libc.so.6+0x2ca4a) #7 0x00007f7605e6bac2 (/lib64/libc.so.6+0x2cac2) #8 0x0000000001039cbf swift::CallerAnalysis::unsafeGetFunctionInfo(swift::SILFunction*) (/usr/share/swift/usr/bin/swift-frontend+0x1039cbf) #9 0x000000000103bf80 swift::CallerAnalysis::invalidate() (/usr/share/swift/usr/bin/swift-frontend+0x103bf80) #10 0x00000000010e7899 (anonymous namespace)::SILGlobalOptPass::run() (/usr/share/swift/usr/bin/swift-frontend+0x10e7899) #11 0x0000000000d9d5b0 swift::SILPassManager::runModulePass(unsigned int) (/usr/share/swift/usr/bin/swift-frontend+0xd9d5b0) #12 0x0000000000d9fe8a swift::SILPassManager::execute() (/usr/share/swift/usr/bin/swift-frontend+0xd9fe8a) #13 0x0000000000d99dc8 swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) (/usr/share/swift/usr/bin/swift-frontend+0xd99dc8) #14 0x0000000000d99d7b swift::ExecuteSILPipelineRequest::evaluate(swift::Evaluator&, swift::SILPipelineExecutionDescriptor) const (/usr/share/swift/usr/bin/swift-frontend+0xd99d7b) #15 0x0000000000dbc9ba swift::SimpleRequest (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) (/usr/share/swift/usr/bin/swift-frontend+0xdbc9ba) #16 0x0000000000da51f3 llvm::Expected swift::Evaluator::getResultUncached(swift::ExecuteSILPipelineRequest const&) (/usr/share/swift/usr/bin/swift-frontend+0xda51f3) #17 0x0000000000d99f95 swift::executePassPipelinePlan(swift::SILModule*, swift::SILPassPipelinePlan const&, bool, swift::irgen::IRGenModule*) (/usr/share/swift/usr/bin/swift-frontend+0xd99f95) #18 0x0000000000da6abf swift::runSILOptimizationPasses(swift::SILModule&) (/usr/share/swift/usr/bin/swift-frontend+0xda6abf) #19 0x00000000006f4902 swift::CompilerInstance::performSILProcessing(swift::SILModule*) (/usr/share/swift/usr/bin/swift-frontend+0x6f4902) #20 0x000000000056c72b performCompileStepsPostSILGen(swift::CompilerInstance&, std::unique_ptr >, llvm::PointerUnion, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) (/usr/share/swift/usr/bin/swift-frontend+0x56c72b) #21 0x000000000056c10e performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) (/usr/share/swift/usr/bin/swift-frontend+0x56c10e) #22 0x000000000055f9b8 swift::performFrontend(llvm::ArrayRef, char const*, void*, swift::FrontendObserver*) (/usr/share/swift/usr/bin/swift-frontend+0x55f9b8) #23 0x00000000004b2529 main (/usr/share/swift/usr/bin/swift-frontend+0x4b2529) #24 0x00007f7605e6013a __libc_start_main (/lib64/libc.so.6+0x2113a) #25 0x00000000004b218a _start (/usr/share/swift/usr/bin/swift-frontend+0x4b218a) [1/3] Compiling CMustache mustach.c Swift/ErrorType.swift:200: Fatal error: Error raised at top level: build.ShellError(terminationStatus: 1) Current stack trace: 0 libswiftCore.so 0x00007f3056649ea0 swift_reportError + 50 1 libswiftCore.so 0x00007f30566c2360 _swift_stdlib_reportFatalErrorInFile + 109 2 libswiftCore.so 0x00007f30563cf8c2 + 1398978 3 libswiftCore.so 0x00007f30563cf5eb + 1398251 4 libswiftCore.so 0x00007f30563ce2d0 _assertionFailure(_:_:file:line:flags:) + 447 5 libswiftCore.so 0x00007f305642f080 swift_errorInMain + 731 6 build 0x0000563ea7e80347 + 9031 7 libc.so.6 0x00007f3055129050 __libc_start_main + 234 8 build 0x0000563ea7e800ba + 8378 make: *** [build] Illegal instruction make: *** Deleting file `build' To reproduceFresh instance of Amazon Linux 2 Environmentuname -r: I tried @rafikkasmi 's method of swift build -c release --disable-sandbox |
I believe this is fixed in 5.5.2 - can anyone confirm? Just tried running in Docker and it successfully built for me |
Hi i'm new to swift (more than roockie), but i face this issue trying to install VAPOR on a swift:5.5.2 docker container following the install (https://docs.vapor.codes/4.0/install/linux/). Then i found a related page on the issue => https://eclecticlight.co/2019/02/02/scripting-in-swift-process-deprecations/ Edit /opt/toolbox/scripts/build.swift as launchPath() is deprecated and should be replaced by executableURL with following syntax for PATH:
launch() is deprecated, also, and should be replaced by run() with following syntax:
As i'm a newby i didn't know what to insert in the catch sequence.
and for the vapor help command:
Then:
Hope this can help |
Going to close this as it appears fixed in 5.5.2 - feel free to reopen if it's still an issue |
Describe the bug
When running
make install
:To Reproduce
run on raspberry pi 4 with ubuntu 20.04.3 64bit OS
Environment
The text was updated successfully, but these errors were encountered: