Open swift-ci opened 6 years ago
@compnerd, @aciidb0mb3r, someone just fixed this on master, didn't they? I didn't realize it had escaped to the 4.2 branch. :-(
I haven't been able to reproduce this
Comment by Eric Thorpe (JIRA)
Sorry @aciidb0mb3r, been away from swift for a while. I can no longer reproduce this either. I have two VMs Ubuntu 16.04, one desktop, one server, both exhibiting this behaviour on build. I've run up some new 16.04 installs using the same swift download and having no problems now. I guess I'll write it off to something in those VMs, archive them and move on. Thanks for taking a look.
Comment by Eric Thorpe (JIRA)
This issue has resurfaced and I'm at a loss to understand what's going on. I have it with some projects, but not others. One way I've been able to consistently replicate it:
Ubuntu 16.04.5 Desktop clean and up to date
sudo apt install clang libicu-dev libpython2.7 libssl-dev git curl
Install Swift, swiftenv, following Swift.org instructions or via Vapors deb repo seems to make no difference, 4.2+
git clone https://github.com/vapor/auth-template.git
cd auth-template && swift build
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler, Package Manager | |Labels | Bug, Screened | |Assignee | None | |Priority | Medium | md5: 1685ab99f5197a7100a6205822ad3e93Issue Description:
I'm not sure if something has changed in the package manager or compiler or something else sorry, so I'll tag both.
In previous version of Swift, I've been able to deploy libraries beside the compiled binary (on Ubuntu in this case).
As of 4.2.1, libraries are not detected beside the binary. It looks like that rpath is being escaped and breaking this.
4.1.2 binary:
4.2.1 binary:
Building with -Xlinker -rpath=$ORIGIN is also escaped to \$ORIGIN.