Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerging mol fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Sat Apr 24, 2004 3:58 am    Post subject: emerging mol fails Reply with quote

Trying to emerge mol but it keeps failing with the same error even if I change the setting in make.conf file.

Code:

/var/tmp/portage/mol-0.9.70_rc2-r1/work/mol-0.9.70_rc2-r1/src/kmod/build/tmp-offsets.c:525: field `ioctl_sem' has incomplete type
/var/tmp/portage/mol-0.9.70_rc2-r1/work/mol-0.9.70_rc2-r1/src/kmod/build/tmp-offsets.c:533: `kernel_vars_t' used prior to declaration
/var/tmp/portage/mol-0.9.70_rc2-r1/work/mol-0.9.70_rc2-r1/src/kmod/build/tmp-offsets.c:542: field `mutex' has incomplete type
/var/tmp/portage/mol-0.9.70_rc2-r1/work/mol-0.9.70_rc2-r1/src/kmod/build/tmp-offsets.c:544: `session_table_t' used prior to declaration
make[5]: *** [/var/tmp/portage/mol-0.9.70_rc2-r1/work/mol-0.9.70_rc2-r1/src/kmod/Linux/../build/asm_offsets.h] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [/var/tmp/portage/mol-0.9.70_rc2-r1/work/mol-0.9.70_rc2-r1/src/kmod/Linux/../build] Error 2
nm: '../build/mol.ko': No such file
nm: '../build/mol.ko': No such file
checker.pl failed
rm: cannot remove `../build/mol.ko': No such file or directory
make[3]: *** [all-local] Error 1
make[2]: *** [sub-Linux-all] Error 2
make[1]: *** [sub-kmod-all] Error 2
make: *** [sub-src-all] Error 2

!!! ERROR: app-emulation/mol-0.9.70_rc2-r1 failed.
!!! Function src_compile, Line 67, Exitcode 2
!!! Build mol with: FEATURES="-userpriv -strict" emerge mol


I am wondering should I recompile my 2.6.4 kernel with diffferent setting? Any suggestions would help, thanks.
Back to top
View user's profile Send private message
chaumess
n00b
n00b


Joined: 11 Sep 2003
Posts: 64

PostPosted: Sat Apr 24, 2004 7:49 am    Post subject: Reply with quote

I was having a similar problem. If you scroll up in your terminal, you will probably find a smoking gun as to exactly what is causing the problem. In my case, kernel module compilation was complaining about being unable to find autoconf.h and a few other header files.

I had started off trying to compile mol on a vanilla 2.6.6 kernel, and it was on this kernel that I had a lot of problems. This was my first ppc install, so I didn't initially realize it, but there are also benh-patched kernels especially for ppc.
Code:
emerge --search ppc-development-sources
.

I found that when I switched to the benh-patched kernel, my problems disappeared.

A couple of other things you might check, which seem to be important, are to make sure you have a current .config file in your /usr/src/linux, as mol uses this info during installation. You also might want to try cleaning your kernel source tree by
Code:
cd /usr/src/linux
cp .config ~/.config-bak
make mrproper
cp ~/.config-bak /usr/src/linux/.config
make oldconfig
USE="fbcon" FEATURES="-userpriv -strict" emerge mol


This will clean your source tree and re-run your kernel configuration prior to installation. mol seems really dependent on having clean kernel headers.

If you see any more specific info (look for errors after "Entering Linux" comes up during compile), post here and I'll try to help you more.
Back to top
View user's profile Send private message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Sat Apr 24, 2004 5:01 pm    Post subject: Reply with quote

chaumess wrote:
I was having a similar problem. If you scroll up in your terminal, you will probably find a smoking gun as to exactly what is causing the problem. In my case, kernel module compilation was complaining about being unable to find autoconf.h and a few other header files.

I had started off trying to compile mol on a vanilla 2.6.6 kernel, and it was on this kernel that I had a lot of problems. This was my first ppc install, so I didn't initially realize it, but there are also benh-patched kernels especially for ppc.
Code:
emerge --search ppc-development-sources
.

I found that when I switched to the benh-patched kernel, my problems disappeared.

A couple of other things you might check, which seem to be important, are to make sure you have a current .config file in your /usr/src/linux, as mol uses this info during installation. You also might want to try cleaning your kernel source tree by
Code:
cd /usr/src/linux
cp .config ~/.config-bak
make mrproper
cp ~/.config-bak /usr/src/linux/.config
make oldconfig
USE="fbcon" FEATURES="-userpriv -strict" emerge mol


This will clean your source tree and re-run your kernel configuration prior to installation. mol seems really dependent on having clean kernel headers.

If you see any more specific info (look for errors after "Entering Linux" comes up during compile), post here and I'll try to help you more.


Thanks chaumess for your help, I switch to ppc-development-sources 2.6.4 kernel and that fixed the problem. Thank you
Back to top
View user's profile Send private message
serzz
Apprentice
Apprentice


Joined: 03 Apr 2004
Posts: 153

PostPosted: Sun Apr 25, 2004 12:10 am    Post subject: Reply with quote

I tryed to do the same but it fails.

Code:

tux root # ACCEPT_KEYWORDS="~x86" emerge ppc-development-sources
Calculating dependencies
!!! all ebuilds that could satisfy "ppc-development-sources" have been masked.
!!! possible candidates are:
- sys-kernel/ppc-development-sources-2.6.1_rc1-r1 (masked by: missing keyword)
- sys-kernel/ppc-development-sources-2.6.0-r1 (masked by: missing keyword)
- sys-kernel/ppc-development-sources-2.6.0-r2 (masked by: missing keyword)
- sys-kernel/ppc-development-sources-2.6.1-r1 (masked by: missing keyword)
- sys-kernel/ppc-development-sources-2.6.2_rc1-r1 (masked by: missing keyword)
- sys-kernel/ppc-development-sources-2.6.2-r1 (masked by: missing keyword)
- sys-kernel/ppc-development-sources-2.6.2_rc3-r1 (masked by: missing keyword)
- sys-kernel/ppc-development-sources-2.6.3-r1 (masked by: missing keyword)
- sys-kernel/ppc-development-sources-2.6.3-r2 (masked by: missing keyword)
- sys-kernel/ppc-development-sources-2.6.3_rc2-r1 (masked by: missing keyword)
- sys-kernel/ppc-development-sources-2.6.3_rc3-r1 (masked by: missing keyword)
- sys-kernel/ppc-development-sources-2.6.4 (masked by: missing keyword)
- sys-kernel/ppc-development-sources-2.6.5_rc2-r1 (masked by: package.mask, missing keyword)
 
!!! Error calculating dependencies. Please correct.

Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Sun Apr 25, 2004 9:21 am    Post subject: Reply with quote

serzz wrote:
I tryed to do the same but it fails.

tux root # ACCEPT_KEYWORDS="~x86" emerge ppc-development-sources


(bold emphasis mine) - I see a serious problem here 8O

x86 != ppc

Solution: use ~ppc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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