SwiftShims error thrown while trying to use Swift's REPL


(Projjol Banerji) #1

Hey,
I recently upgraded to Ubuntu 14.04 in order to try Swift out. I've
followed all the instructions given in the installation page (For the 18
December build) , but on trying a simple addition on the Swift REPL, it
throws an "opening import file for module 'SwiftShims': No such file or
directory" error message.
There are a few related questions on StackOverflow and AskUbuntu but
they've not helped. I've also read the question posted earlier in this
thread here
<https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20151130/000134.html>
and
as suggested my installation is currently in ~/swift but to no avail.

Any ideas on how to fix this problem? Would love to get started with Swift!

Thanks,
Projjol


(Jason Dusek) #2

It would be helpful if you provided strace output.

Hey,

I recently upgraded to Ubuntu 14.04 in order to try Swift out. I've
followed all the instructions given in the installation page (For the 18
December build) , but on trying a simple addition on the Swift REPL, it
throws an "opening import file for module 'SwiftShims': No such file or
directory" error message.
There are a few related questions on StackOverflow and AskUbuntu but
they've not helped. I've also read the question posted earlier in this
thread here
<https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20151130/000134.html> and
as suggested my installation is currently in ~/swift but to no avail.

Any ideas on how to fix this problem? Would love to get started with Swift!

Thanks,
Projjol

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

···

On Wed, 23 Dec 2015 at 01:09 Projjol Banerji via swift-users swift-users@swift.org <http://mailto:swift-users@swift.org> wrote:


(Projjol Banerji) #3

This <http://pastebin.ubuntu.com/14161487/> contains a part of the strace
output. The entire output is quite large ~ 7k LoC, Would that be required?

···

On Wed, Dec 23, 2015 at 2:52 PM, Jason Dusek <jason.dusek@gmail.com> wrote:

It would be helpful if you provided strace output.

On Wed, 23 Dec 2015 at 01:09 Projjol Banerji via swift-users > swift-users@swift.org <http://mailto:swift-users@swift.org> wrote:

Hey,

I recently upgraded to Ubuntu 14.04 in order to try Swift out. I've
followed all the instructions given in the installation page (For the 18
December build) , but on trying a simple addition on the Swift REPL, it
throws an "opening import file for module 'SwiftShims': No such file or
directory" error message.
There are a few related questions on StackOverflow and AskUbuntu but
they've not helped. I've also read the question posted earlier in this
thread here
<https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20151130/000134.html> and
as suggested my installation is currently in ~/swift but to no avail.

Any ideas on how to fix this problem? Would love to get started with
Swift!

Thanks,
Projjol

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


(Jason Dusek) #4

The relevant bit is in there:

open("/home/dorsatum/swift/usr/lib/swift/linux/x86_64/SwiftShims.swiftmodule",
O_RDONLY) = -1 ENOENT (No such file or directory)

I am not sure what it should be loading but this file does not exist in the
distribution so I wonder why it is searching for it. I had the same problem
-- until I moved the installation to ~.

···

On Wed, 23 Dec 2015 at 02:33, Projjol Banerji <probaner23@gmail.com> wrote:

This <http://pastebin.ubuntu.com/14161487/> contains a part of the strace
output. The entire output is quite large ~ 7k LoC, Would that be required?

On Wed, Dec 23, 2015 at 2:52 PM, Jason Dusek <jason.dusek@gmail.com> > wrote:

It would be helpful if you provided strace output.

On Wed, 23 Dec 2015 at 01:09 Projjol Banerji via swift-users >> swift-users@swift.org <http://mailto:swift-users@swift.org> wrote:

Hey,

I recently upgraded to Ubuntu 14.04 in order to try Swift out. I've
followed all the instructions given in the installation page (For the 18
December build) , but on trying a simple addition on the Swift REPL, it
throws an "opening import file for module 'SwiftShims': No such file or
directory" error message.
There are a few related questions on StackOverflow and AskUbuntu but
they've not helped. I've also read the question posted earlier in this
thread here
<https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20151130/000134.html> and
as suggested my installation is currently in ~/swift but to no avail.

Any ideas on how to fix this problem? Would love to get started with
Swift!

Thanks,
Projjol

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


(Projjol Banerji) #5

My installation was currently in ~ , I checked to see if keeping it /home/
worked but that did not work either. Any idea why it is looking why it is
looking for this module?

···

On Thu, Dec 24, 2015 at 4:23 AM, Jason Dusek <jason.dusek@gmail.com> wrote:

The relevant bit is in there:

open("/home/dorsatum/swift/usr/lib/swift/linux/x86_64/SwiftShims.swiftmodule",
O_RDONLY) = -1 ENOENT (No such file or directory)

I am not sure what it should be loading but this file does not exist in
the distribution so I wonder why it is searching for it. I had the same
problem -- until I moved the installation to ~.

On Wed, 23 Dec 2015 at 02:33, Projjol Banerji <probaner23@gmail.com> > wrote:

This <http://pastebin.ubuntu.com/14161487/> contains a part of the
strace output. The entire output is quite large ~ 7k LoC, Would that be
required?

On Wed, Dec 23, 2015 at 2:52 PM, Jason Dusek <jason.dusek@gmail.com> >> wrote:

It would be helpful if you provided strace output.

On Wed, 23 Dec 2015 at 01:09 Projjol Banerji via swift-users >>> swift-users@swift.org <http://mailto:swift-users@swift.org> wrote:

Hey,

I recently upgraded to Ubuntu 14.04 in order to try Swift out. I've
followed all the instructions given in the installation page (For the 18
December build) , but on trying a simple addition on the Swift REPL, it
throws an "opening import file for module 'SwiftShims': No such file or
directory" error message.
There are a few related questions on StackOverflow and AskUbuntu but
they've not helped. I've also read the question posted earlier in this
thread here
<https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20151130/000134.html> and
as suggested my installation is currently in ~/swift but to no avail.

Any ideas on how to fix this problem? Would love to get started with
Swift!

Thanks,
Projjol

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users