Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 432346 - sys-fs/aufs3-3_p20120813 does not build with KBUILD_OUTPUT: Makefile:10: could not find kernel config file. internal auto-config may fail
Summary: sys-fs/aufs3-3_p20120813 does not build with KBUILD_OUTPUT: Makefile:10: coul...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 432392
  Show dependency tree
 
Reported: 2012-08-22 20:14 UTC by Dennis Schridde
Modified: 2012-10-18 20:31 UTC (History)
1 user (show)

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


Attachments
proposed patch (aufs3-3_p20120813.ebuild.use-KV_OUT_DIR.patch,839 bytes, patch)
2012-08-23 08:24 UTC, Dennis Schridde
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2012-08-22 20:14:04 UTC
# export KERNEL_DIR=/usr/src/linux-3.5.2-gentoo KBUILD_OUTPUT=/root/build-3.5.2-gentoo
[...]
>>> Compiling source in /var/tmp/portage/sys-fs/aufs3-3_p20120813/work/aufs3-standalone ...
make CC=powerpc64-unknown-linux-gnu-gcc CONFIG_AUFS_FS=m KDIR=/usr/src/linux-3.5.2-gentoo 
Makefile:10: could not find kernel config file. internal auto-config may fail
config.mk:55: CONFIG_AUFS_SBILIST is enabled but CONFIG_AUFS_MAGIC_SYSRQ nor CONFIG_PROC_FS
config.mk:66: *** CONFIG_AUFS_HFSNOTIFY requires CONFIG_FSNOTIFY.  Stop.

.config is located in the build dir, not the source dir. Hence it should be KDIR=$KBUILD_OUTPUT.

Reproducible: Always




Portage 2.2.0_alpha121 (default/linux/powerpc/ppc64/10.0/64bit-userland, gcc-4.5
.3, glibc-2.16.0, 3.5.2-gentoo ppc64)
=================================================================
System uname: Linux-3.5.2-gentoo-ppc64-Cell_Broadband_Engine,_altivec_supported-
with-gentoo-2.1
Timestamp of tree: Wed, 22 Aug 2012 07:15:01 +0000
distcc 3.1 powerpc64-unknown-linux-gnu [disabled]
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.3-r2, 3.2.3
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo local sunrise
ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-pipe -O2 -mcpu=cell -mabi=altivec"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo
-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-pipe -O2 -mcpu=cell -mabi=altivec"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --binpkg-respect-use --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distloc
ks ebuild-locks fixlafiles news parallel-fetch parallel-install parse-eapi-ebuil
d-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn 
unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-st
ud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirro
rs/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles
.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--hash-style=gnu"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/
distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/cache/portage/local /var/cache/portage/overlays/sunrise"
[...]
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAG
E_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2012-08-23 06:42:38 UTC
could you please do this without setting Kernel_DIR and KBUILD_OUTPUT? Most properly this is the problem. Can't test it right now, but I will take a look on it at the weekend.
Comment 2 Dennis Schridde 2012-08-23 07:09:49 UTC
If you look at the Makefile, it also sets KDIR=/lib/modules/…/build. So it should be KDIR=$KV_OUT_DIR instead of KDIR=$KV_DIR, imo.

(In reply to comment #1)
> could you please do this without setting Kernel_DIR and KBUILD_OUTPUT? Most
> properly this is the problem. Can't test it right now, but I will take a
> look on it at the weekend.
I assume that would work, if I did compile my kernel in-source, yes.
Comment 3 Dennis Schridde 2012-08-23 08:24:03 UTC
Created attachment 321992 [details, diff]
proposed patch

Attached patch fixes the issue.
Comment 4 Dennis Schridde 2012-09-13 12:46:59 UTC
Any progress in fixing this?
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2012-10-07 11:49:10 UTC
+  07 Oct 2012; Justin Lecher <jlec@gentoo.org> aufs3-3_p20120813.ebuild:
+  Pass raw ldflags if ld is called directly, #432398; use KV_OUT_DIR instead of
+  KV_DIR, #432346 thanks Dennis Schride for the patches
+
Comment 6 Dennis Schridde 2012-10-17 19:21:07 UTC
Seems this vanished again for 201210*
Comment 7 Dennis Schridde 2012-10-17 19:38:14 UTC
(In reply to comment #6)
> Seems this vanished again for 201210*

aufs3-3_p20120813-r1 is also affected.
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2012-10-18 17:26:00 UTC
+  18 Oct 2012; Justin Lecher <jlec@gentoo.org> aufs3-3_p20120813-r1.ebuild,
+  aufs3-3_p20121015.ebuild:
+  Merge changes related bugs 432346 432392 432398 into newest version
+
Comment 9 Dennis Schridde 2012-10-18 17:50:12 UTC
(In reply to comment #8)
> +  18 Oct 2012; Justin Lecher <jlec@gentoo.org> aufs3-3_p20120813-r1.ebuild,
> +  aufs3-3_p20121015.ebuild:
> +  Merge changes related bugs 432346 432392 432398 into newest version
I think this issue is still present:
emake CC=$(tc-getCC) LD=$(tc-getLD) LDFLAGS="$(raw-ldflags)" ARCH=$(tc-arch-kernel) CONFIG_AUFS_FS=m KDIR=${KV_DIR}

This should be KV_OUT_DIR, right?
Comment 10 Justin Lecher (RETIRED) gentoo-dev 2012-10-18 20:31:32 UTC
  18 Oct 2012; Justin Lecher <jlec@gentoo.org> aufs3-3_p20120813-r1.ebuild,
   aufs3-3_p20121015.ebuild:
+  Change las KV_DIR to KV_OUT_DIR
+
+