mpclarkson / perfect-swift-linux

Vagrantfile to install Swift and Perfect on Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SwiftShims module missing

gpkash opened this issue · comments

New to using Vagrant & Perfect, but I believe I've got everything set up properly. That said, I'm getting the following error about missing the SwiftShims module. Any ideas?

vagrant@vagrant-ubuntu-wily-64:/vagrant/Perfect/Examples/URL Routing$ make
swift -frontend -c -module-cache-path /tmp/modulecache -emit-module -I /usr/local/lib -I ../../PerfectLib/linked/LibEvent -I ../../PerfectLib/linked/OpenSSL_Linux -I ../../PerfectLib/linked/ICU -I ../../PerfectLib/linked/SQLite3 -I ../../PerfectLib/linked/LinuxBridge "URL Routing/PerfectHandlers.swift" -o URLRouting.o -module-name URLRouting -emit-module-path URLRouting.swiftmodule
<unknown>:0: error: could not acquire lock file for module 'SwiftShims'
<unknown>:0: error: missing required module 'SwiftShims'
makefile:21: recipe for target 'URLRouting' failed
make: *** [URLRouting] Error 1

I did encounter that problem early on, and there are a few open bug tickets relating to that specific issue on the swift bug site. That being said, I've rebuilt and when I go to http://127.0.0.1:8181/user/2/ I see this, which is correct:

screen shot 2016-01-13 at 5 49 44 pm

Are you using the latest commit?

PS All the demo modules are already made and linked. However, when I try to make the URL Routing again, I get the same error as you. Resetting the path export PATH=/home/vagrant/swift/usr/bin:\"${PATH}\" appears to partially fix this but I'm now getting this issue: make: mkdir: Command not found - I'll have to debug this.

I've pushed another update and the libraries are all building properly in vagrant up. However, as the vagrant user I still get the SwiftShims error when I try to manually build them, even though they work in the script? No idea why, as the REPL works - any suggestions welcome.

There is bug related in the Swift bug tracker here: https://bugs.swift.org/browse/SR-23?jql=text%20~%20%22swiftshims%22