LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-11-2018, 02:11 PM   #1
vysero
Member
 
Registered: May 2018
Posts: 137

Rep: Reputation: Disabled
Failing to build an older kernel on a newer system.


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

Last edited by vysero; 12-11-2018 at 02:30 PM.
 
Old 12-11-2018, 02:24 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,349

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
The toolchain is: GCC; Kernel headers (installed in /usr/include); libc (Glibc).

There have been meaningful changes to kernel headers since 2.6, probably what the error 2 was about.
You're on your own with error 255 :-o.
 
Old 12-11-2018, 02:56 PM   #3
vysero
Member
 
Registered: May 2018
Posts: 137

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
The toolchain is: GCC; Kernel headers (installed in /usr/include); libc (Glibc).

There have been meaningful changes to kernel headers since 2.6, probably what the error 2 was about.
You're on your own with error 255 :-o.
Yes, really wish Linux would cross-check their kernel updates to be sure the old versions can at least compile inside of the new ones.
 
Old 12-11-2018, 03:57 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
255 is a perl file issue.
 
Old 12-11-2018, 04:44 PM   #5
vysero
Member
 
Registered: May 2018
Posts: 137

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
255 is a perl file issue.
Yeah based on what I have seen the only way to deal with it is to drop back to Ubuntu 14x. I am going to go ahead and close this thread.
 
Old 12-13-2018, 06:39 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,349

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Quote:
Yes, really wish Linux would cross-check their kernel updates to be sure the old versions can at least compile inside of the new ones.
I don't stay abreast of kernel stuff, but there was a reorganisation of header directories and a dropping of kernel firmware that I noticed. The headers are usually fairly forgiving, although my latest set spout logspam of warnings. The kernel firmware dropped as 'defunct' stuff that WASN'T defunct but lying around.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Install older kernel module into newer kernel - no symbol version for module bayoulinux Linux - Kernel 4 10-26-2011 04:32 AM
building older version of kernel on newer version machine chakradhar.nannuri Linux - Newbie 4 01-25-2011 09:46 PM
Newer applications on older kernel? tazagul Debian 3 05-21-2006 03:56 PM
Compiling an older kernel on a newer system J_Szucs Linux - General 7 05-30-2005 01:49 AM
Newer packages on an older system? Pathian Slackware 1 07-07-2004 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration