From: Marco B. <ba...@cs...> - 2002-10-27 08:28:32
|
I'm running Gentoo Linux with kernel 2.4.19, and I'm having trouble getting UML to compile. I have a guess about the cause of the problem but I don't know how to fix it, so I'd appreciate any help anyone could give me. Once I have the patched source tree (2.4.19: this same source tree compiles as UML fine on a friend's Debian 3.0 machine) in a directory under my home directory (specifically, it's NOT in /usr/src/linux), I do the following: $ make xconfig ARCH=um (here I set the 2GB/2GB option for my machine and leave everything else at the default) $ make dep ARCH=um $ make linux ARCH=um It goes along fine for a few minutes, but then I get the following error: make[2]: Entering directory `/home/barreno/classes/systems/project/usermode/linux/arch/um/fs/hppfs' make all_targets make[3]: Entering directory `/home/barreno/classes/systems/project/usermode/linux/arch/um/fs/hppfs' gcc -nostdinc -I /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include -DKBUILD_BASENAME=hppfs_kern -D__KERNEL__ -I/home/barreno/classes/systems/project/usermode/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -U__i386__ -Ui386 -DUM_FASTCALL -g -D__arch_um__ -DSUBARCH="i386" -D_LARGEFILE64_SOURCE -I/home/barreno/classes/systems/project/usermode/linux/arch/um/include -Derrno=kernel_errno -I/home/barreno/classes/systems/project/usermode/linux/arch/um/kernel/tt/include -I/home/barreno/classes/systems/project/usermode/linux/arch/um/kernel/skas/include -c -o hppfs_kern.o hppfs_kern.c In file included from /home/barreno/classes/systems/project/usermode/linux/include/linux/posix_types.h:46, from /home/barreno/classes/systems/project/usermode/linux/include/linux/types.h:8, from /home/barreno/classes/systems/project/usermode/linux/include/linux/kernel.h:13, from /home/barreno/classes/systems/project/usermode/linux/include/linux/wait.h:13, from /home/barreno/classes/systems/project/usermode/linux/include/linux/fs.h:12, from hppfs_kern.c:6: /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/asm/posix_types.h:3: features.h: No such file or directory make[3]: *** [hppfs_kern.o] Error 1 make[3]: Leaving directory `/home/barreno/classes/systems/project/usermode/linux/arch/um/fs/hppfs' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/home/barreno/classes/systems/project/usermode/linux/arch/um/fs/hppfs' make[1]: *** [_subdir_hppfs] Error 2 make[1]: Leaving directory `/home/barreno/classes/systems/project/usermode/linux/arch/um/fs' make: *** [_dir_arch/um/fs] Error 2 I think the reason why I'm having the problem is that /usr/lib/gcc-lib/.../asm/posix_types.h is being included when it probably should be /home/barreno/.../linux/include/asm/posix_types.h. It seems suspicious to me that '-I/usr/lib/gcc-lib...' is being included first on the gcc command line, though other command lines earlier in the build put it at the end: gcc -D__KERNEL__ -I/home/barreno/classes/systems/project/usermode/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -U__i386__ -Ui386 -DUM_FASTCALL -g -D__arch_um__ -DSUBARCH="i386" -D_LARGEFILE64_SOURCE -I/home/barreno/classes/systems/project/usermode/linux/arch/um/include -Derrno=kernel_errno -I/home/barreno/classes/systems/project/usermode/linux/arch/um/kernel/tt/include -I/home/barreno/classes/systems/project/usermode/linux/arch/um/kernel/skas/include -nostdinc -I /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include -DKBUILD_BASENAME=hostfs_kern -c -o hostfs_kern.o hostfs_kern.c But I'm not positive this is the cause of the problem, and even if it is I'm not sure why it's happening or how to fix it. And why would this be happening on my system but not my friend's Debian system? Any help would be appreciated. Thanks for reading through this long post. Thanks, Marco -- PGP key available at: http://www.cs.berkeley.edu/~barreno/pgp_key.asc Fingerprint = A725 E9E7 9B52 89C6 DD49 160B B6AD 81AE FC03 CFFD |