[yocto] Fwd: preempt-rt for 4.14.71 fails to build

Dimitris Tassopoulos dimtass at gmail.com
Wed Oct 10 11:18:46 PDT 2018


Hi all!

I've tried to build the latest preempt-rt kernel from the
`v4.14/standard/preempt-rt/base`
and it fails to build. These are the hashes I've used:

```
LINUX_VERSION = "4.14.71"
SRCREV_machine = "c37a14708f5b618602f84f83f902346e055824c3"
SRCREV_meta = "1fb0b0379fb5883ce5af7485374e3f78ee4272d3"
```

And the errors I get are:
```
/rnd/yocto/nativeos/build/tmp/work-shared/congatec/kernel-source/kernel/locking/rtmutex.c:
In function '__rt_mutex_lock':
/rnd/yocto/nativeos/build/tmp/work-shared/congatec/kernel-source/kernel/locking/rtmutex.c:2044:48:
error: passing argument 3 of 'rt_mutex_fastlock' from incompatible pointer
type [-Werror=incompatible-pointer-types]
  rt_mutex_fastlock(lock, TASK_UNINTERRUPTIBLE, rt_mutex_slowlock);
                                                ^~~~~~~~~~~~~~~~~
/rnd/yocto/nativeos/build/tmp/work-shared/congatec/kernel-source/kernel/locking/rtmutex.c:1935:1:
note: expected 'struct ww_acquire_ctx *' but argument is of type 'int
(*)(struct rt_mutex *, int,  struct hrtimer_sleeper *, enum
rtmutex_chainwalk,  struct ww_acquire_ctx *)'
 rt_mutex_fastlock(struct rt_mutex *lock, int state,
 ^~~~~~~~~~~~~~~~~
/rnd/yocto/nativeos/build/tmp/work-shared/congatec/kernel-source/kernel/locking/rtmutex.c:2044:2:
error: too few arguments to function 'rt_mutex_fastlock'
  rt_mutex_fastlock(lock, TASK_UNINTERRUPTIBLE, rt_mutex_slowlock);
  ^~~~~~~~~~~~~~~~~
/rnd/yocto/nativeos/build/tmp/work-shared/congatec/kernel-source/kernel/locking/rtmutex.c:1935:1:
note: declared here
 rt_mutex_fastlock(struct rt_mutex *lock, int state,
 ^~~~~~~~~~~~~~~~~
/rnd/yocto/nativeos/build/tmp/work-shared/congatec/kernel-source/kernel/locking/rtmutex.c:
In function 'rt_mutex_lock':
/rnd/yocto/nativeos/build/tmp/work-shared/congatec/kernel-source/kernel/locking/rtmutex.c:2069:2:
error: too many arguments to function 'rt_mutex_lock_state'
  rt_mutex_lock_state(lock, TASK_UNINTERRUPTIBLE, 0);
  ^~~~~~~~~~~~~~~~~~~
/rnd/yocto/nativeos/build/tmp/work-shared/congatec/kernel-source/kernel/locking/rtmutex.c:2028:20:
note: declared here
 static int __sched rt_mutex_lock_state(struct rt_mutex *lock, int state)
```

Is there any change that the latest rt44 patches are nor applied?

Thanks!
Dimitris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20181010/a5e5ae52/attachment.html>


More information about the yocto mailing list