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-11252] SwiftPM manifest parse error while building toolchain #4851

Open
swift-ci opened this issue Aug 3, 2019 · 5 comments
Open

[SR-11252] SwiftPM manifest parse error while building toolchain #4851

swift-ci opened this issue Aug 3, 2019 · 5 comments

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Aug 3, 2019

Previous ID SR-11252
Radar None
Original Reporter aemino (JIRA User)
Type Bug

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: c85e55e7e5e42b8601933a3452a79260

Issue Description:

Using swift-DEVELOPMENT-SNAPSHOT-2019-08-01-a. Build script log attached.

@swift-ci
Copy link
Contributor Author

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

@swift-ci
Copy link
Contributor Author

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")
 #&#8203;0 0x000055648130cb24 PrintStackTraceSignalHandler(void*) (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x467ab24)
 #&#8203;1 0x000055648130a83e llvm::sys::RunSignalHandlers() (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x467883e)
 #&#8203;2 0x000055648130cf38 SignalHandler(int) (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x467af38)
 #&#8203;3 0x00007f607b1ecd00 __restore_rt (/usr/lib/libpthread.so.0+0x13d00)
 #&#8203;4 0x00007f607b265010 
 #&#8203;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)
 #&#8203;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)
 #&#8203;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)
 #&#8203;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)
 #&#8203;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)
#&#8203;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)
#&#8203;11 0x000055647d28c7e1 main (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x5fa7e1)
#&#8203;12 0x00007f607aa0fee3 __libc_start_main (/usr/lib/libc.so.6+0x26ee3)
#&#8203;13 0x000055647d28c41e _start (/home/segabor/Workspace/swift-dev/build/buildbot_linux/swift-linux-x86_64/bin/swift+0x5fa41e)
Illegal instruction (core dumped)

@swift-ci
Copy link
Contributor Author

swift-ci commented Sep 3, 2019

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.

@swift-ci
Copy link
Contributor Author

swift-ci commented Sep 4, 2019

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.

@swift-ci
Copy link
Contributor Author

swift-ci commented Sep 4, 2019

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.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants