Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17973 - Gentoo-sources 2.4.20-r2 does not include DevFS, or the DevFS patch fails
Summary: Gentoo-sources 2.4.20-r2 does not include DevFS, or the DevFS patch fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-21 22:55 UTC by Charles N. Burns
Modified: 2003-03-22 10:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles N. Burns 2003-03-21 22:55:45 UTC
I recently merged the Gentoo 2.4.20-r2 sources and DevFS seems to be missing. It
absolutely does not show up in the "make menuconfig" filesystems menu, or any
other menu that I can see.
So, I manually edit the .config file, adding:
    CONFIG_DEVFS_FS=y
    CONFIG_DEVFS_MOUNT=y

With these changes, the kernel won't compile. make dep works, make bzImage exits
with:
[...snip]
    /usr/src/linux-2.4.20-gentoo-r2/include/linux/devfs_fs_kernel.h:241:
warning: `devfs_get_name' defined but not used
    /usr/src/linux-2.4.20-gentoo-r2/include/linux/devfs_fs_kernel.h:246:
warning: `devfs_register_chrdev' defined but not used
    /usr/src/linux-2.4.20-gentoo-r2/include/linux/devfs_fs_kernel.h:251:
warning: `devfs_register_blkdev' defined but not used
    /usr/src/linux-2.4.20-gentoo-r2/include/linux/devfs_fs_kernel.h:255:
warning: `devfs_unregister_chrdev' defined but not used
    /usr/src/linux-2.4.20-gentoo-r2/include/linux/devfs_fs_kernel.h:259:
warning: `devfs_unregister_blkdev' defined but not used
    make[3]: *** [base.o] Error 1
    make[3]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r2/fs/devfs'
    make[2]: *** [first_rule] Error 2
    make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r2/fs/devfs'
    make[1]: *** [_subdir_devfs] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r2/fs'
    make: *** [_dir_fs] Error 2[/code]


I tried "make clean", "make mrproper", reconfigured the kernel from scratch
using conservative options. I used the default build flags and the same with -O2.
 I figured that the patch may not have been applied when installing it (if devfs
is patched onto the kernel during install), so unmerged it and completely
deleted everything from /usr/src/*
I then ran "emerge sync" and re-emerged gentoo-sources. Same thing.

The Gentoo forums do not indicate thatanyone else has had this problem, but I am
certainly not doing anything strange and have very little software--all stable
(other than the kernel) installed.

Reproducible: Always
Steps to Reproduce:
(if it can be reproduces by someone else)
1. emerge sync
2. emerge gentoo-sources
3. cd /usr/src/linux   (make sure the symlink points to 2.4.20-r2)
4. make menuconfig   ... no devfs options
5. make dep clean bzImage modules modules_install, reboot, Gentoo complains
about lack of devfs.

Alternatively, manually add the devfs options to your .config file and try.
Actual Results:  
Build fails

Expected Results:  
Build completes

Output of "top":


 13:46:06  up 59 min,  2 users,  load average: 0.51, 0.92, 1.05
20 processes: 19 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  0.0% user,  0.0% system,  0.0% nice,  0.0% iowait,100.0% idle
Mem:   904852k av,  483900k used,  420952k free,       0k shrd,   97764k buff
       353544k active,              60748k inactive
Swap:  248996k av,       0k used,  248996k free                  314736k cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
    1 root       7   0   480  480   420 S     0.0  0.0   0:04 init
    2 root       9   0     0    0     0 SW    0.0  0.0   0:00 keventd
    3 root      18  19     0    0     0 SWN   0.0  0.0   0:00 ksoftirqd_CPU0
    4 root       9   0     0    0     0 SW    0.0  0.0   0:00 kswapd
    5 root       9   0     0    0     0 SW    0.0  0.0   0:00 bdflush
    6 root       9   0     0    0     0 SW    0.0  0.0   0:00 kupdated
   10 root       9   0     0    0     0 SW    0.0  0.0   0:00 ahc_dv_0
   11 root       9   0     0    0     0 SW    0.0  0.0   0:00 scsi_eh_0
   12 root       9   0     0    0     0 SW    0.0  0.0   0:00 kreiserfsd
  981 root       9   0  1248 1248  1128 S     0.0  0.1   0:00 sshd
  992 root       9   0   984  984   776 S     0.0  0.1   0:00 login
  993 root       9   0   404  404   348 S     0.0  0.0   0:00 agetty
  994 root       9   0   404  404   348 S     0.0  0.0   0:00 agetty
  995 root       9   0   404  404   348 S     0.0  0.0   0:00 agetty
  996 root       9   0   404  404   348 S     0.0  0.0   0:00 agetty
  997 root       9   0   404  404   348 S     0.0  0.0   0:00 agetty
  998 root       8   0  1296 1296  1032 S     0.0  0.1   0:00 bash
10113 root      10   0  1304 1304  1032 S     0.0  0.1   0:00 bash
14342 root      11   0   992  992   768 R     0.0  0.1   0:00 top




Not that it likely matters for the kernel, but here is my make.conf:

USE="X gnome apache2 zlib truetype tiff gif jpeg png mozilla ncurses samba
-pcmcia -motif -alsa -nas"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-mp -O2 -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"





Here is the kernel config file (with all commented items removed for brevity):

CONFIG_X86=y
CONFIG_UID16=y
CONFIG_MODULES=y
CONFIG_KMOD=y
CONFIG_LOLAT=y
CONFIG_MMP31=y
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_XCHGADD_ALGORITHM=y
CONFIG_X86_L1_CACHE_SHIFT=6
CONFIG_X86_HAS_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_USE_3DNOW=y
CONFIG_X86_PGE=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_MCE=y
CONFIG_X86_MSR=y
CONFIG_X86_CPUID=y
CONFIG_NOHIGHMEM=y
CONFIG_1GB=y
CONFIG_MTRR=y
CONFIG_PREEMPT=y
CONFIG_X86_UP_APIC=y
CONFI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_MASK=0
CONFIG_SCSI_SYM53C8XX=y
CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=4
CONFIG_SCSI_NCR53C8XX_MAX_TAGS=32
CONFIG_SCSI_NCR53C8XX_SYNC=20
CONFIG_NETDEVICES=y
CONFIG_DUMMY=y
CONFIG_NET_ETHERNET=y
CONFIG_NET_PCI=y
CONFIG_EEPRO100=y
CONFIG_INPUT=y
CONFIG_INPUT_KEYBDEV=y
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_EVDEV=y
CONFIG_VT=y
CONFIG_ECC=y
CONFIG_MOUSE=y
CONFIG_PSMOUSE=y
CONFIG_AMD_PM768=y
CONFIG_AGP=y
CONFIG_AGP_AMD=y
CONFIG_DRM=y
CONFIG_DRM_NEW=y
CONFIG_DRM_MGA=y
CONFIG_AUTOFS4_FS=y
CONFIG_REISERFS_FS=y
CONFIG_EXT3_FS=y
CONFIG_JBD=y
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_TMPFS=y
CONFIG_RAMFS=y
CONFIG_ISO9660_FS=m
CONFIG_JOLIET=y
CONFIG_NTFS_FS=m
CONFIG_PROC_FS=y
CONFIG_PROC_CONFIG=m
CONFIG_DEVFS_FS=y
CONFIG_DEVFS_MOUNT=y
CONFIG_SMB_FS=y
CONFIG_FS_MBCACHE=y
CONFIG_MSDOS_PARTITION=y
CONFIG_SMB_NLS=y
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437=m
CONFIG_NLS_UTF8=m
CONFIG_IMON=m
CONFIG_EXECOUNT=y
CONFIG_VGA_CONSOLE=y


The lines:
  CONFIG_DEVFS_FS=y
  CONFIG_DEVFS_MOUNT=y
Were uncommented and set by me--they were unavailable in menuconfig.

System is an Athlon-MP (with only one processor), 1GB reg ECC RAM, newish
Adaptec U160 card with SCSI drive for system, plenty of output from the power
supply, excessive cooling, nothing fancy. Can compile all week without error.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-03-22 06:51:11 UTC
i'm using 2.4.20-r2 on 2 machines with devfs, working great
maybe mrproper breaks the kernel source ?
Comment 2 Charles N. Burns 2003-03-22 10:05:54 UTC
I cleared /usr/portage/distfiles and re-emerged gentoo-sources, and the devfs option showed up. <shrug>
Go ahead and mark this as fixed, since it seems I am the only person on earth to experience it.
Thanks for the hard work on Gentoo.
Comment 3 Jay Pfeifer (RETIRED) gentoo-dev 2003-03-22 10:18:47 UTC
yeah, not having devfs would be huge news to me. it's definitely there. 
 
have a good one, 
 
Jay