Discussion:
[etherlab-dev] Cannot compile for kernel 4.14
Joye Laurent
2018-05-02 05:33:32 UTC
Permalink
Hello,

I'm using the code from etherlabmaster (default branch) + your own
patches (Patchset 20171108 based on default branch 33b922ec1871).

I'm trying to compile a kernel 4.14 with rtmutex enabled at configure
time.
The compilation fails because an include directive is missing. If I add,
in the file master/locks.h, the line "include <linux/rtmutex>" right
after the line "#ifdef EC_USE_RTMUTEX", it works.

Thanks to consider this note

Laurent Joye
HaslerRail AG
Gavin Lambert
2018-06-22 00:32:33 UTC
Permalink
I'm using the code from etherlabmaster (default branch) + your own patches
(Patchset 20171108 based on default branch 33b922ec1871).
I'm trying to compile a kernel 4.14 with rtmutex enabled at configure time.
The compilation fails because an include directive is missing. If I add, in the
file master/locks.h, the line "include <linux/rtmutex>" right after the line
"#ifdef EC_USE_RTMUTEX", it works.
My apologies for the late reply. I've tried this myself (without the extra #include) and it compiles ok.

Are you using an -rt patched kernel? There is an assumption that if you want rtmutexes you should be using an -rt patched kernel as well, as otherwise they would provide less benefit.
Joye Laurent
2018-06-22 09:05:28 UTC
Permalink
Many thanks,
I don't use a real time kernel. So I disabled the rtmutex. All is now
fine
Post by Gavin Lambert
I'm using the code from etherlabmaster (default branch) + your own patches
(Patchset 20171108 based on default branch 33b922ec1871).
I'm trying to compile a kernel 4.14 with rtmutex enabled at configure time.
The compilation fails because an include directive is missing. If I add, in the
file master/locks.h, the line "include <linux/rtmutex>" right after the line
"#ifdef EC_USE_RTMUTEX", it works.
My apologies for the late reply. I've tried this myself (without the extra #include) and it compiles ok.
Are you using an -rt patched kernel? There is an assumption that if you want rtmutexes you should be using an -rt patched kernel as well, as otherwise they would provide less benefit.
--
________________________________________________________________________


Laurent Joye
SW Developer



Direct: +41 31 990 71 89 HaslerRail AG
Fax: +41 31 990 72 22 Freiburgstrasse 251

CH-3018 Bern

***@haslerrail.com www.haslerrail.com
Continue reading on narkive:
Loading...