Open swift-ci opened 5 years ago
Comment by Gábor Sebestyén (JIRA)
Issue confirmed on 5.2.9-arch1-1-ARCH
with snapshot swift-DEVELOPMENT-SNAPSHOT-2019-08-20-a
Comment by Gábor Sebestyén (JIRA)
Additionally, I tried to print out HELLO via freshly built REPL and it crashed right away
[segabor@csihuhu swift-dev]$ /home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift
*** You are running Swift's integrated REPL, ***
*** intended for compiler and stdlib ***
*** development and testing purposes only. ***
*** The full REPL is built as part of LLDB. ***
*** Type ':help' for assistance. ***
(swift) print('Hello")
<REPL Input>:1:7: error: unterminated string literal
print('Hello")
^
(swift) print("Hello")
Stack dump:
0. Program arguments: /home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift -frontend -repl -disable-objc-interop -color-diagnostics -module-name REPL
1. Swift version 5.1-dev (LLVM c5340df2d1, Swift 799ddd409f)
2. while processing REPL source:
print("Hello")
#​0 0x000055648130cb24 PrintStackTraceSignalHandler(void*) (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x467ab24)
#​1 0x000055648130a83e llvm::sys::RunSignalHandlers() (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x467883e)
#​2 0x000055648130cf38 SignalHandler(int) (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x467af38)
#​3 0x00007f607b1ecd00 __restore_rt (/usr/lib/libpthread.so.0+0x13d00)
#​4 0x00007f607b265010
#​5 0x000055647d30d0b5 llvm::MCJIT::runFunction(llvm::Function*, llvm::ArrayRef<llvm::GenericValue>) (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x67b0b5)
#​6 0x000055647d3116d0 llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, char const* const*) (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x67f6d0)
#​7 0x000055647d307bb1 REPLEnvironment::executeSwiftSource(llvm::StringRef, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x675bb1)
#​8 0x000055647d303125 swift::runREPL(swift::CompilerInstance&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool) (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x671125)
#​9 0x000055647d2eb4a3 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x6594a3)
#​10 0x000055647d2e9539 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x657539)
#​11 0x000055647d28c7e1 main (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x5fa7e1)
#​12 0x00007f607aa0fee3 __libc_start_main (/usr/lib/libc.so.6+0x26ee3)
#​13 0x000055647d28c41e _start (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x5fa41e)
Illegal instruction (core dumped)
Comment by Gábor Sebestyén (JIRA)
Dear aemino (JIRA User),
I think I resolved the issue. I had this problem until I figured out that snapshot name was literally wrong breaking the whole Swift source checkout and clone process.
In my script snapshot names are expected in format 5.1-DEVELOPMENT-SNAPSHOT-2019-09-01-a
however I pasted another snapshot name with swift- prefix as it can be found in Downloads section of swift.org site. Build script internally prefixes the snapshot name with swift- ending up having double swift prefix in snapshot name wreaking havoc tagged source checkout and clone operations.
So I recommend checking if you also ran into the same issue. After fixed swift successfully built.
Comment by aemino (JIRA)
Hi segabor (JIRA User),
I checked to see if that was the case in my PKGBUILD
, but I think it seems to be using the proper names. Perhaps the issue was resolved and it was more of a coincidence that the naming fix allowed your build to succeed?
I will attempt to build a recent snapshot again sometime soon.
Comment by Gábor Sebestyén (JIRA)
Yeah, let's hope it was a coincidence. Anyway here's my custom build script script that I use.
Attachment: Download
Environment
Arch Linux (Linux 5.2.3.arch1-1)Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Package Manager | |Labels | Bug, BuildScript, Linux, REPL | |Assignee | None | |Priority | Medium | md5: c85e55e7e5e42b8601933a3452a79260Issue Description:
Using swift-DEVELOPMENT-SNAPSHOT-2019-08-01-a. Build script log attached.