LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Errors when compiling kernel (http://www.linuxquestions.org/questions/slackware-14/errors-when-compiling-kernel-313070/)

bornhj 03-19-2005 07:49 PM

Nope, it's "X Windows" ;) In Slack 10.1, I believe that X.Org is used. So, best title for that section is either "X Windows" or "X.org" or possibly "GUI"

I get one line run out of the table, and thats part of a new rc.local, so it doesn't matter to me. (Firefox 1.0.1, WinXP)

BenneJezzerette 03-21-2005 04:59 PM

Ok took a long long read and has a major question. I have this system running like a top. CUPs to print, sound working display to 1280x1024 nVidia GeForce 2 MX 400 no nVidia Drivers. Slackware 10.1 using Reiserjfs as the format for my 30gb drive and also the jfs.s bizimage as it seems to be the only one that works like a champ here. Tried many other formats but none seemed to do what they should and the reiserjfs seems to be the pref for this system. Will the new Kernal understand this or hose my system and make my drive a 528MB drive? I would dl ths and do all that is said but it makes me concerned that since I am using this format it may not like the jfs.s image I am using. Any help, would be much appreciated.

BenneJezzerette 04-11-2005 12:57 PM

Quote:

Originally posted by piete
I thought it'd be appropriate to add my own collection of bits & pieces I've learnt here. Forgive me if that's not the intention, I'm new here ;)

www.kaear.co.uk

The large section on the left titled "Linux Notes" contains a few marginally coherent articles on Slack, that if one person finds useful, will have been worth while =)

To start as we mean to go on ... let's see if I can't help out!

To BenneJezzerette:

First of all, forgive me if I misunderstand your question.

"Will the new Kernal understand this [that I am using ReiserFS] or hose my system and make my drive a 528MB drive?"

When you build a new kernel, the rest of the system is unaffected. At worst, the new kernel doesn't work and you'll have to use a boot disk to try again ... not a problem, merely a mild inconvenience.



Keeps the old Kernel and does not remove for Error reasons posted in the readme. The issue is the few modules that are made, are I guess still in the system, this causes some errors.

Quote:

Originally posted by piete
When you build a new kernel, be sure to include the ReiserFS partition support and nothing should change when you reboot using the new kernel.


I have found all the reiserfs settings and makes it a part of the kernel, the other items are modules, since they are not actually a full part of the system.
My Main Modules are

ext2
ext3
jfs
xfs
alsa
oss

These are all I want as modules.

Quote:

Originally posted by piete
I always keep lilo.conf set up like this:

Code:

# Linux bootable partition config begins

# This is the default kernel that comes with Slackware.  Handy if everything else fails.
image = /boot/vmlinuz-2.4.26
root = /dev/hda2
label = DefaultSlack
read-only

# Kernel under test.  ie:  The last kernel that was built & installed.
# Only valid for 2.6's "make install"
image = /boot/vmlinuz
root = /dev/hda2
label = KernelUT
read-only

# The old kernel that the above replaced, just in case.
# Again, only valid with 2.6 "make install"
image = /boot/vmlinz.old
root = /dev/hda2
label = OldKernel
read-only

I suspect you will have to make certain that "make install" is copying and moving the files around your system correctly. You'll find the "make install" script for 2.6 here: /usr/src/linux/arch/i386/boot/install.sh



Is this in the /usr/src like you state? or the /usr/src/linux-2.6.11.X ?? This is where I get lost terribly. I thiink it's just me being upset after I get several errors on the complie. I have all the most recent updates, slapt-get and using all the -current slackware updates. PHP 5.05 and also X11 6.2.8, all from the slackware-current.

Quote:

Originally posted by piete
I suspect that was all rather too much, but the long and the short of making new kernels is: always make sure your old kernel is available to boot from! You'll find my contact details on www.kaear.co.uk if you wanted a simpler set of instructions - or start a new thread, I'd be happy to help!

- Piete.

Thank you very much for this response. I have tried several Kernels from 2.4.30 to 2.6.11.7 (current) and my default is 2.4.29. Each time I do this, I go through and adjust for the resierfs and also no power management, thta is one of the crashes. The next part is in another area of the kernel. Oddly it only happens inthe make menuconfig, not inthe xconfig, and I will try the gconfig next.

I successfully made a good build in the Linux 2.6.11.7 recently but somehow it did not make the 2.6.11.7 links correctly, and this was with the xconfig. I have found the right NIC settings finally. I am still working out some details on the errors and why the are there. So far it seems that it builds it correctly, with

Make menuconfig
Make
Make Install
Make modules_instlall

Everything goes just right, excepting if I forget to disable things I do not have enabled on the hardware, it crashes it. There is only one area that I have not been able to get to sstop erroring.

Here, maybe you can tell me what or where this is.

errors in intermodule.o
Kernel Intermodule 179 Intermodule Register - is depreciated - declared at kernel intermodule.c 38
Kernel Intermodule 180 Intermodule UnRegister - is depreciated - declared at kernel intermodule.c 79
Kernel Intermodule 183 Intermodule Put - is depreciated - declared at kernel intermodule.c 160

I have not beenable to find anything regarding these errors, and everytime I get these errors, the whole system crashes.

Hopes you can make heads or tails of this. I tried to detail it better here.

shilo 04-12-2005 04:23 PM

piete-

Nice site. I really like the layout.

BenneJezzerette-

Quote:

Slackware 10.1 using Reiserjfs as the format for my 30gb drive and also the jfs.s bizimage as it seems to be the only one that works like a champ here.
This seems very odd. You are using Reiser for your filesystem. I believe that is supported by bare.i. Possibly there is some other hardware that is causing the issue. Using "diff" on the jfs kernel config and the bare.i kernel config will help you out a bunch, since it must be one of those differences that makes jfs work for you. You'll need to know what is needed when you compile your own kernel.

Quote:

it makes me concerned that since I am using this format it may not like the jfs.s image I am using.
You understand that the "jfs.s image" you asre using is a kernel? When you install your own kernel, you will not be using the "jfs.s image" anymore. There can be no conflict if it is not used.

Quote:

I always keep lilo.conf set up like this:


code:# Linux bootable partition config begins

# This is the default kernel that comes with Slackware. Handy if everything else fails.
image = /boot/vmlinuz-2.4.26
root = /dev/hda2
label = DefaultSlack
read-only

# Kernel under test. ie: The last kernel that was built & installed.
# Only valid for 2.6's "make install"
image = /boot/vmlinuz
root = /dev/hda2
label = KernelUT
read-only

# The old kernel that the above replaced, just in case.
# Again, only valid with 2.6 "make install"
image = /boot/vmlinz.old
root = /dev/hda2
label = OldKernel
read-only

The onlything that I can add to this is that I like to make sure that /etc/lilo.config is set to prompt (otherwise, it's harder to choose the backup kernels) and I would switch the order of entries. The only reason is that the first entry is the default selection. I prefer to make my newest entry the default so I can fire up the computer unattended and still use the newest kernel. If the newest kernel is busted, you will be there anyway, so you can select one of the backups. That's just personal preference, though.

BenneJezzerette 04-12-2005 05:22 PM

Quote:

Originally posted by shilo
piete-

Nice site. I really like the layout.

BenneJezzerette-



This seems very odd. You are using Reiser for your filesystem. I believe that is supported by bare.i. Possibly there is some other hardware that is causing the issue. Using "diff" on the jfs kernel config and the bare.i kernel config will help you out a bunch, since it must be one of those differences that makes jfs work for you. You'll need to know what is needed when you compile your own kernel.



You understand that the "jfs.s image" you asre using is a kernel? When you install your own kernel, you will not be using the "jfs.s image" anymore. There can be no conflict if it is not used.



The onlything that I can add to this is that I like to make sure that /etc/lilo.config is set to prompt (otherwise, it's harder to choose the backup kernels) and I would switch the order of entries. The only reason is that the first entry is the default selection. I prefer to make my newest entry the default so I can fire up the computer unattended and still use the newest kernel. If the newest kernel is busted, you will be there anyway, so you can select one of the backups. That's just personal preference, though.

Can you help with this then???

Kernel Intermodule 179 Intermodule Register is depreciated Declared at Kernel Intermodule.c39
Kernel Intermodule 180 Intermodule Un-Register is depreciated Declared at Kernel Intermodule.c79
Kernel Intermodule 183 Intermodule Put is depreciated Declared at Kernel Intermodule.c160

This is the error I get when Icomplle it, this happens on every Kernel from 2.6 to 2.6.11.7, and has never been fixed or answered. I have tried everything to make this go away, and nothing. I am going to do a new make manuconfig and write everything I do and change in it here. Maybe then someone can see what I do wrong, or what I am missing.

shilo 04-12-2005 05:33 PM

Useful tips

Trim quotes.

Copy and paste error messages. Their easier to Google than when you manually type them.

Try this first

Downgrade gcc to the stock 10.1 version.


***EDIT***

You should also make a new thread. Not everyone rteads this thread to see what new problems people are having.

***2ND EDIT***

This is not a problem.

http://marc.free.net.ph/message/2005...7178fd.en.html

BenneJezzerette 04-12-2005 07:42 PM

Kernel Comiple Errors
 
Ok here goes.

Linux 2.6.11.7 Compile information

Make Clean
Make mrproper
make menuconfig

Code Maturity Left alone no changes
General Setup
Append to Kernel, Slackware 2.6.11.7
Changes BSD Support on
kernel .config support on
Lodable Module support no changes
Processor type Sub No changes
Processor Family from P4 to AMD K62
Symmetric Processors off
No other changes
___________________________________________________
Power Managemant ACPI OFF
-Usually get errors.
___________________________________________________
Bus Options No Changes
___________________________________________________
Executeable File Formats ALL On no changes.
___________________________________________________
Device Drivers
--Generic Options
-----Hotplug from Module to Included
___________________________________________________
MTD NO
___________________________________________________
Parallel Ports
--Multi IO yes
--IEEE 1284 Yes
___________________________________________________
PnP no changes
___________________________________________________
Block Devices
-----IO Schedulers OFF (Note this is the first time disablng this)
--Ram Disk Support
___________________________________________________
ATA/ATAPI ----
SCSI emulation
generic ide off
PnP IDE OIn
generic IDE Off
Intel PII Off
VIA82CXX On (has DFI K6BV3+ Rev A+ VT82C586B/82C598MVP CHipset)
--SCSI
Disk support off
All others left unchanged excepting the SCSI Adaptors OFF
_______________________________________________________
Old devices off
_______________________________________________________
Muliti No changes Off
_______________________________________________________
Fussion Off
_______________________________________________________
IEEE 1394 Off Not On system
_______________________________________________________
I20 Off
_______________________________________________________
Networking Support
-Networking Options
--IP Advanced Router On
--IP Tunneling On
--IPv6
---ALL ON
-NetFilter
--IPv6 Limit Match ON Change
-------Mac ON Changed
-------IPv6 Ext Header On Changed
-------Packet Filtering On Changed
--SCPT all On HMAC MD5
Dummy Chaned to Built in
--Ethernet 10/100
---Tulip Family
-----DECchip Tulip DC2114X Enabled Built in (Only one that does not error)
Realtek Changed OFF
GB Networking S210 Off Was Module
______________________________________________________
ISDN Off
______________________________________________________
Character encoding
--Enhanced RTC
--Intel 440 OFF
--i865 OFF
--VIA On
(only changes)
______________________________________________________
I2C
Dallas
Misc all off no changes
______________________________________________________
Multimedia
Video yes all else off
______________________________________________________
Graphic Support
--Support for Frame Buffer Yes
--Vesa Yes
--nVidia Yes (nVidia GeForce 2 MX 400)
No other changes all off
______________________________________________________
Sound, ALL Modules
______________________________________________________
USB Support
USB Printer OFF
Mass Storage OFF
sGlax Off
Cypress OFF
Phidget OFF
IBM PC Netcam Xirlink
_______________________________________________________
MMC / Infinband Off No changes
_______________________________________________________
File System
Modules for
EXT2
EXT3
Reiserfs Built in
No other changes
_______________________________________________________
Profiling, no changes
Kernel
Sec
Chrypt
Lib
All off no changes.

Saved Kernel did not make yet.

Bruce Hill 04-13-2005 12:43 AM

Re: Kernel Comiple Errors
 
Quote:

Originally posted by BenneJezzerette
Ok here goes.

Linux 2.6.11.7 Compile information

Make Clean
Make mrproper
make menuconfig

I didn't read the thread to see why you're posting all this,
but will tell you that your method of CONFIGURING the kernel
is wrong. Linus Torvalds has written a fine little HOW-TO that
you can read at ./linux-2.6.11.7/README that will explain the
proper way to install, configure, and compile a kernel from
source.

I still do not understand why people think it necessary to try
and "reinvent the wheel" when Linus has taken the time to
post The Correct Way (TM) and It Just Works (TM)

BenneJezzerette 04-13-2005 01:33 AM

Re: Re: Kernel Comiple Errors
 
Quote:

Originally posted by Chinaman
I didn't read the thread to see why you're posting all this,
but will tell you that your method of CONFIGURING the kernel
is wrong. Linus Torvalds has written a fine little HOW-TO that
you can read at ./linux-2.6.11.7/README that will explain the
proper way to install, configure, and compile a kernel from
source.

I still do not understand why people think it necessary to try
and "reinvent the wheel" when Linus has taken the time to
post The Correct Way (TM) and It Just Works (TM)

Please note the README is a generic install for this. I have had tons of problems with all of the 2.6.X Linux Kernels and has posted the errors I get and yet no one can tell me what or where they are. Ihave had only one successful working one, but no NIC setup. So that was not even right. I have even done just a base setup and get kernel panic. Can't boot due to some stupid thing like disk format. Iuse Reiserfs and it needs to be setup. Many of the things yousay are in the README are not, it is a 6 page printout and has nothing in it regarding what is what when installing any of the new Linux 2.6.x kernels. If I make it and make module and make install and all that, it hoses my system, I am not setup as a General user, but Custom because that is what works for me. General is for hardware that is mainstream not off the shelf. I buy off the shelf, and build myself. These are the settings I had and they still did not work. One note, the base install would give me about 500 errors due to no SCSI devices installed. No IEE 1394 installed, the Power Management is not setup. So many things would just totally crash the build and then have to re boot wioth disc 2 for emergency boots. Please read the GENERAL installs, they just mention the how too's not the details. This is details so I can get some help in determining wher the heck this 3 line error is.

Bruce Hill 04-13-2005 02:02 AM

BenneJezzerette,

You've got too much here to really talk about. As Shiloh said,
start a new thread.

My point is that Linus tells us how to compile a custom kernel,
and with 2.6.x the steps are:
"make menuconfig" Text based color menus, radiolists & dialogs.
or "make xconfig" X windows (Qt) based configuration tool.
or "make gconfig" X windows (Gtk) based configuration tool.
or "make oldconfig"
"make"
( It is also possible to do "make install" if you have lilo installed to suit the
kernel makefiles, but you may want to check your particular lilo setup first.)
"make modules_install"

BenneJezzerette 04-13-2005 11:45 AM

Quote:

Originally posted by Chinaman
BenneJezzerette,

You've got too much here to really talk about. As Shiloh said,
start a new thread.

My point is that Linus tells us how to compile a custom kernel,
and with 2.6.x the steps are:
"make menuconfig" Text based color menus, radiolists & dialogs.
or "make xconfig" X windows (Qt) based configuration tool.
or "make gconfig" X windows (Gtk) based configuration tool.
or "make oldconfig"
"make"
( It is also possible to do "make install" if you have lilo installed to suit the
kernel makefiles, but you may want to check your particular lilo setup first.)
"make modules_install"

Ok let me try, try to get you to understand. If I do any of those, and just leave the items alone, don't touch the power configuration, or the IEEE1394 settings, or the NETWORK settings then all I get is Kernel Panic. can not load Kernel some other stuff that makes the entire system un usable. Such as last nght. I followed your So dilligent instructions and Boom, no more System and a 528MB Hard Drive. Seems to me I understand more of what i am doing than you. Now the Post was all of what I did not a config file or somehting I could copy and paste, that is a Hand Written and typed in setup that I used make menuconfig, and wrote down all the things I modified, or left default. I understand G X and Make old and all that, what I don't understand is why someone like you is missing the ENTIRE point of, What am I doing wrong on that setup to make 3 errors come up that I have already posted and does not let the system even boot? Seems that no one can even come up with any assemblance of an answer. All my situation is, I do all of the instructions all of you have posted, the thing thta is missed is, what changes or modifications are made to make the compile to, and if Iuse the Hardware I have in the compile, then what is wrong with that? EG: Processor Type, it is default to a Pentium 4 or Pentium Class Machine, I have an AMD K6-2 500 w/ 3D Now! Why would I leave the Processor to a Pentium 4 system, when I don't have one? Any good Technician knows the difference a P4 has to an AMD K6-2. Then there is Symmetrical Processor, it is default to 8, I have one. Why leave it to something I don't have, Raid, I have no Raid System, yet I should leave it on? Why? What is the Sense of having a Raid system when I have one Hard Drive at 30GB and one Hard drive at 4GB? All HDD's in a Raid system have to be of the same configuration, not so widely different. It's the way things are. So if there is anyone that can explain to me why Ishould leave all this on, when I don't have it installed, please tell me.

shilo 04-13-2005 01:11 PM

Quote:

Originally posted by Chinaman
You've got too much here to really talk about. As Shiloh said,
start a new thread.
Quote:

Originally posted by BenneJezzerette
Ok let me try, try to get you to understand.
I think you are the one who is not understanding.

You have a problem with compiling a kernel.

Make a new thread.

BenneJezzerette 04-13-2005 03:02 PM

Quote:

Originally posted by shilo
I think you are the one who is not understanding.

You have a problem with compiling a kernel.

Make a new thread.

Ok if I don't understand then Iam doing it wrong because I followed the instructions here and tht is why Idid it wrong, I have 3 printouts of the instructions, the readme too. I follow them to the letter, and make no changes, to teh actual kernel, then make it, it crashes. Why if my hardware is not what is defauklt in the config, do I want to leave it that way. Read the post, Iam sure no one will answer it, because they can't
there is an wrror and if I am making it, it is because I followed your instructions from here.

Printed and read several tiimes, then took the chance and crash. Tried something a little different, changed the hardware information and got close to working. Read the post carefully because it asks some very important questions, like if I don't have it, why should it be enabled, if it's not there? If there is a device I do not have installed, then shoudl it be enabled even though I don't have it? EG IEE1394, I have no IEEE1394 Adapters or connections of thta type on my system, should it be enabled, even though Idon't have it on the system?

When I do i get kernel panic.

shilo 04-13-2005 05:55 PM

Quote:

Ok if I don't understand then Iam doing it wrong
You are not starting a new thread.

I didn't bother to read past that line. You are of course free to do whatever you want. If you want help, I would recommend that your choice be...

...Start a new thread. It has been said several times. If you don't want to follow the recommendations that others are giving, you are greatly limiting the amount of support you will get.

You want people who come to this thread to see your (as yet non-existant) new thread? Post a link to it.

Reading farther into your thread as I type,

Quote:

I followed the instructions here and tht is why Idid it wrong
Reading various posts that you have made, and considering that you seem to be having an issue with Kernel compiling, I can only comment that it does not appear that you are using the method I outline in this thread for compiling your kernel.

To expand on that, I never use
Code:

make
or
Code:

make install
or
Code:

make bzlilo
or any of the other methods that can be used for compiling a new kernel. Do you? I can only guess. Reading other posts you have made leads me to believe that you don not use
Code:

make bzImage
That is the method that I recommend. You are not following that method I use. Why not...

...start a new thread.

Quote:

Why if my hardware is not what is defauklt in the config, do I want to leave it that way.
What config? Where do those "defaults" come from? They come from somewhere. Here's an exercise for you that you can maybe learn something from. Start a regular X session. Fire up a terminal. If you're not root, become root. cd to the linux source directory. Issue the following command:

Code:

make xconfig
I'm sure you've done that before. Now, the interesting part. switch back to your terminal and read what it says. It pulled in a config file. The vanilla kernel source does not have a config file. The options that you see are a result of the config file that was parsed. If you want to call that default, fine, but you will find that "default" will vary depending on the system that you run this on. Get it? Don't want to go through all the menus making a bunch of wrong choices (which is apparently what you are doing)? Load a different config file.

Quote:

Read the post, Iam sure no one will answer it, because they can't
Wow. I think I just did.

Quote:

there is an wrror and if I am making it, it is because I followed your instructions from here.
Wow. I just went searching on this forum for any post you might have that would give a better idea what you are doing. Nice to see that you DID make another post today.

The first question that comes to mind... does having the bad attitude usually work for you? Blame everyone else. You are the one who has a busted method, and thus, a busted system.

Your problems are your own. You DIDN'T follow the instructions here, or you wouldn't have had to do a fresh install because your 2.6 kernel didn't work. You'd simply boot your 2.4 kernel and try again.

Real simple conclusion to all your ranting. Hope someone helps you. I won't.

BenneJezzerette 04-13-2005 06:37 PM

Shilo:

Yes I did read all the things, everything several posted xconfig, some gconfig and the read me says the same thing.

The defaults are what is in the sorce information,. Take a look one time. extract the filles to some directory that won't affect your system. then run any form of the config you want. Look carefully at teh screens where the Checkmarks are. Or the [M] are. on th xconfig it is a dot. Now in it, check the Processor family, it defaults to a Pentium 4 system. Then look at the IEEE1394 and tell me it is not enabled by default. Then get back to me.


All times are GMT -5. The time now is 05:04 AM.