When userpriv or usersandbox is set in FEATURES, mol does not complete building. It looks like it fails when it is compiling the kernel module portion of mol. Removing these flags allows the build to complete. Reproducible: Always Steps to Reproduce: 1. set FEATURES="... userpriv usersandbox" in /etc/make.conf 2. emerge mol 3. watch it fail Actual Results: = Building molvconfig : ok + Entering kmod + Entering Linux /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/tmp-offsets.c:0: fatal error: can't open tmp-offsets.s for writing: Permission denied compilation terminated. The bug is not reproducible, so it is likely a hardware or OS problem. make[5]: *** [/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/asm_offsets.h] Error 1 make[4]: *** [_module_/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/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 Expected Results: complete building Likely mol needs to use the new style kernel module build stuff. I haven't looked at the ebuild yet, so just guessing. ;-)
Yep, the new kernel module build stuff would be fine. But I hadn't time to find out, how it works. If you want, you could help.
Created attachment 47516 [details] mol-0.9.70-r1.ebuild Work in progress. I haven't made it actually make mol and sheep the modules yet. This makes the tun module from the kernel rather than the included on and coding looking they should be compatible. BTW I haven't been able to get existing versions to compile hence the trouble working out what to do.
Converted mol-0.9.71_pre1 to linux-mod. It required a small patch to prevent the access violations. If there are still problems, feel free to reopen the bug.