Bug 186378 - sys-kernel/genkernel-3.4.6 does not configure gentoo-sources-2.6.22-r1 correctly
Bug#: 186378 Product:  Gentoo Hosted Projects Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: genkernel@gentoo.org Reported By: gentoo@torabi.de
Component: genkernel
URL: 
Summary: sys-kernel/genkernel-3.4.6 does not configure gentoo-sources-2.6.22-r1 correctly
Keywords:  
Status Whiteboard: 
Opened: 2007-07-23 21:07 0000
Description:   Opened: 2007-07-23 21:07 0000
If I try with
/usr/src/linux -> linux-2.6.22-gentoo-r1
to run
genkernel --menuconfig all
I end up with a compilation error:
include/asm/page.h:89:2: error: #error "CONFIG_PHYSICAL_START must be a
multiple of 2MB"
...
* ERROR: Failed to compile the "prepare" target...

I have no idea what this value is good for, but since it does not work anymore
I changed the Physical_Start from:
CONFIG_PHYSICAL_START=0x100000
to
CONFIG_PHYSICAL_START=0x200000

Now
genkernel --menuconfig --oldconfig all
gives me a working modules_prepare



Reproducible: Always

Steps to Reproduce:
1. emerge -C =gentoo-sources-2.6.22-r1
2. rm -rf /usr/src/linux-2.6.22-gentoo-r1
3. ACCEPT_KEYWORDS="~amd64" emerge =gentoo-sources-2.6.22-r1
4. genkernel all

------- Comment #1 From Ramin 2007-07-23 21:09:06 0000 -------
emerge --info
Portage 2.1.2.9 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4,
2.6.21-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.21-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 23 Jul 2007 07:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=k8 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-mtune=k8 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer parallel-fetch sandbox sfperms
strict userfetch"
GENTOO_MIRRORS=" ftp://ftp.gentoo.mesh-solutions.com/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/
ftp://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergenia.de
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://distfiles.gentoo.org"
LINGUAS="en de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac aalib acl acpi akode alsa amd64 apache2 apm
arts asf atlas audiofile authdaemond automount bash-completion bcmath berkdb
bitmap-fonts blas bluetooth bootsplash branding bzip2 cairo calendar cdb cdda
cddb cdparanoia cdr clamav cli cpudetection cracklib crypt cups daap dbus dga
dmx dri dts dv dvb dvd dvdr dvdread ecc eds emboss encode esd evo exif fam
ffmpeg fftw firefox flac font-server fortran ftp gd gdbm geoip gif ginac glitz
glut gnome gnutls gpgme gphoto2 gpm graphviz gs gstreamer gtk gtk2 hal hddtemp
history iconv idea ieee1394 imagemagick imap imlib ipv6 irc isdnlog jack java
javascript jbig joystick jpeg jpeg2k kde kdepim kerberos lapack latex lcms ldap
libcaca libg++ libnotify libwww linuxthreads-tls live lm_sensors logrotate lzo
mad maildir math matroska mbox midi mikmod mime mmx mmxext mng motif
mozbranding mozcalendar mozdevelop mozsvg mp3 mp4 mpeg mplayer mudflap musepack
musicbrainz mysql ncurses netboot nls nocd nptl nptlonly nsplugin nvidia
nxclient oav ocaml offensive ofx ogg openal openexr opengl openmp oss pam pcre
pda pdf perl php plotutils png povray pppd python qt3 qt3support qt4 quicktime
rdesktop readline reflection replytolist samba sasl sdl sensord session skey
slang smp snmp speex spell spl sse sse2 ssl subtitles subversion svg svgz
symlink szip tcl tcltk tcpd tetex theora thunderbird tidy tiff tk truetype
truetype-fonts type1-fonts unicode usb v4l v4l2 vcd verbose videos vim-with-x
visualization vlm vnc vorbis wmf x264 xanim xcomposite xft xine xinerama xml
xorg xpm xv xvid xvnc zeroconf zip 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 mulaw multi null plug rate
route share shm softvol" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard
mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780
lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU"
VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS,
PORTDIR_OVERLAY

------- Comment #2 From Lari Korpi 2007-07-24 14:22:39 0000 -------
I also have this problem.

------- Comment #3 From Ramin 2007-07-24 14:26:41 0000 -------
(In reply to comment #2)
> I also have this problem.
> 
Could you also solve it the same way?

------- Comment #4 From Lari Korpi 2007-07-24 14:29:22 0000 -------
(In reply to comment #3)
> (In reply to comment #2)
> > I also have this problem.
> > 
> Could you also solve it the same way?
> 

Yes, I used the --menuconfig and set the physical start to the same value.

I haven't yet fully compiled or booted with that workaround.

------- Comment #5 From Chris Gianelloni (RETIRED) 2007-07-24 19:44:35 0000 -------
Did you try the newer genkernel versions?

------- Comment #6 From Ramin 2007-07-25 08:23:50 0000 -------
genkernel-3.4.8 hat the same problem.

I think the reason lies in:

grep PHYSICAL /usr/share/genkernel/x86_64/kernel-config-2.6
CONFIG_PHYSICAL_START=0x100000

------- Comment #7 From Peter `MathFox' Roozemaal 2007-08-13 09:35:04 0000 -------
Same problem with gentoo-sources-2.6.22-r2 and genkernel-3.4.8. Same
workaround.

------- Comment #8 From Chris Gianelloni (RETIRED) 2007-08-22 19:42:37 0000 -------
OK.  I think I have this fixed in SVN.

------- Comment #9 From Chris Gianelloni (RETIRED) 2007-08-22 19:54:13 0000 -------
Please test genkernel 3.4.9_prer1 or better.  This should be fixed now.

------- Comment #10 From Ramin 2007-08-23 13:09:23 0000 -------
sys-kernel/gentoo-sources-2.6.22-r5 compiles fine using
sys-kernel/genkernel-3.4.9_pre1 for me.

------- Comment #11 From Chris Gianelloni (RETIRED) 2007-08-23 23:59:14 0000 -------
Cool, I figured it would.  Thanks!