snapcraft fails on s390x with utf8 error
Metadata
Current evaluation
Closed without a fix. The report detailed a UTF-8 encoding error in snapcraft 2.18 causing s390x builds to fail. The issue was abandoned with no code changes or resolution provided.
Suggested action: —
No scores available.
Issue body
with snapcraft 2.18 landing in xenial-updates last night the daily build of ubuntu-core started to fail reliably on the s390x architecture with the following traceback:
Staging livebuild
Priming livebuild
'utf-8' codec can't encode character '\udcc5' in position 87: surrogates not allowed
Traceback (most recent call last):
File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 191, in main
builder.build()
File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 137, in build
["snapcraft"], path=os.path.join("/build", self.name))
File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 88, in run_build_command
self.chroot(["/bin/sh", "-c", command], echo=echo)
File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 66, in chroot
"/usr/bin/sudo", "/usr/sbin/chroot", self.chroot_path] + args)
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['/usr/bin/sudo', '/usr/sbin/chroot', '/home/buildd/build-SNAPBUILD-5660/chroot-autobuild', 'linux64', '/bin/sh', '-c', 'cd /build/ubuntu-core && snapcraft']' returned non-zero exit status 1
Revoking proxy token...
a build log is at https://launchpadlibrarian.net/287056073/buildlog_snap_ubuntu_xenial_s390x_ubuntu-core_BUILDING.txt.gz
as https://code.launchpad.net/~snappy-dev/+snap/ubuntu-core shows all other architectures build fine.
this used to work well with snapcraft 2.17 and before.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without a fix. The report detailed a UTF-8 encoding error in snapcraft 2.18 causing s390x builds to fail. The issue was abandoned with no code changes or resolution provided. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The UTF-8 encoding error causing snapcraft 2.18 build failures on s390x was not addressed, indicating the issue was abandoned. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1570835 snapcraft 2.8 fails on s390x | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft 2.8 failed on s390x due to a missing architecture table entry, but no fix or follow-up was recorded. | |
| #1662456 snapcraft fails if desktop file included "ascii" cannot decode byte | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft build failures triggered by non-ASCII characters in desktop files caused an ASCII codec decode error. The report received no comments or patches and was abandoned, likely superseded by upstream UTF-8 handling improvements. | |
| #1796813 Snapcraft crashes with UnicodeDecodeError | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft crashed with a UnicodeDecodeError when parsing snapcraft.cfg containing invalid UTF-8 bytes during Travis CI builds. | |
| #1854458 snapcraft comes with an old version of pyelftools, some builds fail due to this | snapcraft (launchpad) | closed | Closed without resolution. The issue stemmed from an outdated pyelftools dependency triggering a Unicode decode error during ELF parsing. No patch was applied, leaving the snap build failure unresolved. | |
| #1973146 snapcraftctl build fails with message "expected string or bytes-like object" | snapcraft (launchpad) | closed | Closed without comments or resolution details. Likely abandoned due to inactivity. No fix was implemented or documented for the snapcraftctl build TypeError. | |
| #1761598 Snapcraft modifies binaries | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft 2.39.2 and 2.40.1 modified binaries by adding 4096 bytes, a regression from 2.35. The report was abandoned with no comments or fix applied. | |
| #1605541 snapcraft-parser doesn't work | snapcraft (launchpad) | closed | Closed as a regression without resolution. snapcraft-parser 2.13 failed to parse multi-document YAML streams, causing a parser error. The issue was abandoned with no fix or follow-up. |