LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-22-2005, 05:45 PM   #1
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Rep: Reputation: 35
Kernel compiling problem, connected with jiffies.h


Hello.

I'am compiling linux kernel 2.6.10 with 2.6.10-ac12 patch. I've configured it and so on. As i'm trying to compile it with make bzImage command, i get this error message:

Code:
  CHK     include/linux/version.h
  CC      arch/i386/kernel/asm-offsets.s
In file included from include/linux/sched.h:12,
                 from arch/i386/kernel/asm-offsets.c:7:
include/linux/jiffies.h:42:3: #error You lose.
In file included from include/linux/sched.h:12,
                 from arch/i386/kernel/asm-offsets.c:7:
include/linux/jiffies.h: In function `timespec_to_jiffies':
include/linux/jiffies.h:305: error: `SHIFT_HZ' undeclared (first use in this function)
include/linux/jiffies.h:305: error: (Each undeclared identifier is reported only once
include/linux/jiffies.h:305: error: for each function it appears in.)
include/linux/jiffies.h: In function `timeval_to_jiffies':
include/linux/jiffies.h:344: error: `SHIFT_HZ' undeclared (first use in this function)
include/linux/jiffies.h: In function `jiffies_to_clock_t':
include/linux/jiffies.h:367: warning: division by zero
make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1
make: *** [arch/i386/kernel/asm-offsets.s] Error 2
Andy ideas what's wrong and how to solve the problem?

I'm compiling the kernel with this patch, because i need ITE IT8212 raid driver support.
 
Old 02-22-2005, 06:17 PM   #2
zWaR
Member
 
Registered: Dec 2003
Distribution: Slackware, Alpine Linux, Ubuntu, Debian
Posts: 219

Original Poster
Rep: Reputation: 35
I tried a little bit of this an a little bit of that. I found out, that my problem was in undefined HZ, which had to be defined in /usr/src/linux/include/linux/asm/param.h. I took a look at the code there and changed the line with define HZ (i commented previous value in and replaced it with 100):

Code:
#ifdef __KERNEL__
# define HZ		100 /*(CONFIG_X86_HZ)*/
# define USER_HZ	100		/* .. some user interfaces are in "ticks" */
# define CLOCKS_PER_SEC		(USER_HZ)	/* like times() */
#endif
Does somebody know which value does CONFIG_X86_HZ take here?
 
Old 03-01-2006, 05:30 PM   #3
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
When configuring your kernel, there is 'Timer frequency' option
under 'Processor type and features' where you can select
100, 250, or 1000, or as you discovered, you can edit param.h
by hand. For x86 it was 100 by default in 2.2 and 2.4 kernels,
but since recently it has been easier to change. I'm looking
at the 2.6.15.x, so it may not be exactly the same in your 2.6.10.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
boot problem with USB connected (kernel 2.6.12.5) raska Slackware 4 08-18-2005 11:32 AM
problem compiling kernel 2.6.7 tjb Slackware 21 08-10-2004 05:05 AM
Problem compiling 2.4.22 kernel Gaweph Red Hat 2 03-13-2004 09:47 AM
How jiffies get updated? iikent Linux - Newbie 3 03-13-2004 08:36 AM
kernel 2.6.1 compiling problem roaminshine Linux - Newbie 3 01-27-2004 04:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:33 AM.

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