Project

General

Profile

Feature #5124

network:osmocom:nightly feed with "-O0" builds

Added by laforge 24 days ago. Updated 22 days ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Start date:
04/20/2021
Due date:
% Done:

0%

Spec Reference:

Description

when debugging issues, it's always annoying to run into "... optimized out" in gdb.

It might make sense to have an OBS feed that basically is a copy of 'nightly' but has all binaries built with -O0

Hopefully that's not all that much effort? Can we somehow inject the compiler flag without having to maintain a package-specific patch against debian/rules?

History

#1 Updated by laforge 24 days ago

ideally one would be able to mix packages from nightly and nightly-O0, but that may be too much to ask for. In that case one could install just one relevant O0 package while keeping other parts optimized. Just daydreaming...

#2 Updated by keith 23 days ago

I wonder would it be possible to build a package in the same -nightly feed that has a different name and conflicts with the "normal" package, and depends on the -dbg package?

so you could do

opkg install osmo-bts-non-optimised (or whatever)

test.. test...

then

opkg install osmo-bts

operate.. operate...

#3 Updated by laforge 22 days ago

On Wed, Apr 21, 2021 at 08:34:11PM +0000, keith [REDMINE] wrote:

I wonder would it be possible to build a package in the same -nightly feed that has a different name and conflicts with the "normal" package, and depends on the -dbg package?

certainly it's possible. The problem is more how to do that without
creating a lot of manual labour, both one time and in terms of
continuous maintenance.

having "non-optimizied copies" of all packages in a feed sounds like
it will need maintenance every time a package changes or a new one is
created, which I wouldn't consider given the constant ongoing burden
it puts on the maintenance.

So I guess it boils down to finding whatever has the least impact
on our packaging and maintenance effort while still enabling users
to run -O0 without having to build from source.

As stated, ideally the non-optimized feed of the same flavor (nightly,
latest, upcoming stable releases) would not conflict with the optimzied
one so you would end up with the same situation as you request; the
only difference would be that you'd add two apt feeds and then have to
specify from which of those feeds you'd want to install 'osmo-bts'.

#4 Updated by pespin 22 days ago

To whom it may concern: my opinion regarding this topic is that I see no point in doing and maintaining this.
If someone requires -O0 binaries, I'd expect him to be able to build + scp packages manually (fi quickly using oso-gsm-tester contrib scripts to build a sysroot). If you end up needing -O0 binaries to debug further, it's also high chances that you'll end up too willing to add logging information, or test a patch, or whatever, so you still need to build your own build.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)