I had kernel 4.4.17 and create binary package mono-4.4.1.0. But after upgrade kernel to another version, and uninstall kernel 4.4.17, I cannot install binary mono. Probably version of kernel was integrated in binary package. * Messages for package dev-lang/mono-4.4.1.0: * Could not find a usable .config in the kernel source directory. * Please ensure that /usr/src/linux points to a configured set of Linux sources. * If you are using KBUILD_OUTPUT, please set the environment var so that * it points to the necessary object directory so that it might find .config. * ERROR: dev-lang/mono-4.4.1.0::gentoo failed (pretend phase): * Kernel not configured; no .config found in /lib/modules/4.4.17-calculate/build * * Call stack: * ebuild.sh, line 115: Called pkg_pretend * environment, line 3451: Called check_extra_config * environment, line 690: Called require_configured_kernel * environment, line 3779: Called die * The specific snippet of code: * die "Kernel not configured; no .config found in ${KV_OUT_DIR}"; * * If you need support, post the output of `emerge --info '=dev-lang/mono-4.4.1.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-lang/mono-4.4.1.0::gentoo'`. * The complete build log is located at '/var/calculate/tmp/portage/dev-lang/mono-4.4.1.0/temp/build.log'. * The ebuild environment file is located at '/var/calculate/tmp/portage/dev-lang/mono-4.4.1.0/temp/environment'. * Working directory: '/usr/lib64/python3.4/site-packages' * S: '/var/calculate/tmp/portage/dev-lang/mono-4.4.1.0/work/mono-4.4.1.0'
in eselect kernel list the kernel version is pointing to your new version ? your kernel sources are not pointing a kernel that have a .config
This is not a support forum and there is no bug here. You just need to fix your local problems.
Kernel check is excessive action for binary package installation , because kernel option is need for compile stage only. Also I checked @dev-lang/mono-4.4.1.0@ compilation on loaded kernel without SYSVIPC option. It success finished. Probably mono upstreamers fixed this problem.
(In reply to Alice Ferrazzi from comment #1) > in eselect kernel list > the kernel version is pointing to your new version ? > > your kernel sources are not pointing a kernel that have a .config /usr/src/linux pointed to new kernel. Kernel hava correct .config. But enviroment.bz2 in binary package of mono contains: declare -- KV_DIR="/usr/src/linux" declare -- KV_EXTRA="-calculate" declare -- KV_FULL="4.4.23-calculate" declare -- KV_LOCAL="" declare -- KV_MAJOR="4" declare -- KV_MINOR="4" declare -- KV_OUT_DIR="/lib/modules/4.4.23-calculate/build" declare -- KV_PATCH="23" Therefore emerge tries to check non-existent kernel config.
This is really a problem with all sorts of packages and if you have /proc/config.gz nowadays, it's happy.