home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!cs.utexas.edu!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!drycas.club.cc.cmu.edu!ghod
- From: ghod@drycas.club.cc.cmu.edu
- Newsgroups: comp.os.linux
- Subject: Re: compiling kernel...found problem??
- Message-ID: <1992Dec30.183138.2813@drycas.club.cc.cmu.edu>
- Date: 30 Dec 92 13:31:38 GMT
- Article-I.D.: drycas.1992Dec30.183138.2813
- References: <marcf.725751581@yorku.ca>
- Organization: Carnegie Mellon Computer Club
- Lines: 55
-
- In article <marcf.725751581@yorku.ca>, marcf@nexus.yorku.ca (Marc G Fournier) writes:
- > Hi...
- >
- > I'm still playing around trying to find the source of
- > the problem with compiling the kernel. I'm doing everything as
- > per instructions.
- >
- > make config
- > make dep <--- source of first problem
- >
- > The problem is, or error is:
- >
- > inode.c:22: #error The iso9660 filesystem can only be used with CDROM.
- > make[2]: *** [dep] Error 1
- > make[1]: *** [dep] Error 1
- > make: *** [dep] Error 1
- >
- > Now, in the make config stage, I say no to the iso9660 filesystem
- > as well as SCSI support...why is it trying to use the iso9660 filesystem
- > anyway? How can I fix this?
- >
- > Thanks...
- >
- > Marc
-
- I and a friend spent sime time mulling over this the other day and we think
- we've narrowed the problem down to /usr/src/linux/fs/Makefile. If you look
- in this particular Makefile, you'll find two targets defined: dep and clean
- (I think... I cleared the sources off my disk to make room after I compiled
- my kernel). They each have a line in them that looks like:
-
- for i in ($SUBDIRS) do ....(rest of make procedure)
-
- We think this should be ($FS_SUBDIRS), not ($SUBDIRS). From what we can
- tell, the 'fs' Makefile adds directories to $FS_SUBDIRS based on your
- 'make config' selections. If you choose minix, is adds minix. If you choose
- isofs, it adds isofs, and so forth. (So it seems, at least). By the time the
- targets are reached, $FS_SUBDIRS will contain only the directories needed by
- the selected filesystems and nothing else. Then the targets
- go and use $SUBDIRS instead, which contains *all* the filesystem
- subdirectories, which defeats the whole purposei if the script.
-
- I successfully compiled my kernel without the scsi stuff by making $SUBDIR
- into $FS_SUBDIRS in the lines for the dep and clean targets in
- /usr/src/linux/fs/Makefile. Since these makefiles come with the kernel sources
- distributed by Linus himself, I suppose he has the final say as to whether
- this is the correct solution or not. If you have the latest sources (99 pl1),
- you may also find a typo in /usr/src/linux/config.in. The constant defined
- in the line for the new auto-irq mode in the serial driver should be
- NEW_AUTO_IRQ, not NEW_AUTOIRQ. This little buglet won't prevent the kernel
- from compiling, but unles you fix it, you won't be able to enable the auto-irq
- mode even if you answered 'y' while doing make config. :) Caveat utilitor.
-
- -Bill
- ghod@drycas.club.cc.cmu.edu or ghod@drycas.bitnet
-