Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Usermode Linux
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Caffeine
Guru
Guru


Joined: 17 Jul 2002
Posts: 401
Location: Melbourne, Australia

PostPosted: Wed Feb 05, 2003 8:45 am    Post subject: Usermode Linux Reply with quote

Hi,
I'm having trouble compiling the Usermode kernel. I've been following Gentoo UML guide, but the compile is failing as such...
Code:
make[2]: Leaving directory `/usr/src/uml/linux-2.4.19-r25/arch/um/fs/hostfs'
make -C hppfs
make[2]: Entering directory `/usr/src/uml/linux-2.4.19-r25/arch/um/fs/hppfs'
make all_targets
make[3]: Entering directory `/usr/src/uml/linux-2.4.19-r25/arch/um/fs/hppfs'
make[3]: Circular /usr/src/uml/linux-2.4.19-r25/include/asm/processor-generic.h <- /usr/src/uml/linux-2.4.19-r25/include/linux/list.h dependency dropped.
make[3]: Circular /usr/src/uml/linux-2.4.19-r25/include/asm/mmu.h <- /usr/src/uml/linux-2.4.19-r25/include/linux/sched.h dependency dropped.
gcc   -nostdinc -I /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include -DKBUILD_BASENAME=hppfs_kern -D__KERNEL__ -I/usr/src/uml/linux-2.4.19-r25/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/usr/src/uml/linux-2.4.19-r25/arch/um/include -Derrno=kernel_errno -I/usr/src/uml/linux-2.4.19-r25/arch/um/kernel/tt/include -I/usr/src/uml/linux-2.4.19-r25/arch/um/kernel/skas/include  -c -o hppfs_kern.o hppfs_kern.c
In file included from /usr/src/uml/linux-2.4.19-r25/include/linux/posix_types.h:46,
                 from /usr/src/uml/linux-2.4.19-r25/include/linux/types.h:8,
                 from /usr/src/uml/linux-2.4.19-r25/include/linux/kernel.h:13,
                 from /usr/src/uml/linux-2.4.19-r25/include/linux/wait.h:13,
                 from /usr/src/uml/linux-2.4.19-r25/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 `/usr/src/uml/linux-2.4.19-r25/arch/um/fs/hppfs'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/uml/linux-2.4.19-r25/arch/um/fs/hppfs'
make[1]: *** [_subdir_hppfs] Error 2
make[1]: Leaving directory `/usr/src/uml/linux-2.4.19-r25/arch/um/fs'
make: *** [_dir_arch/um/fs] Error 2


I think it's related to the /usr/include/asm stuff, but the documentation isn't really clear about how that's supposed to be set up. Originally, I left /usr/include/asm as a real directory, then I made it a sym link to /usr/src/linux/include/asm. The compile fails in the same place regardless.

Any ideas?
Back to top
View user's profile Send private message
kermitjunior
Apprentice
Apprentice


Joined: 04 Aug 2002
Posts: 167

PostPosted: Sun Feb 09, 2003 7:40 pm    Post subject: Have you tried... Reply with quote

I was running into a similar error on a different source compile. Try to umerge your sources an then remerge. Seems to fix serveral kernal compile errors.
_________________
-----
Toshiba Satellite A15-S157, 2.2 Celery, 40GB, 512MB
AMD Athlon XP 1900+, 640MB PC2100, ABIT KG-7R
IBM 120GB (Linux), WD 30GB (WinDoze), ATI All-In-Wonder 128 Pro PCI
Back to top
View user's profile Send private message
Caffeine
Guru
Guru


Joined: 17 Jul 2002
Posts: 401
Location: Melbourne, Australia

PostPosted: Mon Feb 10, 2003 11:14 am    Post subject: Reply with quote

Thanks, but it doesn't seem to help. Still fails in the same location. Which compiler are you using? I'm on 2.95.3 - maybe that's the problem??

I'm curious why it references this directory instead of /usr/include.
Code:
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/asm/


This 2.95.3/include directory doesn't contain features.h. If I copy /usr/include/features.h into the above directory, the compile fails looking for other stuff like sys/cdefs.h or gnu/stubs.h.

Clearly something is wrong with the way it's including /usr/include, but I'm stumped as to how it's supposed to be setup.
Back to top
View user's profile Send private message
Caffeine
Guru
Guru


Joined: 17 Jul 2002
Posts: 401
Location: Melbourne, Australia

PostPosted: Fri Feb 14, 2003 3:22 pm    Post subject: Reply with quote

Fixed it. My IBM hard drive collapsed in a screaming heap, and I had to reinstall. I went with 1.4 ( gcc 3.2.1 - Previously I was with gcc 2.95.3 ). Now usermode sources compile fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum