Closed AOEUPL-PHE closed 6 years ago
I'm just using the official kernel version now. Didn't realize it was in 4.19
AOEUPL-PHE notifications@github.com writes:
Closed #110.
FWIW, hopefully out-of-tree compiles are fixed properly in master now...
Tried and it works with no workarounds now. Thanks!
BTW, is this version worse/better/the same as the one in the 4.19 kernel?
Cool. It should be identical - if you're updating your kernel anyway, just use the upstream version. This repo is for old kernels (and potentially for experiments in the future, but none yet)
Using master branch ddf4c95145. Fresh install of Ubuntu 18.04 server with kernel headers installed, with
build-essentials
installed.First Error: Kernel does not support PIC mode.
make
First Error Workaround
Added
EXTRA_CFLAGS += $(CFLAGS_EXTRA) -fno-pie
to the makefile under theVERSION
line.Second Error
make
Second Error Workaround
Changed my custom
EXTRA_CFLAGS
line to readThird error
make
Third error workaround
ln -s /usr/src/linux-headers-4.15.0-38-generic/include/asm-generic /usr/src/linux-headers-4.15.0-38-generic/include/asm
I don't really know what I'm doing here, I think there is a more fundamental problem that I'm missing, and it may be related to how ubuntu handles kernel headers.
Anyway. Let's continue.
Fourth Error
What next?
I could keep trying workarounds but I think something is wrong. This is a new ubuntu 18.04 server, so I thought the config would be pretty standard. Any ideas?
More random debugging info
dpkg -l "*headers*"
uname -a
Linux myhost 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux