View previous topic :: View next topic |
Author |
Message |
heavyt Guru
Joined: 03 Mar 2003 Posts: 498 Location: Matrix (Washington,DC)
|
Posted: Sat Apr 24, 2004 3:58 am Post subject: emerging mol fails |
|
|
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 |
|
|
chaumess n00b
Joined: 11 Sep 2003 Posts: 64
|
Posted: Sat Apr 24, 2004 7:49 am Post subject: |
|
|
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 |
|
|
heavyt Guru
Joined: 03 Mar 2003 Posts: 498 Location: Matrix (Washington,DC)
|
Posted: Sat Apr 24, 2004 5:01 pm Post subject: |
|
|
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 |
|
|
serzz Apprentice
Joined: 03 Apr 2004 Posts: 153
|
Posted: Sun Apr 25, 2004 12:10 am Post subject: |
|
|
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 |
|
|
DiskBreaker Apprentice
Joined: 07 Oct 2003 Posts: 224
|
Posted: Sun Apr 25, 2004 9:21 am Post subject: |
|
|
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
x86 != ppc
Solution: use ~ppc |
|
Back to top |
|
|
|
|
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
|
|