Public bug reported:

Hi,

I've recently reported a linking problem #1727695, and as a workaround
I've built the snap (https://github.com/hadmut/snap-rustc) on a 16.04
system and installed it on a 17.10. The linking problem does not occur
then, but I run into another problem:

% cargo build   
error: could not execute process `rustc -vV` (never executed)

Caused by:
  No such file or directory (os error 2)


Again a problem that did not occur under 16.04 and 17.04.

Altough I can run rustc from the command line, cargo can't when run
under 17.10.

Unfortunately, and that's what's making things really difficult to
debug, I cannot strace the process. strace as a regular user is not
possible with snap binaries, since snaps cannot be straced as regular
users. Running strace as root, on the other hand, completely freezes the
process.

No clue why cargo cannot run the rust compiler when run as a snap under
17.10. This problem does not occur, when running cargo directly as

/snap/rust/x1/usr/local/bin/cargo build

It then can run rustc (because it uses it's own path to find binaries
and thus starts rustc from within the snap and not /snap/bin), but not
cc as a linker.


snapd and snapcraft are just too buggy to be usable under 17.10.

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: snapd 2.28.5+17.10
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
ApportVersion: 2.20.7-0ubuntu3.1
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Nov  2 11:56:54 2017
InstallationDate: Installed on 2017-10-24 (9 days ago)
InstallationMedia: Lubuntu 17.10 "Artful Aardvark" - Release amd64 (20171017.1)
SourcePackage: snapd
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: snapd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug artful

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1729574

Title:
  undebuggable run time error in a snap

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1729574/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to