Skip to contentSkip to conversation

clang package sizes

DISCUSSION Ryan Eatmon 2 participants 3 messages Aug 8, 2025 – Aug 11, 2025

lore
Share & tools
lore
#0 lore raw

I've been noticing that the master final build sizes have increased a lot from scarthgap to master. Some increase is inevitable, but I was seeing an almost 10gig increase in size. So I started comparing our scarthgap builds against our master builds and I tracked down the biggest offender to the packages (.ipk).

So I dug further, wrote a perl script to compare the two directories and found two very big offenders.

INC:   94M -> 4.1G  4366.38%  clang-staticdev
INC:   18M -> 3.4G  19242.22%  clang-dbg

From the meta-clang setup in scarthgap to the oe-core versions of the packages I'm seeing a huge blow up. Can anyone with some knowledge of the differences between the two approaches verify that this is expected and not just something overlooked in the new setup?

Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#1 lore raw
Quoted 11 lines · Ryan Eatmon

I've been noticing that the master final build sizes have increased a lot from scarthgap to master. Some increase is inevitable, but I was seeing an almost 10gig increase in size. So I started comparing our scarthgap builds against our master builds and I tracked down the biggest offender to the packages (.ipk).

So I dug further, wrote a perl script to compare the two directories and found two very big offenders.

Quoted 7 lines
INC:   94M -> 4.1G  4366.38%  clang-staticdev
INC:   18M -> 3.4G  19242.22%  clang-dbg

From the meta-clang setup in scarthgap to the oe-core versions of the
packages I'm seeing a huge blow up. Can anyone with some knowledge of the differences between the two approaches verify that this is expected and not just something overlooked in the new setup?

If you are using poky then you will notice

require conf/distro/include/yocto-space-optimize.inc

which should have helped, are you comparing this with poky or poky derived distro ?

Quoted 6 lines

--
Ryan Eatmon [email protected]
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS

#2 lore raw

Not poky. Our meta-arago distro. I'll take a look at that. Thanks!

Quoted 33 lines · Khem Raj
Quoted 11 lines · Ryan Eatmon

I've been noticing that the master final build sizes have increased a lot from scarthgap to master. Some increase is inevitable, but I was seeing an almost 10gig increase in size. So I started comparing our scarthgap builds against our master builds and I tracked down the biggest offender to the packages (.ipk).

So I dug further, wrote a perl script to compare the two directories and found two very big offenders.

Quoted 7 lines
INC:   94M -> 4.1G  4366.38%  clang-staticdev
INC:   18M -> 3.4G  19242.22%  clang-dbg

From the meta-clang setup in scarthgap to the oe-core versions of the
packages I'm seeing a huge blow up. Can anyone with some knowledge of the differences between the two approaches verify that this is expected and not just something overlooked in the new setup?

If you are using poky then you will notice

require conf/distro/include/yocto-space-optimize.inc

which should have helped, are you comparing this with poky or poky derived distro ?

Quoted 6 lines

--
Ryan Eatmon [email protected]
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS

Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS