Recently, the IGB compiler driver found this problem:
zacha@Superman:~/igb/igb-5.7.2/src$ make
#@+ echo "*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but" ; echo "*** the signing key cannot be found. Module signing has been" ; echo "*** disabled for this build." ; make ccflags-y="" -C "/lib/modules/4.15.0-142-generic/build" CONFIG_IGB=m CONFIG_MODULE_SIG=n CONFIG_MODULE_SIG_ALL= M="/home/zacha/igb/igb-5.7.2/src" modules
make -C /home/zacha/yulong810/kernel M=/home/zacha/igb/igb-5.7.2/src CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm
make[1]: Entering directory '/home/zacha/yulong810/kernel'
CC [M] /home/zacha/igb/igb-5.7.2/src/igb_main.o
/home/zacha/igb/igb-5.7.2/src/igb_main.c: In function ‘igb_get_os_driver_version’:
/home/zacha/igb/igb-5.7.2/src/igb_main.c:10044:7: error: implicit declaration of function ‘isdigit’ [-Werror=implicit-function-declaration]
if(!isdigit(*c) && *c != '.')
^~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:303: recipe for target '/home/zacha/igb/igb-5.7.2/src/igb_main.o' failed
make[2]: *** [/home/zacha/igb/igb-5.7.2/src/igb_main.o] Error 1
Makefile:1519: recipe for target '_module_/home/zacha/igb/igb-5.7.2/src' failed
make[1]: *** [_module_/home/zacha/igb/igb-5.7.2/src] Error 2
make[1]: Leaving directory '/home/zacha/yulong810/kernel'
Makefile:88: recipe for target 'default' failed
make: *** [default] Error 2
There are also solutions online:
https://github.com/geerlingguy/raspberry-pi-pcie-devices/issues/3
Solution:
Add #include <linux/ctype.h> inigb)main.c
then compile and generate IGB.ko
zacha@Superman:~/igb/igb-5.7.2/src$ make
#@+ echo "*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but" ; echo "*** the signing key cannot be found. Module signing has been" ; echo "*** disabled for this build." ; make ccflags-y="" -C "/lib/modules/4.15.0-142-generic/build" CONFIG_IGB=m CONFIG_MODULE_SIG=n CONFIG_MODULE_SIG_ALL= M="/home/zacha/igb/igb-5.7.2/src" modules
make -C /home/zacha/yulong810/kernel M=/home/zacha/igb/igb-5.7.2/src CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm
make[1]: Entering directory '/home/zacha/yulong810/kernel'
CC [M] /home/zacha/igb/igb-5.7.2/src/igb_main.o
CC [M] /home/zacha/igb/igb-5.7.2/src/e1000_api.o
CC [M] /home/zacha/igb/igb-5.7.2/src/igb_ethtool.o
CC [M] /home/zacha/igb/igb-5.7.2/src/igb_hwmon.o
CC [M] /home/zacha/igb/igb-5.7.2/src/e1000_mbx.o
CC [M] /home/zacha/igb/igb-5.7.2/src/e1000_mac.o
CC [M] /home/zacha/igb/igb-5.7.2/src/e1000_manage.o
CC [M] /home/zacha/igb/igb-5.7.2/src/e1000_nvm.o
CC [M] /home/zacha/igb/igb-5.7.2/src/igb_param.o
CC [M] /home/zacha/igb/igb-5.7.2/src/e1000_phy.o
CC [M] /home/zacha/igb/igb-5.7.2/src/igb_procfs.o
CC [M] /home/zacha/igb/igb-5.7.2/src/igb_vmdq.o
CC [M] /home/zacha/igb/igb-5.7.2/src/e1000_82575.o
CC [M] /home/zacha/igb/igb-5.7.2/src/e1000_i210.o
CC [M] /home/zacha/igb/igb-5.7.2/src/igb_debugfs.o
CC [M] /home/zacha/igb/igb-5.7.2/src/igb_ptp.o
CC [M] /home/zacha/igb/igb-5.7.2/src/kcompat.o
LD [M] /home/zacha/igb/igb-5.7.2/src/igb.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/zacha/igb/igb-5.7.2/src/igb.mod.o
LD [M] /home/zacha/igb/igb-5.7.2/src/igb.ko
make[1]: Leaving directory '/home/zacha/yulong810/kernel'
Read More:
- [Solved] DPDK Error: insmod: ERROR: could not insert module igb_uio.ko: Invalid parameters
- [Solved] .\main.go:3:6: missing function body .\main.go:4:1: syntax error: unexpected semicolon or newline be
- C Language error: two or more data types in declaration specifiers
- [Solved] Android Studio Compile Error: Invalid main APK outputs : EarlySyncBuildOutput
- [Solved] error C4996: QString::SkipEmptyParts declaration has been rejected
- bazel Compile Error: absl/base/policy_checks.h:79:2: error: #error “C++ versions less than C++14 are not supported.”
- [Solved] Error: error C2601: ‘b‘ : local function definitions are illegal error C2063: ‘b‘ : not a function
- [Solved] C++ Compile Error: prerequisites are different [How to Solve]
- [Solved] C++ Compile: error LNK2019: unresolved external “XX“
- Vue+TS main.ts error: unused expression, expected an assignment or function call
- C++ Use of deleted function error
- [Solved] AS Run main() Error: Could not create task ‘:app:CreateOperatorDemo.main()‘
- rsync error: error starting client-server protocol (code 5) at main.c(1648) [Receiver=3.1.2]
- C++ clang Compile Error: error: expected unqualified-id
- [Solved] C + + compile Error: error: default argument given for parameter 3
- C++ Compile Error: error: invalid conversion from ‘void*‘ to ‘char*‘ [-fpermissive]
- Visual Studio 2012 error C4996: ‘scanf’: This function or variable may be unsafe.
- [Solved] Software Compile Error: xdo.c:29:34: fatal error: X11/extensions/XTest.h:
- ORB-SLAM3 Compile Error: recipe for target ‘CMakeFiles/ORB_SLAM3.dir/src/LocalMapping.cc.o‘ failed
- [Solved] TS Error: Could not find a declaration file for module