LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-10-2009, 08:58 PM   #1
leptom
LQ Newbie
 
Registered: Feb 2009
Location: La Rioja - Spain
Distribution: Slackware
Posts: 5

Rep: Reputation: 0
errors building kernel 2.6.29-1 in slackware-current about not defined BITS_PER_LONG


Hi,
I'm using slackware-current. I follow change log at slackware-current and then update my system. In the last update I changed to the latest kernel (2.6.29-1) and works very well but when I tried to recompile came the problems:

https://gist.github.com/a7bf5fbe1d47eaf3198c

Before I was using kernel 2.6.27.7(compiled by me) because 2.6.28 didn't works with my sound card (but I could compile it too without problems).

I have installed all packages about kernel*.tgz

Any pointer to solve it?

Thanks

NOTE: I wrote a link because there're too much error lines

Last edited by leptom; 04-11-2009 at 06:11 AM.
 
Old 04-11-2009, 07:33 AM   #2
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
Have you changed anything in the sources, or are you just recompiling with a different CONFIG?

I compiled the 26.6.29.1 kernel w/o problems yesterday.
 
Old 04-11-2009, 04:57 PM   #3
leptom
LQ Newbie
 
Registered: Feb 2009
Location: La Rioja - Spain
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by niels.horn View Post
Have you changed anything in the sources, or are you just recompiling with a different CONFIG?

I compiled the 26.6.29.1 kernel w/o problems yesterday.
I tried to recompile with different CONFIG and with the original CONFIG.
I'm afraid that something in my include dir is wrong :-S
 
Old 04-11-2009, 05:39 PM   #4
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
Quote:
Originally Posted by leptom View Post
I'm afraid that something in my include dir is wrong :-S
Surely a possibility. BITS_PER_LONG is set in the include files according to the architecture and HIGHMEM settings if I remember correctly.

I presume - as you compiled kernels before - that you followed the usual steps (there are several guides here on this forum).

Are you compiling from /usr/src/linux or any other path?
 
Old 04-11-2009, 06:38 PM   #5
leptom
LQ Newbie
 
Registered: Feb 2009
Location: La Rioja - Spain
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by niels.horn View Post
Surely a possibility. BITS_PER_LONG is set in the include files according to the architecture and HIGHMEM settings if I remember correctly.

I presume - as you compiled kernels before - that you followed the usual steps (there are several guides here on this forum).

Are you compiling from /usr/src/linux or any other path?
I'm compiling from /usr/src/linux.

I do:
- make menuconfig
- modify kernel options
- make and strange error

(the same steps that others times)

I'm dowloading the kernel from kernel.org, I'll tell you.
========================

I removed kernel headers and sources, I reinstalled it again.Now it's working ok!

Thanks for your time Niels

Last edited by leptom; 04-11-2009 at 07:25 PM. Reason: Solved
 
Old 04-11-2009, 07:25 PM   #6
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
Quote:
Originally Posted by leptom View Post
I do:
- make menuconfig
- modify kernel options
- make and strange error
Did you do "make mrproper" or "make clean" before these three steps?
- "make clean" cleans most from previous compilations, but leaves the .config file
- "make mrproper" cleans some more, including the .config file (so save it before)

Not sure if this will solve it, but it might be worth a try.
 
Old 04-11-2009, 07:32 PM   #7
leptom
LQ Newbie
 
Registered: Feb 2009
Location: La Rioja - Spain
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by niels.horn View Post
Did you do "make mrproper" or "make clean" before these three steps?
- "make clean" cleans most from previous compilations, but leaves the .config file
- "make mrproper" cleans some more, including the .config file (so save it before)

Not sure if this will solve it, but it might be worth a try.
First time I didn't a make clean because It was recently installed. Others I did make clean and make mrproper.

You don't worry about it, removing and reinstalling again kernel sources and headers solved the problem.

Thanks :-)
 
  


Reply

Tags
compile, kernel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How can I install a slackware-current kernel to slackware 11? bijit1709 Slackware 11 06-13-2007 03:24 PM
kobject errors with slackware-current KStorm Slackware 2 05-08-2007 07:45 PM
slackware-current + kernel 2.6.17.7 slackamp Slackware 1 07-29-2006 02:34 PM
slackware-current kernel question CrEsPo Slackware 8 04-14-2006 06:03 PM
kernel 2.6 and slackware-current jplev22 Slackware 1 01-31-2004 01:36 PM


All times are GMT -5. The time now is 09:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration