Okay, so the first thing that occurs to me is that the script aims to build a "Xenial" aka 16.04 toolchain but you're trying to build a 18.04 one. Probably, that's not the only issue however.
To build all of Vapor, you'll need to add at least openssl (and its development libraries) to the toolchain builder script. Unfortunately, the toolchain builder script you're using doesn't resolve the dependencies automatically, so you'll have to add them all manually . I do apologise, the script is really only a demonstration and should be much better but at the time where I wrote it, it did the job for me. These days I think the folks from the SwiftCrossCompilers project know best how to use and drive the Swift cross compilation support.
Does a simple project work for you? So if you tried
cd /tmp && mkdir supersimple && swift package init --type=executable
swift build --destination /tmp/...destination.json
Does that work? Because if not, please report back and we can start filing bugs :).
Yes, the executable Swift package does work. Thanks, this is more of a curiosity than anything, so itβs interesting to see what needs to be built up.