Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489250 - sys-block/iscsitarget-1.4.20.2_p20130821 - pkg_setup(): Could not find a Makefile in the kernel source directory.
Summary: sys-block/iscsitarget-1.4.20.2_p20130821 - pkg_setup(): Could not find a Make...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Deadline: 2019-11-05
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2013-10-24 10:48 UTC by Stefan Sassenberg
Modified: 2019-11-05 22:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Sassenberg 2013-10-24 10:48:36 UTC
When emerging sys-block/iscsitarget-1.4.20.2_p20130821 it cannot find the required .config file in my kernel source dir. But it is surely there.

As the messages say, emerge looks for .config in /usr/src/linux but dies with "Kernel not configured; no .config found in ${KV_OUT_DIR}"

The output of ls -l /usr/src/linux/.config is
-rw-r--r-- 1 root root 78043  1. Aug 11:13 /usr/src/linux/.config


Reproducible: Always

Steps to Reproduce:
1. Put into /etc/portage/package.keywords =sys-block/iscsitarget-1.4.20.2_p20130821 ~amd64
2. emerge -va iscsitarget

Actual Results:  
emerge fails

Expected Results:  
I expected a successful emerge

emerge --info '=sys-block/iscsitarget-1.4.20.2_p20130821::gentoo:
Portage 2.2.1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.15-r3, 3.8.13-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.2
KiB Mem:     6096996 total,    838604 free
KiB Swap:    2008088 total,   2008012 free
Timestamp of tree: Sat, 19 Oct 2013 04:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.2.5-r3
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo java-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/java-overlay"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi alsa amd64 analogtv apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cpudetection cracklib crypt cups cxx dav dbus de_tvtoday dga divx dri dts dv dvb dvbplayer dvbsetup dvd dvdr emboss emerald encode exif faac fam firefox flac foomaticdb gdbm gif gimp glitz gpg gpm gstreamer gtk gtk2 h323 iconv icu ipv6 jpeg lame lcms libnotify lua mad matroska mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses network nls nptl nsplugin nss nvram ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline realmedia sdk sdl session sip sipim spell sqlite sqlite3 sse sse2 ssl startup-notification stream svg tcpd tiff truetype udev udisks unicode upower usb v4l v4l2 vorbis wav wmp wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="bt87x hda-intel intel8x0" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="sp887x" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="mustek mustek_pp" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

emerge -pqv '=sys-block/iscsitarget-1.4.20.2_p20130821::gentoo':
[ebuild  N    ] sys-block/iscsitarget-1.4.20.2_p20130821 

 * IMPORTANT: 12 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


build.log:
 * Package:    sys-block/iscsitarget-1.4.20.2_p20130821
 * Repository: gentoo
 * Maintainer: ryao@gentoo.org base-system@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Could not find a Makefile in the kernel source directory.
 * Please ensure that /usr/src/linux points to a complete set of Linux sources
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 * 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: sys-block/iscsitarget-1.4.20.2_p20130821::gentoo failed (setup phase):
 *   Kernel not configured; no .config found in 
 * 
 * Call stack:
 *                               ebuild.sh, line  93:  Called pkg_setup
 *   iscsitarget-1.4.20.2_p20130821.ebuild, line  38:  Called linux-mod_pkg_setup
 *                        linux-mod.eclass, line 559:  Called linux-info_pkg_setup
 *                       linux-info.eclass, line 911:  Called check_extra_config
 *                       linux-info.eclass, line 721:  Called require_configured_kernel
 *                       linux-info.eclass, line 294:  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 '=sys-block/iscsitarget-1.4.20.2_p20130821::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-block/iscsitarget-1.4.20.2_p20130821::gentoo'`.
 * The complete build log is located at '/usr/tmp/portage/sys-block/iscsitarget-1.4.20.2_p20130821/temp/build.log'.
 * The ebuild environment file is located at '/usr/tmp/portage/sys-block/iscsitarget-1.4.20.2_p20130821/temp/die.env'.
 * Working directory: '/usr/lib64/portage/pym'
 * S: '/usr/tmp/portage/sys-block/iscsitarget-1.4.20.2_p20130821/work/iscsitarget-1.4.20.2_p20130821'
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-10-24 14:54:36 UTC
Please post your `ls -l /usr/src' output in a comment.
Comment 2 Stefan Sassenberg 2013-10-24 14:59:38 UTC
(In reply to Jeroen Roovers from comment #1)
> Please post your `ls -l /usr/src' output in a comment.

Here you go:
insgesamt 1192
-rw-r--r--  1 root  root         1484  5. Jul 2010  build-linux-2.6.32-23-generic.patch
-rw-r--r--  1 root  root        78255  1. Aug 11:04 config-3.8.13
drwxr-xr-x  4 root  root         4096 26. Sep 2012  DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0
drwxr-xr-x 17 root  root         4096 25. Mai 21:48 ffmpeg
drwxr-xr-x  4 root  root         4096 29. Mär 2012  gmxsms
lrwxrwxrwx  1 root  root           19 18. Mai 23:58 linux -> linux-3.8.13-gentoo
drwxr-xr-x 21 root  root         4096  1. Jun 06:32 linux-3.0.6-gentoo
drwxr-xr-x 24 root  root         4096 21. Sep 08:26 linux-3.10.1-hardened-r1
drwxr-xr-x 24 root  root         4096  1. Okt 18:04 linux-3.10.7-gentoo-r1
drwxr-xr-x 21 root  root         4096  1. Jun 06:33 linux-3.1.6-gentoo
drwxr-xr-x 21 root  root         4096  1. Jun 06:34 linux-3.2.0-gentoo-r1
drwxr-xr-x 21 root  root         4096  1. Jun 06:35 linux-3.2.12-gentoo
drwxr-xr-x 21 root  root         4096  1. Jun 06:36 linux-3.3.8-gentoo
drwxr-xr-x 21 root  root         4096  1. Jun 06:37 linux-3.4.9-gentoo
drwxr-xr-x  7 root  root         4096  1. Jun 06:38 linux-3.5.4-gentoo
drwxr-xr-x 21 root  root         4096  1. Jun 06:40 linux-3.6.0-gentoo
drwxr-xr-x 21 root  root         4096  1. Jun 06:41 linux-3.6.11-gentoo
drwxr-xr-x 20 root  root         4096  6. Jul 06:31 linux-3.7.10-gentoo
drwxr-xr-x 20 root  root         4096  2. Okt 09:53 linux-3.8.13-gentoo
drwxr-xr-x 32 root  root         4096 12. Sep 2012  mplayer
drwxr-xr-x 11 root  root         4096 16. Nov 2010  pitivi
drwxr-xr-x  9 sshfs fetchmail    4096 16. Nov 2010  pitivi-0.13.5
-rw-r--r--  1 root  root      1039096  5. Jul 2010  rt1283x.patch
drwxr-xr-x  2 root  root         4096  6. Nov 2010  RT2870_Firmware_V22
drwxr-xr-x  4 root  root         4096 26. Sep 2012  rtl2832u
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-11-05 22:36:12 UTC
removed.