tags: Linux
Recently, when compiling a new rk sdk, an error was reported when compiling the kernel
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
TIMEC kernel/timeconst.h
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.
/home/liuxueneng/workCode/rk3066/kernel/kernel/Makefile:141: recipe for target 'kernel/timeconst.h' failed
make[1]: *** [kernel/timeconst.h] Error 255
Makefile:973: recipe for target 'kernel' failed
make: *** [kernel] Error 2
Display error
Can’t use ‘defined(@array)’ (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373
has prompted where is the delicate error message, open timeconst.pl to see (under the kerner directory)
372 @val = @{$canned_values{$hz}};
373 if (!defined(@val)) {
374 @val = compute_values($hz);
375 }
376 output($hz, @val);
Change to the following to compile
372 @val = @{$canned_values{$hz}};
373 if (!@val) {
374 @val = compute_values($hz);
375 }
376 output($hz, @val);
https://www.cnblogs.com/tid-think/p/10929435.html
I checked the updates and found that one of them was that the Perl version was upgraded to v5.22.1. Then I checked the official Perl documentation and found that the official website has a bug, and the version has defined (@array) removed. Up. You can directly use the array to determine non-empty.
Latex compile error:! Misplaced \ omit. Welcome to MarkDown Editor Problem Description Welcome to MarkDown Editor Today, Latex compiled this error, I have seen it for a long time, it turned out to be ...
The following error message occurred while compiling the embedded Linux kernel: At first, I was confused, and after carefully reading the error, I deleted 373 lines in the kernel/timeconst.pl file. if...
The following problems occur when compiling sebek with centos6.9: The main reason is that the kernel installation package is not installed. You can check whether there are kernel development files in ...
Error one: solution: I changed in arch/x86/vdso/Makefile to original: https://stackoverflow.com/questions/22662906/linux-kernel-compile-error-elf-x86-64-missing Error two: Solution: (modifiedkern...
Articles directory 1. Report an error message 2. Solution 1. Report an error message Compile the Linux kernel, execute Command, start the formal compilation of the Linux kernel, report the following e...
When I was writing a React project, I found that I used too much.if elseSo when I refactored the code, I tried to delete a lot ofif elseFinally, I found that the code became simpler and more readable....
Article Directory 1. Unzip the kernel file 2. Modify the system call table 3. Modify the system call number file 4. Define your own system call (1) Add system call statement (2) Add system function ca...
I. Ordinary compilation process Environment variable source ../../Petalinx2019_1/settings.sh 2. Configuration make ARCH=arm xilinx_zynq_defconfig 3. Customer custom configuration make ARCH=arm menucon...
1. Add memory to server1 as 2048, df to see if it is greater than 10G, greater than can be compiled 2. Download two installation packages: 3. Install ker* repbuild 4. Enter the directory to compile, t...
Take the character device driver as an example: 1. First copy the drive source code into the Linux source directory under / drivers / char 2, modify the Kconfig under the char directory Add the follow...