HWE snaps are building with wrong CFLAGS options

Bug #1791333 reported by Alfonso Sanchez-Beato
This bug affects 1 person
Affects Status Importance Assigned to Milestone
In Progress
Alfonso Sanchez-Beato

Bug Description

The reason for this is LP: #1791946. There is also the fact that we are compiling without -O2 all of our snaps that include autotools. That includes:

* wpa-supplicant
* bluez
* pulseaudio
* wifi-ap

Tony Espy (awe)
Changed in snappy-hwe-snaps:
status: New → Incomplete
assignee: nobody → Alfonso Sanchez-Beato (alfonsosanchezbeato)
Revision history for this message
Tony Espy (awe) wrote :

As stated before, we need to find the root cause before we submit a fix. Your description doesn't mention what version of snapcraft you used.

I checked the changelog for snapcraft 2.43, which was released recently and couldn't find any changes that might've caused this problem:


I reverted back to 2.42.1, and the problem still occurs when building the latest network-manager.

I also tried building our bluez snap with 2.43, and it appears normal (ie. it didn't increase in size). Next I built our previous release of the network-manager snap (1.2.2-15), and it also builds normally, so I think this problem is related to the changes made to the network-manager snap post 1.2.2-15.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

@Tony, different snaps increase their size in different quantities. For some reason NM is especially affected, with 5 additional MB. But MM snap increases only in 1 MB. The easiest way to check if something is affected by this bug is by running the 'file' command on a binary. If you see


in the output, you have the additional ELF segments with debug info.

description: updated
Changed in snappy-hwe-snaps:
status: Incomplete → Confirmed
summary: - New builds of snap packages for HWE snaps have much bigger size than
- before
+ HWE snaps are building with wrong CFLAGS options
Changed in snappy-hwe-snaps:
importance: Undecided → Critical
status: Confirmed → In Progress
Tony Espy (awe)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.