Open mibcat opened 5 years ago
Thanks pointing that out. Yes, makefile was missing. Brought it back.
Thanks for fixing.
But the build now stops due to a non supported compiler option:
gcc: error: unrecognized command line option ‘-fstack-protector-strong’
I've found this hint in an other thread:
-fstack-protector-strong was merged into GCC version 4.9; 4.8.x does not support it. upgrade GCC or use -fstack-protector-all or -fstack-protector.
Rasbian uses an old gcc version:
gcc --version gcc (Raspbian 4.7.3-11+rpi1) 4.7.3 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Don't know if this is the right approach, but I found the compiler flag settings in the Makefile of the used kernel header sources and set them to stack-protector-all
in file /usr/src/linux-headers-4.19.42-v7+/Makefile
replace
stackp-flags-$(CONFIG_STACKPROTECTOR_STRONG) := -fstack-protector-strong
by
stackp-flags-$(CONFIG_STACKPROTECTOR_STRONG) := -fstack-protector-all
Now the build runs fine and the driver is working ...
I'm trying to install your lcdi2c driver on a raspberry pi 3b+ but the installation fails at
sudo dkms build -m lcdi2c -v 1.0.1
Logfile: cat /var/lib/dkms/lcdi2c/1.0.1/build/make.log
System info
lsb_release -a
uname --all
apt list --installed |grep headers
Any guesses whats going wrong here ?
Thanks, Michael.