<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>186378</bug_id>
          
          <creation_ts>2007-07-23 21:07 0000</creation_ts>
          <short_desc>sys-kernel/genkernel-3.4.6 does not configure gentoo-sources-2.6.22-r1 correctly</short_desc>
          <delta_ts>2007-08-23 23:59:14 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Hosted Projects</product>
          <component>genkernel</component>
          <version>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoo@torabi.de</reporter>
          <assigned_to>genkernel@gentoo.org</assigned_to>
          <cc>lari.korpi@iki.fi</cc>
    
    <cc>mathfox@xs4all.nl</cc>

      

      
          <long_desc isprivate="0">
            <who>gentoo@torabi.de</who>
            <bug_when>2007-07-23 21:07:21 0000</bug_when>
            <thetext>If I try with
/usr/src/linux -&gt; 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 &quot;CONFIG_PHYSICAL_START must be a multiple of 2MB&quot;
...
* ERROR: Failed to compile the &quot;prepare&quot; 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=&quot;~amd64&quot; emerge =gentoo-sources-2.6.22-r1
4. genkernel all</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@torabi.de</who>
            <bug_when>2007-07-23 21:09:06 0000</bug_when>
            <thetext>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=&quot;amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-mtune=k8 -O2 -pipe -msse3&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/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&quot;
CXXFLAGS=&quot;-mtune=k8 -O2 -pipe -msse3&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;buildpkg distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch&quot;
GENTOO_MIRRORS=&quot; 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&quot;
LINGUAS=&quot;en de&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--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-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;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&quot; ALSA_PCM_PLUGINS=&quot;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&quot; CAMERAS=&quot;canon&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse joystick&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en de&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nvidia&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lari.korpi@iki.fi</who>
            <bug_when>2007-07-24 14:22:39 0000</bug_when>
            <thetext>I also have this problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@torabi.de</who>
            <bug_when>2007-07-24 14:26:41 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; I also have this problem.
&gt; 
Could you also solve it the same way?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lari.korpi@iki.fi</who>
            <bug_when>2007-07-24 14:29:22 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; I also have this problem.
&gt; &gt; 
&gt; Could you also solve it the same way?
&gt; 

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

I haven&apos;t yet fully compiled or booted with that workaround.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-07-24 19:44:35 0000</bug_when>
            <thetext>Did you try the newer genkernel versions?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@torabi.de</who>
            <bug_when>2007-07-25 08:23:50 0000</bug_when>
            <thetext>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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mathfox@xs4all.nl</who>
            <bug_when>2007-08-13 09:35:04 0000</bug_when>
            <thetext>Same problem with gentoo-sources-2.6.22-r2 and genkernel-3.4.8. Same workaround.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-08-22 19:42:37 0000</bug_when>
            <thetext>OK.  I think I have this fixed in SVN.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-08-22 19:54:13 0000</bug_when>
            <thetext>Please test genkernel 3.4.9_prer1 or better.  This should be fixed now.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@torabi.de</who>
            <bug_when>2007-08-23 13:09:23 0000</bug_when>
            <thetext>sys-kernel/gentoo-sources-2.6.22-r5 compiles fine using sys-kernel/genkernel-3.4.9_pre1 for me.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-08-23 23:59:14 0000</bug_when>
            <thetext>Cool, I figured it would.  Thanks!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>