# 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
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.
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.
Created attachment 321992 [details, diff] proposed patch Attached patch fixes the issue.
Any progress in fixing this?
+ 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 +
Seems this vanished again for 201210*
(In reply to comment #6) > Seems this vanished again for 201210* aufs3-3_p20120813-r1 is also affected.
+ 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 +
(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?
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 + +