kernel version: 2.6.35.14
I am able to build the kernel on one of my machines here are some specs on that machine:
Ubuntu: v14.04.5
Perl: v5.18.2
GCC: v4.8.4
When I go to build this same kernel on a machine with the following specs:
Ubuntu: v16.04.5
Perl: v5.22.1
GCC: v8.1.0
The build errors:
Code:
make -f scripts/Makefile.build obj=fs
make -f scripts/Makefile.build obj=ipc
perl kernel/timeconst.pl 100 > kernel/timeconst.h
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.
/home/rob/sandbox/branches/CODEC-branch/Platform/kernel-2.6.35.14/kernel/Makefile:138: recipe for target 'kernel/timeconst.h' failed
make[1]: *** [kernel/timeconst.h] Error 255
Makefile:892: recipe for target 'kernel' failed
make: *** [kernel] Error 2
make: *** Waiting for unfinished jobs....
make -f scripts/Makefile.build obj=fs/devpts
make -f scripts/Makefile.build obj=fs/ext2
I tried downloading perlbrew and building with v5.18.2 while using GCC v4.8.4 and I got the exact same error. So if the version of gcc I am using and version of Perl I am using isn't the problem then what might be the problem?
Snipit starting @ line 373:
Code:
@val = @{$canned_values{$hz}};
if (!defined(@val)) {
@val = compute_values($hz);
}
output($hz, @val);
I would omit the defined but I dont know what its there for.
Note: bc is already installed