Snap failing to build on build.snapcraft.io


#1

I’ve got a snap that has started failing to build on build.snapcraft.io:

https://build.snapcraft.io/user/knkski/rust-libjuju/569946

It previously worked just fine, and builds without error locally on my laptop. The error looks related to a missing gcc package:

error: linker `i386-linux-gnu-gcc` not found
  |
  = note: No such file or directory (os error 2)

But I’m not sure why it’s working locally if that’s the case.


#2

Can you share your snapcraft.yaml please? It might help us to replicate the issue or otherwise identify the problem.


#3

For those playing along at home, I found the source at https://github.com/knkski/rust-libjuju. I, too, cannot replicate the build.snapcraft.io failure locally that @knkski encountered but cannot replicate themself.


#4

@daniel: Thanks for the quick response, that is indeed my snapcraft.yaml


#5

Update: I removed i386 from the list of supported architectures, and the build ran on amd64 and worked great.


#6

That’s weird. I wonder what about the i386 architecture was causing it to fail?


#7

@knkski I fixed this issue at snapcraft v3.5.1. Now build.snapcraft.io is updated to v3.5.1. Could you re-try it?


#8

@dalance: Looks like this is now fixed. Thanks!