Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Compilation issue Kernel 5.4 #18

Open
Bouliere83 opened this issue Jun 24, 2020 · 8 comments
Open

Compilation issue Kernel 5.4 #18

Bouliere83 opened this issue Jun 24, 2020 · 8 comments

Comments

@Bouliere83
Copy link

Hi,

I was using KTF on a project with a Linux Kernel 5.3 (Ubuntu 18.04), but after passing on 5.4 (Ubuntu 20.04), the KTF Framework cannot compile.
From what i saw it is due to this patch :
https://github.com/torvalds/linux/commit/9adeaa226988b97bc15928e12f40a9863134467c
The memcg_cache_params is not define anymore in a public header, instead is it located in a internal header.
Do you have any plans to fix it?

Thanks you.

@Yao-J
Copy link

Yao-J commented Aug 7, 2020

Yes, i met same error on Kernel 5.4 , so is it expected when can fix it ?

@alan-maguire
Copy link
Member

The fix is simple but needs to be pushed; I'm working on getting that done. Hopefully should be sometime over the next few days.

@Bouliere83
Copy link
Author

Ok that some good news, thank you.

@alan-maguire
Copy link
Member

finally got write access; I've pushed a bunch of changes that Knut and I authored that should hopefully resolve various compilation issues; let me know if you run into any trouble. thanks!

@Yao-J
Copy link

Yao-J commented Aug 13, 2020

Hi, alan-maguire
Could you show which commit can fix this issue ?
Actually, this issue is related to struct memcg_cache_params, but i can't find related fix in the commit log. The latest fix is "ktf: replace struct timespec with struct timespec64"

@knuto
Copy link
Contributor

knuto commented Aug 13, 2020

Take a look at this commit

@Yao-J
Copy link

Yao-J commented Aug 17, 2020

Hi,
new commit can fix this issue, but it will prompt "error: unknown warning option '-Wno-packed-bitfield-compat'" in lib/Makefile
This option available on kernel 4.14 , wonder why it can't pass on 5.4 ?

@knuto
Copy link
Contributor

knuto commented Aug 19, 2020

Are you perhaps not using gcc? The option seems present still? Anyway you can safely just remove the option from Makefile.am as KTF does not use bitfields, this is just a remains from the predecessor of KTF and should have been removed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants