Re: [gentoo-user] Kernel Make Errors Help Needed [Problem Solved]

2003-03-25 Thread Ralph F. De Witt
On Mon, 24 Mar 2003 11:12:30 -0800
Ralph F. De Witt [EMAIL PROTECTED] wrote:

 On Mon, 24 Mar 2003 05:51:55 -0700
 Collins Richey [EMAIL PROTECTED] wrote:
 
  On Mon, 24 Mar 2003 02:44:40 -0800
  Ralph F. De Witt [EMAIL PROTECTED] wrote:
  
   On Mon, 24 Mar 2003 02:28:25 -0500
   Seth Chandler [EMAIL PROTECTED] wrote:
   
 Being a newbie and not sure I will ask given the above hardware
 configuration is there anything in the kernel configuration that
 should be added or removed as it is causing a problem. And what is
 a good way to get this cleared up. Thanks for all your help so
 far.

 Ralph
   Mike and Collins:
   In looking around, I found on this machine the kernel is
   gentoo-2.4.20-r1/2 and the sources are gentoo-sources-2.4.20-r1/2, but
   the headers are 2.4.19. I was told that the kernel and headers had to
   always be the same version to compile correctly. Could this be the
   problem? Also what is the difference between the three files kernel,
   kernel sources, and headers?
   
  
  The kernel is what you build from the kernel sources; what you name it
  is up to you.  The kernel sources are the current version of the sources
  that you use to build a new kernel.  The kernel headers are not used by
  the kernel build process (see kernel sources), but rather are the header
  files from the kernel used to build glibc and other things.  Normally,
  you do not change the kernel headers once glibc has been built.
  
  --
  Collins
  
  
  
  
  --
  [EMAIL PROTECTED] mailing list
  
 Collins:
 Thanks for that bit of information, it helps me understand the process. Now back to 
 the original questions. Why am I not able to complete the kernel build process on 
 this machine using either the gentoo-kernel-2.4.20-r1 or r2 kernel and sources? What 
 is wrong?
 
 Ralph
 
 --
 [EMAIL PROTECTED] mailing list

To All:
Thanks for your help. I solved the problem by unmergeing and deleting all the kernel 
directories in /usr/src/ and in /lib/module. I then cleaned out /boot of all files 
except for the bzImage file. I then emerged the gentoo-sources 2.4.20-r2 kernel and 
followed the direction carefull and lo and behold I have a new shinny compiled kernel. 
Thanks for your help.

Ralph 

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Kernel Make Errors Help Needed

2003-03-24 Thread Ralph F. De Witt
On Mon, 24 Mar 2003 02:28:25 -0500
Seth Chandler [EMAIL PROTECTED] wrote:

  Being a newbie and not sure I will ask given the above hardware
  configuration is there anything in the kernel configuration that should be
  added or removed as it is causing a problem. And what is a good way to get
  this cleared up. Thanks for all your help so far.
 
  Ralph
Mike and Collins:
In looking around, I found on this machine the kernel is gentoo-2.4.20-r1/2 and the 
sources are gentoo-sources-2.4.20-r1/2, but the headers are 2.4.19. I was told that 
the kernel and headers had to always be the same version to compile correctly. Could 
this be the problem? Also what is the difference between the three files kernel, 
kernel sources, and headers?

Ralph

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Kernel Make Errors Help Needed

2003-03-24 Thread Collins Richey
On Mon, 24 Mar 2003 02:44:40 -0800
Ralph F. De Witt [EMAIL PROTECTED] wrote:

 On Mon, 24 Mar 2003 02:28:25 -0500
 Seth Chandler [EMAIL PROTECTED] wrote:
 
   Being a newbie and not sure I will ask given the above hardware
   configuration is there anything in the kernel configuration that
   should be added or removed as it is causing a problem. And what is
   a good way to get this cleared up. Thanks for all your help so
   far.
  
   Ralph
 Mike and Collins:
 In looking around, I found on this machine the kernel is
 gentoo-2.4.20-r1/2 and the sources are gentoo-sources-2.4.20-r1/2, but
 the headers are 2.4.19. I was told that the kernel and headers had to
 always be the same version to compile correctly. Could this be the
 problem? Also what is the difference between the three files kernel,
 kernel sources, and headers?
 

The kernel is what you build from the kernel sources; what you name it
is up to you.  The kernel sources are the current version of the sources
that you use to build a new kernel.  The kernel headers are not used by
the kernel build process (see kernel sources), but rather are the header
files from the kernel used to build glibc and other things.  Normally,
you do not change the kernel headers once glibc has been built.

--
Collins




--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Kernel Make Errors Help Needed

2003-03-24 Thread Ralph F. De Witt
On Mon, 24 Mar 2003 05:51:55 -0700
Collins Richey [EMAIL PROTECTED] wrote:

 On Mon, 24 Mar 2003 02:44:40 -0800
 Ralph F. De Witt [EMAIL PROTECTED] wrote:
 
  On Mon, 24 Mar 2003 02:28:25 -0500
  Seth Chandler [EMAIL PROTECTED] wrote:
  
Being a newbie and not sure I will ask given the above hardware
configuration is there anything in the kernel configuration that
should be added or removed as it is causing a problem. And what is
a good way to get this cleared up. Thanks for all your help so
far.
   
Ralph
  Mike and Collins:
  In looking around, I found on this machine the kernel is
  gentoo-2.4.20-r1/2 and the sources are gentoo-sources-2.4.20-r1/2, but
  the headers are 2.4.19. I was told that the kernel and headers had to
  always be the same version to compile correctly. Could this be the
  problem? Also what is the difference between the three files kernel,
  kernel sources, and headers?
  
 
 The kernel is what you build from the kernel sources; what you name it
 is up to you.  The kernel sources are the current version of the sources
 that you use to build a new kernel.  The kernel headers are not used by
 the kernel build process (see kernel sources), but rather are the header
 files from the kernel used to build glibc and other things.  Normally,
 you do not change the kernel headers once glibc has been built.
 
 --
 Collins
 
 
 
 
 --
 [EMAIL PROTECTED] mailing list
 
Collins:
Thanks for that bit of information, it helps me understand the process. Now back to 
the original questions. Why am I not able to complete the kernel build process on this 
machine using either the gentoo-kernel-2.4.20-r1 or r2 kernel and sources? What is 
wrong?

Ralph

--
[EMAIL PROTECTED] mailing list



[gentoo-user] Kernel Make Errors Help Needed

2003-03-23 Thread Ralph F. De Witt
Hi all:
I am fairly new to gentoo and kernel build in general. I have built several kernels so 
far but still have some problems that need to be gotten over. So when emerge brought 
me the gentoo-2.4.20-r2 kernel I decided to try again. However I now have the 
following compile errors with the 2.4.20-r2 gentoo sources kernel:

make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r2/drivers/pnp'
make -C scsi modules_install
make[2]: Entering directory `/usr/src/linux-2.4.20-gentoo-r2/drivers/scsi'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r2/drivers/scsi'
make -C sound modules_install
make[2]: Entering directory `/usr/src/linux-2.4.20-gentoo-r2/drivers/sound'
mkdir -p /lib/modules/2.4.20-gentoo-r2/kernel/drivers/sound/
cp soundcore.o /lib/modules/2.4.20-gentoo-r2/kernel/drivers/sound/
cp: cannot stat `soundcore.o': No such file or directory
make[2]: *** [_modinst__] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r2/drivers/sound'
make[1]: *** [_modinst_sound] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r2/drivers'
make: *** [_modinst_drivers] Error 2

At first it could not find the ARCnet dummy module. So I deleted that from the config 
because I do not have any ARCnet on my system. Now It does not see the soundcore.o 
modules. I suspect that if I removed that from the config it would not find the next 
module. 

Can someone give me some quidance as to what might be wrong and how to correct it.

Ralph

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Kernel Make Errors Help Needed

2003-03-23 Thread Collins Richey
On Sun, 23 Mar 2003 20:10:14 -0800
Ralph F. De Witt [EMAIL PROTECTED] wrote:

 Hi all:
 I am fairly new to gentoo and kernel build in general. I have built
 several kernels so far but still have some problems that need to be
 gotten over. So when emerge brought me the gentoo-2.4.20-r2 kernel I
 decided to try again. However I now have the following compile errors
 with the 2.4.20-r2 gentoo sources kernel:
 

[ errors snipped ]

The most likely reason for errors of this type is failure to do 'make
mrproper' when required.  I always take the following steps:

1) cd to the /usr/src/linux-... dircctory
2) cp .config to another name (can be in same directory)
3) make mrproper
4) make menuconfig
load the saved .config
save
5) make dep
6) make clean
7) make bzImage
8) make modules

Everything to this point can be done as normal user; the following must
be as root (or use sudo make ...).

9) make modules_install
10) mount /boot (if needed) and save your kernel image and system map.
11) Modify your lilo config (and /sbin/lilo) or grub config as required.
12) reboot and enjoy.

Some of the steps may be redundant, depending on what you did last, but
I always do it this way, and it always works.  You can setup a script to
do most of this.

--
Collins

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Kernel Make Errors Help Needed

2003-03-23 Thread Ralph F. De Witt
On Sun, 23 Mar 2003 22:15:18 -0700
Collins Richey [EMAIL PROTECTED] wrote:

 On Sun, 23 Mar 2003 20:10:14 -0800
 Ralph F. De Witt [EMAIL PROTECTED] wrote:
 
  Hi all:
  I am fairly new to gentoo and kernel build in general. I have built
  several kernels so far but still have some problems that need to be
  gotten over. So when emerge brought me the gentoo-2.4.20-r2 kernel I
  decided to try again. However I now have the following compile errors
  with the 2.4.20-r2 gentoo sources kernel:
  
 
 [ errors snipped ]
 
 The most likely reason for errors of this type is failure to do 'make
 mrproper' when required.  I always take the following steps:
 
 1) cd to the /usr/src/linux-... dircctory
 2) cp .config to another name (can be in same directory)
 3) make mrproper
 4) make menuconfig
   load the saved .config
   save
 5) make dep
 6) make clean
 7) make bzImage
 8) make modules
 
   Everything to this point can be done as normal user; the following must
   be as root (or use sudo make ...).
 
 9) make modules_install
 10) mount /boot (if needed) and save your kernel image and system map.
 11) Modify your lilo config (and /sbin/lilo) or grub config as required.
 12) reboot and enjoy.
 
 Some of the steps may be redundant, depending on what you did last, but
 I always do it this way, and it always works.  You can setup a script to
 do most of this.
 
 --
 Collins
 
Collins:

Thanks for your help. What does the make mrproper command do? I have not run into in 
the Linux System Commands book or the 6 inches of Gentoo documentation that I have 
download and printed out to help with the install. The documentation that I have read 
only indicated that you should do a emerge sync, emerge sys-kernel/sources, then cd 
/usr/src/linux, then source /etc/profile, then make menuconfig etc. The only change to 
that was to remove the symlink to the kernel and rebuild it to the new kernel if you 
are changing kernels.
Just confused and about 8 feet up the wall trying to fix the last problems on the 
system and getting nowhere fast.
Thanks for the help. Will let you know how it goes.

Ralph

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Kernel Make Errors Help Needed

2003-03-23 Thread Seth Chandler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

it is basically a make clean + a littl emore

it sets the default config file back in arch/blah/defconfig

and cleans out some symlinks


seth

On Monday 24 March 2003 00:54, Ralph F. De Witt wrote:
 On Sun, 23 Mar 2003 22:15:18 -0700

 Collins Richey [EMAIL PROTECTED] wrote:
  On Sun, 23 Mar 2003 20:10:14 -0800
 
  Ralph F. De Witt [EMAIL PROTECTED] wrote:
   Hi all:
   I am fairly new to gentoo and kernel build in general. I have built
   several kernels so far but still have some problems that need to be
   gotten over. So when emerge brought me the gentoo-2.4.20-r2 kernel I
   decided to try again. However I now have the following compile errors
   with the 2.4.20-r2 gentoo sources kernel:
 
  [ errors snipped ]
 
  The most likely reason for errors of this type is failure to do 'make
  mrproper' when required.  I always take the following steps:
 
  1) cd to the /usr/src/linux-... dircctory
  2) cp .config to another name (can be in same directory)
  3) make mrproper
  4) make menuconfig
  load the saved .config
  save
  5) make dep
  6) make clean
  7) make bzImage
  8) make modules
 
  Everything to this point can be done as normal user; the following must
  be as root (or use sudo make ...).
 
  9) make modules_install
  10) mount /boot (if needed) and save your kernel image and system map.
  11) Modify your lilo config (and /sbin/lilo) or grub config as required.
  12) reboot and enjoy.
 
  Some of the steps may be redundant, depending on what you did last, but
  I always do it this way, and it always works.  You can setup a script to
  do most of this.
 
  --
  Collins

 Collins:

 Thanks for your help. What does the make mrproper command do? I have not
 run into in the Linux System Commands book or the 6 inches of Gentoo
 documentation that I have download and printed out to help with the
 install. The documentation that I have read only indicated that you should
 do a emerge sync, emerge sys-kernel/sources, then cd /usr/src/linux, then
 source /etc/profile, then make menuconfig etc. The only change to that was
 to remove the symlink to the kernel and rebuild it to the new kernel if you
 are changing kernels. Just confused and about 8 feet up the wall trying to
 fix the last problems on the system and getting nowhere fast. Thanks for
 the help. Will let you know how it goes.

 Ralph

 --
 [EMAIL PROTECTED] mailing list
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+fqNt7TKExlfwaNURAgF/AKCp0eeD1qQSg/ar0dXjAoPmMQjSvgCeNOJf
NGt2O/NMKI7wmT4+EMwx0uM=
=t6rr
-END PGP SIGNATURE-

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Kernel Make Errors Help Needed

2003-03-23 Thread Mike Williams
On Mon, 2003-03-24 at 05:54, Ralph F. De Witt wrote:
 Thanks for your help. What does the make mrproper command do? I have not run into in 
 the Linux System Commands book or the 6 inches of Gentoo documentation that I have 
 download and printed out to help with the install. The documentation that I have 
 read only indicated that you should do a emerge sync, emerge sys-kernel/sources, 
 then cd /usr/src/linux, then source /etc/profile, then make menuconfig etc. The only 
 change to that was to remove the symlink to the kernel and rebuild it to the new 
 kernel if you are changing kernels.
 Just confused and about 8 feet up the wall trying to fix the last problems on the 
 system and getting nowhere fast.
 Thanks for the help. Will let you know how it goes.

mrproper (to my knowledge) is unique to the linux kernel makefiles. It's
like clean on steroids, and is designed to return the entire tree back
to it's original state. All configuration, generated includes, compiled
source, etc, is removed, forcing the regeneration/compilation of
everything.

The errors you've been getting may be indicative of an incorrect
.config, if you copy a .config from a older/newer configured kernel,
edit it (bad things can easily happen from manually editing), run 'make
oldconfig' first, then menuconfig if you wish to check things over (I
always do, and generally find something I missed/could use)

-- 
Mike Williams [EMAIL PROTECTED]


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] Kernel Make Errors Help Needed

2003-03-23 Thread Ralph F. De Witt
On Sun, 23 Mar 2003 21:54:39 -0800
Ralph F. De Witt [EMAIL PROTECTED] wrote:

 Thanks for the help. Will let you know how it goes.

Collins, Seth, Mike:

Collins followed your instructions but it did not work same error. Mike suggested 
running make oldconfig then make menuconfig. But I am not sure that this is the 
solution I only upgraded from 2.4.20-r1 to 2.4.20-r2. So I do not think that the 
problem is a old .config menu conflicting with the new kernel stuff. But I being a 
newbie to all this what should I do to clear up mess. My system is a KT3ULTRA2 mobo, 
one 80 gig maxtor hd on the master of ide channel1, one atapi DVD-ROM in master and 
one atapi CD-rw in slave on ide channel2, a HP Deskjet 940C parallel printer, a Epson 
Perfecton 640 usb scanner and Logitech QuickCam 4000pro usb web cam.

This is my .config file
#
# Automatically generated by make menuconfig: don't edit
#
CONFIG_X86=y
# CONFIG_SBUS is not set
CONFIG_UID16=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

#
# Processor type and features
#
CONFIG_LOLAT=y
# CONFIG_LOLAT_SYSCTL is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M586MMX31 is not set
# CONFIG_M686 is not set
# CONFIG_MPPRO31 is not set
# CONFIG_M68631 is not set
CONFIG_MPENTIUMIII=y
# CONFIG_MPENTIUMIII31 is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MPENTIUM431 is not set
# CONFIG_MK6 is not set
# CONFIG_MK6231 is not set
# CONFIG_MK7 is not set
# CONFIG_MK731 is not set
# CONFIG_MXP31 is not set
# CONFIG_MMP31 is not set
# CONFIG_MELAN is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_L1_CACHE_SHIFT=5
CONFIG_X86_HAS_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_PGE=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_F00F_WORKS_OK=y
CONFIG_X86_MCE=y
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_HIGHMEM is not set
CONFIG_1GB=y
# CONFIG_2GB is not set
# CONFIG_3GB is not set
# CONFIG_05GB is not set
# CONFIG_MATH_EMULATION is not set
# CONFIG_MTRR is not set
CONFIG_SMP=y
# CONFIG_PREEMPT is not set
# CONFIG_MULTIQUAD is not set
# CONFIG_X86_TSC_DISABLE is not set
CONFIG_X86_TSC=y
CONFIG_HAVE_DEC_LOCK=y

#
# General setup
#
CONFIG_NET=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_ISA=y
CONFIG_PCI_NAMES=y
CONFIG_EISA=y
# CONFIG_MCA is not set
CONFIG_HOTPLUG=y

#
# PCMCIA/CardBus support
#
# CONFIG_PCMCIA is not set

#
# PCI Hotplug Support
#
CONFIG_HOTPLUG_PCI=y
# CONFIG_HOTPLUG_PCI_COMPAQ is not set
# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
# CONFIG_HOTPLUG_PCI_IBM is not set
CONFIG_HOTPLUG_PCI_ACPI=y
CONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
CONFIG_KCORE_ELF=y
# CONFIG_KCORE_AOUT is not set
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=y
CONFIG_PM=y
# CONFIG_APM is not set

#
# ACPI Support
#
CONFIG_ACPI=y
# CONFIG_ACPI_HT_ONLY is not set
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_BUS=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_AC is not set
# CONFIG_ACPI_BATTERY is not set
CONFIG_ACPI_BUTTON=y
# CONFIG_ACPI_FAN is not set
# CONFIG_ACPI_PROCESSOR is not set
# CONFIG_ACPI_THERMAL is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_DEBUG is not set

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Parallel port support
#
CONFIG_PARPORT=y
CONFIG_PARPORT_PC=y
CONFIG_PARPORT_PC_CML1=y
# CONFIG_PARPORT_SERIAL is not set
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not set
# CONFIG_PARPORT_AMIGA is not set
# CONFIG_PARPORT_MFC3 is not set
# CONFIG_PARPORT_ATARI is not set
# CONFIG_PARPORT_GSC is not set
# CONFIG_PARPORT_SUNBPP is not set
# CONFIG_PARPORT_OTHER is not set
CONFIG_PARPORT_1284=y

#
# Plug and Play configuration
#
CONFIG_PNP=y
CONFIG_ISAPNP=y

#
# Block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_CISS_SCSI_TAPE is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set
#