Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel is dirty
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
dbrazdil
n00b
n00b


Joined: 19 May 2011
Posts: 8

PostPosted: Thu May 19, 2011 6:15 pm    Post subject: Genkernel is dirty Reply with quote

Hi guys,

My genkernel is acting a bit wierd. I emerged gentoo-sources and tried calling 'genkernel all'. The problem is that it doesn't get past the prepare phase, saying:
/usr/src/linux-2.6.83-gentoo-r5 is not clean, please run 'make mrproper' in the '/usr/src/linux-2.6.38-gentoo-r5' directory.

Running mrproper doesn't help (genkernel does that anyway) and it does this with other linux sources (tuxonice, vanilla) too.

Any idea?
Dave
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3221

PostPosted: Thu May 19, 2011 6:49 pm    Post subject: Reply with quote

Genkernel should clean the sources by default... but try this:
Code:
cd /usr/src/linux
make clean
genkernel --menuconfig all
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10205
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu May 19, 2011 6:51 pm    Post subject: Reply with quote

In addition, could you try this with a gentoo-sources version that isn't hard masked? What version of genkernel, by the way?

Edit: Unmasked and installed it just to test. Invoked it with
Code:
genkernel --no-clean --no-install --kerneldir=/usr/src/linux-2.6.38-gentoo-r5 kernel
just to make sure I was attempting to compile exactly what was emerged. It made it past the "make prepare" stage and is merrily compiling away. Could you post the output of
Code:
emerge --info
please?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.


Last edited by John R. Graham on Thu May 19, 2011 7:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
dbrazdil
n00b
n00b


Joined: 19 May 2011
Posts: 8

PostPosted: Thu May 19, 2011 7:08 pm    Post subject: Reply with quote

Cleaning doesn't work, nor does a different version of kernel (tried 2.6.36-gentoo-r8). Genkernel is in version 3.4.12.6.-r4 and I should probably add that I'm using Funtoo current amd64.

Dave
Back to top
View user's profile Send private message
dbrazdil
n00b
n00b


Joined: 19 May 2011
Posts: 8

PostPosted: Thu May 19, 2011 7:40 pm    Post subject: Reply with quote

Here's very detailed log of genkernel (the error is about halfway). What's weird is that it sets ARCH to x86 and not x86_64, but that shouldn't be the reason for the folder to be dirty...

Code:

* CMD_LOGLEVEL: 5
* Funtoo Linux Genkernel; Version 3.4.12.6-r4
* Running with options: --loglevel=5 all
* Resolving config file, command line, and arch default settings.
*   DEBUGFILE not set.
*   BUILD_SRC defaulted to "/usr/src/linux".
*   BUILD_DST defaulted to "/usr/src/linux".
*   NO_KERNEL_SOURCES not set.
*   KNAME defaulted to "genkernel".
*   MAKEOPTS defaulted to "-j2".
*   KERNEL_MAKE defaulted to "make".
*   UTILS_MAKE defaulted to "make".
*   KERNEL_CC not set.
*   KERNEL_LD not set.
*   KERNEL_AS not set.
*   UTILS_CC defaulted to "gcc".
*   UTILS_LD defaulted to "ld".
*   UTILS_AS defaulted to "as".
*   KERNEL_CROSS_COMPILE not set.
*   UTILS_CROSS_COMPILE not set.
*   BOOTDIR defaulted to "/boot".
*   SPLASH not set.
*   POSTCLEAR not set.
*   MRPROPER set in config file to "yes".
*   MENUCONFIG set in config file to "no".
*   CLEAN set in config file to "yes".
*   MINKERNPACKAGE not set.
*   MODULESPACKAGE not set.
*   KERNCACHE not set.
*   NORAMDISKMODULES not set.
*   ALLRAMDISKMODULES not set.
*   INITRAMFS_OVERLAY not set.
*   MOUNTBOOT set in config file to "yes".
*   BUILD_STATIC not set.
*   SAVE_CONFIG set in config file to "yes".
*   SYMLINK not set.
*   INSTALL_MOD_PATH not set.
*   OLDCONFIG set in config file to "yes".
*   LVM not set.
*   EVMS not set.
*   DMRAID not set.
*   ISCSI not set.
*   BUSYBOX defaulted to "yes".
*   UNIONFS not set.
*   NETBOOT not set.
*   REAL_ROOT not set.
*   DISKLABEL set in config file to "yes".
*   LUKS not set.
*   GPG not set.
*   MDADM not set.
*   MULTIPATH not set.
*   FIRMWARE not set.
*   FIRMWARE_DST defaulted to "/lib/firmware".
*   FIRMWARE_SRC defaulted to "/lib/firmware".
*   FIRMWARE_FILES not set.
*   INTEGRATED_INITRAMFS not set.
*   GENZIMAGE not set.
*   KEYMAP defaulted to "yes".
*   DOKEYMAPAUTO not set.
*   BUSYBOX_CONFIG not set.
* KERNEL_ARCH=x86

* Linux Kernel 2.6.36-gentoo-r8 for x86_64...
* kernel: Using config from /usr/share/genkernel/arch/x86_64/kernel-config
*         Previous config backed up to .config--2011-05-19--20-35-59.bak
* kernel: >> Running mrproper...
COMMAND: make -j2  ARCH="x86" INSTALL_FW_PATH="/lib/firmware" O="/usr/src/linux" mrproper
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   include/config include/generated
  CLEAN   .config .config.old include/linux/version.h
*         >> Running oldconfig...
COMMAND: make -j2  ARCH="x86" INSTALL_FW_PATH="/lib/firmware" O="/usr/src/linux" oldconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/basic/hash
scripts/basic/docproc.c: In function ‘docsect’:
scripts/basic/docproc.c:336: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --oldconfig arch/x86/Kconfig
#
# configuration written to .config
#
* kernel: >> Cleaning...
COMMAND: make -j2  ARCH="x86" INSTALL_FW_PATH="/lib/firmware" O="/usr/src/linux" clean
COMMAND: make -j2  ARCH="x86" INSTALL_FW_PATH="/lib/firmware" O="/usr/src/linux" prepare
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/basic/hash
scripts/basic/docproc.c: In function ‘docsect’:
scripts/basic/docproc.c:336: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig arch/x86/Kconfig
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  Using /usr/src/linux-2.6.36-gentoo-r8 as source for kernel
  /usr/src/linux-2.6.36-gentoo-r8 is not clean, please run 'make mrproper'
  in the '/usr/src/linux-2.6.36-gentoo-r8' directory.
make[1]: *** [prepare3] Error 1
make: *** [sub-make] Error 2
* CMD_LOGLEVEL: 5
* Funtoo Linux Genkernel; Version 3.4.12.6-r4
* Running with options: --loglevel=5 all
* Resolving config file, command line, and arch default settings.
*   DEBUGFILE not set.
*   BUILD_SRC defaulted to "/usr/src/linux".
*   BUILD_DST defaulted to "/usr/src/linux".
*   NO_KERNEL_SOURCES not set.
*   KNAME defaulted to "genkernel".
*   MAKEOPTS defaulted to "-j2".
*   KERNEL_MAKE defaulted to "make".
*   UTILS_MAKE defaulted to "make".
*   KERNEL_CC not set.
*   KERNEL_LD not set.
*   KERNEL_AS not set.
*   UTILS_CC defaulted to "gcc".
*   UTILS_LD defaulted to "ld".
*   UTILS_AS defaulted to "as".
*   KERNEL_CROSS_COMPILE not set.
*   UTILS_CROSS_COMPILE not set.
*   BOOTDIR defaulted to "/boot".
*   SPLASH not set.
*   POSTCLEAR not set.
*   MRPROPER set in config file to "yes".
*   MENUCONFIG set in config file to "no".
*   CLEAN set in config file to "yes".
*   MINKERNPACKAGE not set.
*   MODULESPACKAGE not set.
*   KERNCACHE not set.
*   NORAMDISKMODULES not set.
*   ALLRAMDISKMODULES not set.
*   INITRAMFS_OVERLAY not set.
*   MOUNTBOOT set in config file to "yes".
*   BUILD_STATIC not set.
*   SAVE_CONFIG set in config file to "yes".
*   SYMLINK not set.
*   INSTALL_MOD_PATH not set.
*   OLDCONFIG set in config file to "yes".
*   LVM not set.
*   EVMS not set.
*   DMRAID not set.
*   ISCSI not set.
*   BUSYBOX defaulted to "yes".
*   UNIONFS not set.
*   NETBOOT not set.
*   REAL_ROOT not set.
*   DISKLABEL set in config file to "yes".
*   LUKS not set.
*   GPG not set.
*   MDADM not set.
*   MULTIPATH not set.
*   FIRMWARE not set.
*   FIRMWARE_DST defaulted to "/lib/firmware".
*   FIRMWARE_SRC defaulted to "/lib/firmware".
*   FIRMWARE_FILES not set.
*   INTEGRATED_INITRAMFS not set.
*   GENZIMAGE not set.
*   KEYMAP defaulted to "yes".
*   DOKEYMAPAUTO not set.
*   BUSYBOX_CONFIG not set.
* KERNEL_ARCH=x86

* ERROR: Failed to compile the "prepare" target...
* -- Grepping log... --
* -- End log... --
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3221

PostPosted: Thu May 19, 2011 8:05 pm    Post subject: Reply with quote

What happens when you use genkernel-3.4.10.907, which is the current stable version? Also, since this is about Funtoo... it probably should go into unsupported software. Also, can you post your `emerge --info`?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10205
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu May 19, 2011 8:09 pm    Post subject: Reply with quote

Yep, concur. Both with the request for "emerge --info" and the proper forum. Moved from Installing Gentoo to Unsupported Software.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
dbrazdil
n00b
n00b


Joined: 19 May 2011
Posts: 8

PostPosted: Thu May 19, 2011 8:16 pm    Post subject: Reply with quote

Alright, sorry... Here's emerge --info:

Code:

Portage 2.2.2 (default/linux/amd64/2008.0, gcc-4.4.5, libc-0-r0, 2.6.35-sysrescue-std210 x86_64)
=================================================================
System uname: Linux-2.6.35-sysrescue-std210-x86_64-Genuine_Intel-R-_CPU_U7300_@_1.30GHz-with-gentoo-2.1.8
Portage Tree: /usr/portage
Portage HEAD: f5b28638084db8cef931af055a1e11e990a109d7 /usr/portage/.git/refs/heads/funtoo.org
app-shells/bash:     4.1_p10
dev-lang/python:     2.6.6-r1
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.1.8-r2
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.11.1-r1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.32
sys-libs/glibc:      2.11.2-r2
virtual/os-headers:  0
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="git://github.com/funtoo/portage-mini-2010.git"
SYNC_USER="root"
USE="X acl alac alsa amd64 apng bash-completion berkdb bluetooth bzip2 cairo cdr cli cracklib crypt cups cxx dbus device-mapper dri dvd dvdr dvdread encode extras flac fortran fuse gdbm gdu gif gnome gpm gstreamer gtk iconv icu iplayer ipv6 jpeg lame libnotify mad mmx modules mp3 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png policykit pppd pulseaudio python readline session sqlite sse sse2 ssl sysfs tcpd threads tiff truetype udev unicode vorbis wavpack wicd x264 xml xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware" 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, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK


I would love to try different version of genkernel, but this is the only one in Funtoo repository. Is there a way to add just this package from stable Gentoo?

David
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10205
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu May 19, 2011 9:16 pm    Post subject: Reply with quote

Only version? Really? What's the output of
Code:
equery list -p -e genkernel
- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
dbrazdil
n00b
n00b


Joined: 19 May 2011
Posts: 8

PostPosted: Thu May 19, 2011 9:28 pm    Post subject: Reply with quote

Says just 3.4.12.6-r4, honest :-D Screw it, switching to Gentoo...
Back to top
View user's profile Send private message
whiteghost
Guru
Guru


Joined: 26 Jul 2009
Posts: 374
Location: north dakota

PostPosted: Sat May 21, 2011 6:57 am    Post subject: Reply with quote

i use funtoo, i just tried this and got same error.

made a post on the funtoo forum.
_________________
www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason.
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Sat May 21, 2011 12:12 pm    Post subject: Reply with quote

Quote:
made a post on the funtoo forum.

Good. While there's loads of great help here including people who don't mind helping funtoo users which is greatly appreciated, it's still a good idea for funtoo users to post on funtoo forums first unless they are sure funtoo hasn't changed anything. In this case Funtoo manages it's own genkernel ebuilds completely independent of what's in the gentoo tree.
Back to top
View user's profile Send private message
seenxu
n00b
n00b


Joined: 19 Oct 2009
Posts: 16

PostPosted: Sat May 21, 2011 12:41 pm    Post subject: Reply with quote

I'm having the same problem on funtoo while compiling 2.6.39 with genkernel-3.4.12.6-r4.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43004
Location: 56N 3W

PostPosted: Sat May 21, 2011 1:11 pm    Post subject: Reply with quote

To all you genkernel users on funtoo or gentoo.

Try pappys seeds - follow kernel-seeds.org to get a lean men kernel with minimum effort.
The 'seed' is a good default kernel .config file with no hardware or filesystems selected.
You add in your hardware support and filesystems, then build and install your kernel by hand.

Pappy has a sticky support thread
The site needs one upate. You will need KMS for most modern video drivers.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
drobbins
Retired Dev
Retired Dev


Joined: 10 Apr 2002
Posts: 19
Location: Albuquerque, NM

PostPosted: Sat May 21, 2011 4:35 pm    Post subject: Reply with quote

whiteghost wrote:
i use funtoo, i just tried this and got same error.

made a post on the funtoo forum.


I've replied to your post on the Funtoo forum. I've made a bunch of changes to genkernel recently to better support Funtoo's new kernel ebuilds, and it looks like one is acting up. I'll be looking into the issue this weekend.

Regards,

Daniel Robbins
_________________
Funtoo Linux - the next generation
Back to top
View user's profile Send private message
drobbins
Retired Dev
Retired Dev


Joined: 10 Apr 2002
Posts: 19
Location: Albuquerque, NM

PostPosted: Sat May 21, 2011 5:28 pm    Post subject: Reply with quote

Fixed genkernel 3.4.12.6-r5 in Funtoo's tree. Thanks for the bug report. I have also tweaked the genkernel version to have a "-funtoo" suffix so that it will be clear that this is a forked version of genkernel and bug reports should go to http://forums.funtoo.org.

The specific bug was that the new external build directory functionality was causing builds that happen within the source tree to fail - O=<external_dir> passed to make was the culprit here. It is now conditionally enabled.

Thanks for the bug report. Enjoy your Saturday,

Daniel
_________________
Funtoo Linux - the next generation
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum