Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #66460 > unrolled thread
| Started by | Thomas Schwinge <thomas@codesourcery.com> |
|---|---|
| First post | 2020-03-05 09:50 +0100 |
| Last post | 2020-03-09 01:00 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.kernel
kernel-handbook: How to rebuild official Debian Linux kernel package with debug info disabled? Thomas Schwinge <thomas@codesourcery.com> - 2020-03-05 09:50 +0100
Re: kernel-handbook: How to rebuild official Debian Linux kernel package with debug info disabled? Thomas Schwinge <thomas@codesourcery.com> - 2020-03-05 18:40 +0100
Re: kernel-handbook: How to rebuild official Debian Linux kernel package with debug info disabled? Ben Hutchings <ben@decadent.org.uk> - 2020-03-09 01:00 +0100
| From | Thomas Schwinge <thomas@codesourcery.com> |
|---|---|
| Date | 2020-03-05 09:50 +0100 |
| Subject | kernel-handbook: How to rebuild official Debian Linux kernel package with debug info disabled? |
| Message-ID | <zGUmC-8bz-11@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter
[toc] | [next] | [standalone]
| From | Thomas Schwinge <thomas@codesourcery.com> |
|---|---|
| Date | 2020-03-05 18:40 +0100 |
| Message-ID | <zH2Dw-52X-15@gated-at.bofh.it> |
| In reply to | #66460 |
Hi!
On 2020-03-05T09:35:16+0100, I wrote:
> To test something, I need to rebuild the official Debian Linux kernel
> package, so I'm following
> <https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#s-common-official>
> "4.2. Rebuilding official Debian kernel packages".
>
> # apt-get --purge install build-essential fakeroot
> # apt-get --purge build-dep linux/testing
> $ apt-get source linux/testing
> $ cd linux-5.4.19/
>
> As disk space is limited, I'd like to build with debug info disabled, so
> per the instructions given I "disable debug info by changing the value of
> 'debug-info' to 'false' in 'debian/config/defines'". I ignored the "(or
> 'debian/config/*arch*/defines' in older package versions)" remark, as I
> didn't think I was building an "older package version".
>
> $ PATH=/usr/lib/ccache:$PATH
> $ fakeroot debian/rules source
> $ fakeroot make -f debian/rules.gen binary-arch_i386_none_686-pae
>
> After a few hours that exploded with "disk full", and indeed
> 'CONFIG_DEBUG_INFO=y' is set in
> 'debian/build/build_i386_none_686-pae/.config' (the file matches
> '/boot/config-5.4.0-4-686-pae').
>
> I now see:
>
> $ grep -r -B1 debug-info debian/config/
> debian/config/amd64/defines-[build]
> debian/config/amd64/defines:debug-info: true
> --
> debian/config/s390x/defines-[s390x_build]
> debian/config/s390x/defines:debug-info: true
> --
> debian/config/hppa/defines-# temporarily disable debug info: Required disk size exceeds our hppa buildd machines.
> debian/config/hppa/defines:debug-info: false
> --
> debian/config/defines-[build]
> debian/config/defines:debug-info: true
> --
> debian/config/arm64/defines-[build]
> debian/config/arm64/defines:debug-info: true
> --
> debian/config/i386/defines-[686-pae_build]
> debian/config/i386/defines:debug-info: true
>
> ..., so I'll try again with setting 'debug-info' to 'false' both in
> 'debian/config/defines' and 'debian/config/i386/defines'.
Eh, same result/problem... ;-/
I'll (later) try to figure out the right edits or commands to use, but
would also appreciate working instructions, if anyone knows off-hand?
Probably separate '.config' generation and alternation
('CONFIG_DEBUG_INFO=n', is that enough?) from the actual build?
> Why do some of these configuration files override the generic one
> (without giving rationale), and/or do the kernel-handbook instructions
> need to be updated?
Grüße
Thomas
-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter
[toc] | [prev] | [next] | [standalone]
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Date | 2020-03-09 01:00 +0100 |
| Subject | Re: kernel-handbook: How to rebuild official Debian Linux kernel package with debug info disabled? |
| Message-ID | <zIdZU-8kJ-1@gated-at.bofh.it> |
| In reply to | #66462 |
[Multipart message — attachments visible in raw view] — view raw
On Thu, 2020-03-05 at 18:23 +0100, Thomas Schwinge wrote:
[...]
> > ..., so I'll try again with setting 'debug-info' to 'false' both in
> > 'debian/config/defines' and 'debian/config/i386/defines'.
>
> Eh, same result/problem... ;-/
>
> I'll (later) try to figure out the right edits or commands to use, but
> would also appreciate working instructions, if anyone knows off-hand?
> Probably separate '.config' generation and alternation
> ('CONFIG_DEBUG_INFO=n', is that enough?) from the actual build?
If you already started a build, changing debian/config won't affect it.
In general, you would need to run "debian/rules debian/control", clean,
and build again.
If you have done that, then I don't understand how this is going wrong.
> > Why do some of these configuration files override the generic one
> > (without giving rationale), and/or do the kernel-handbook instructions
> > need to be updated?
We used to enable debug-info only for a few configurations; then we
changed to enable it for all configurations but didn't delete the
redundant settings. And I documented this wrongly.
I've updated the handbook (only git and the online version so far) to
correct this. I have also deleted the redundant settings, to make this
simpler in future.
Ben.
--
Ben Hutchings
Knowledge is power. France is bacon.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.kernel
csiph-web