You are not logged in.

#1 2017-07-15 11:07:00

zappathustra
Member
Registered: 2014-06-15
Posts: 32

[Solved] Can't build linux-rt anymore.

Hello there,

I'm running on linux-rt (from AUR), but I couldn't build the latest updates. The compilation dies with:

kernel/watchdog_hld.c: Dans la fonction « watchdog_overflow_callback »:
kernel/watchdog_hld.c:112:3: error: déclaration implicite de la fonction « printk_kill »; vouliez-vous utiliser « printk_emit » ? [-Werror=implicit-function-declaration]

The French part in the second line means "implicit declaration of function "printk_kill"; did you mean "printk_emit"?"

The package maintainer (jhernberg) has no idea where the problem might come from. He suggested building in chroot with devtools, but even if it works it won't really solve the problem. I could also perhaps compile with warnings not treated as errors, but again I'd rather build a kernel the usual way...

Whatever I've found on the internet is not really helpful. I must admit I'm not familiar with the Linux kernel, so I'm lost here. If anybody knows what's going on...

Best,
Paul

Last edited by zappathustra (2017-07-30 12:04:41)

Offline

#2 2017-07-15 11:13:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: [Solved] Can't build linux-rt anymore.

zappathustra wrote:

He suggested building in chroot with devtools, but even if it works it won't really solve the problem

What do you mean?  Why wouldn't it solve the problem?  That is the "right" way to build packages.  Frequently we can get by just fine by doing things not-quite-right by building outside a chroot in our running system, but when that fails, attempting to do it right (if the build works for others) is a reasonable approach.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2017-07-15 11:16:25

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Offline

#4 2017-07-15 11:29:36

zappathustra
Member
Registered: 2014-06-15
Posts: 32

Re: [Solved] Can't build linux-rt anymore.

Trilby wrote:
zappathustra wrote:

He suggested building in chroot with devtools, but even if it works it won't really solve the problem

What do you mean?  Why wouldn't it solve the problem?  That is the "right" way to build packages.  Frequently we can get by just fine by doing things not-quite-right by building outside a chroot in our running system, but when that fails, attempting to do it right (if the build works for others) is a reasonable approach.

Thank you Trilby, I simply didn't know that. I'll have to investigate how to do that properly (I think I've never used chroot after installing Arch), and then I'll report here.

Offline

#5 2017-07-15 11:33:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: [Solved] Can't build linux-rt anymore.

For full disclosure, I don't build in clean chroots - I've never needed to.  Most of the time not doing so is just fine.  I just wanted to highlight, though, that in contrast to a potential assumption - building in a clean chroot is not some sort of dirty hack - it is the gold standard.  Not doing so is an only midly dirty hack that works for most of us a vast majority of the time.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2017-07-30 12:05:28

zappathustra
Member
Registered: 2014-06-15
Posts: 32

Re: [Solved] Can't build linux-rt anymore.

For the record: building in a chroot, then installing manually (with pacman -U) worked perfectly.

Offline

Board footer

Powered by FluxBB