| View previous topic :: View next topic |
| Author |
Message |
funklord Tux's lil' helper


Joined: 29 May 2004 Posts: 78
|
Posted: Tue Mar 14, 2006 5:01 pm Post subject: 32bit install with AMD64 proc: Can't compile kernel |
|
|
I'm doing a 32bit install with an AMD X2 4400+ processor and have been having problems compiling a kernel. I'm using the 2006.0 x86 installer CD, and have had no other problems (that I know of). It doesn't seem to matter what I do in the kernel config; for example, in the processor type part, I only have generic x86_64, AMD64, and EM64T to choose from.
Here is the error message:
| Code: |
livecd linux # make
CHK include/linux/version.h
CC arch/x86_64/kernel/asm-offsets.s
arch/x86_64/kernel/asm-offsets.c:1: error: code model `kernel' not supported in the 32 bit mode
make[1]: *** [arch/x86_64/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
livecd linux #
|
Here is emerge info:
| Code: |
livecd linux # emerge info
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.4-r0, 2.6.15-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Gentoo Base System version 1.6.14
dev-lang/python: 2.4.2
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -msse2 -msse3 -mtune=athlon-xp -pipe -O2 -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -msse2 -msse3 -mtune=athlon-xp -pipe -O2 -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac acpi alsa apache2 apm avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cdparanoia crypt cscope css cups custom-cflags directfb dri dts dvd dvdr dvdread eds emboss encode esd expat fbcon ffmpeg foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 hal i8x0 imagemagick imlib ithreads jpeg kde kdeenablefinal kdexdeltas libg++ libwww live logitech-mouse mad matroska mikmod mmx mmxext motif mp3 mpeg musicbrainz mysql nas ncurses network nptl nptlonly nsplugin nvidia ogg opengl oss pam pdflib perl pic png python qt quicktime readline real ruby samba sdl sndfile spell sqlite sse sse2 ssl tcpd theora threads truetype truetype-fonts type1-fonts udev unicode userlocales vcd visualization vorbis win32codecs xanim xcomposite xine xinerama xml xml2 xmms xv xvid xvmc zeroconf zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
|
|
|
| Back to top |
|
 |
kfiaciarka Veteran


Joined: 20 May 2005 Posts: 1497 Location: Dobre Miasto, Poland
|
Posted: Tue Mar 14, 2006 9:52 pm Post subject: |
|
|
In your possition I would rather perform a 64bit installation from proper cd universal or minimal _________________ Read GMN
Osnews.pl
ITbiznes.pl
Laptop: Asus F3Tc-ap049 Turion TL-56, 2gb ddr2, 120gb, GF 7300  |
|
| Back to top |
|
 |
loftwyr l33t


Joined: 29 Dec 2004 Posts: 970 Location: 43°38'23.62"N 79°27'8.60"W
|
Posted: Tue Mar 14, 2006 9:56 pm Post subject: |
|
|
All three of those processor options will create a 64bit kernel. yoiu need to select "athlon" to create a 32 bit kernel. _________________ My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing. |
|
| Back to top |
|
 |
funklord Tux's lil' helper


Joined: 29 May 2004 Posts: 78
|
Posted: Tue Mar 14, 2006 10:32 pm Post subject: |
|
|
| loftwyr wrote: | | All three of those processor options will create a 64bit kernel. yoiu need to select "athlon" to create a 32 bit kernel. |
| Quote: | | in the processor type part, I only have generic x86_64, AMD64, and EM64T to choose from. |
Those are my only options. Is there something I did wrong to have the kernel config only present these options? |
|
| Back to top |
|
 |
kfiaciarka Veteran


Joined: 20 May 2005 Posts: 1497 Location: Dobre Miasto, Poland
|
Posted: Tue Mar 14, 2006 10:43 pm Post subject: |
|
|
try amd64 I mean Opteron/Athlon64.
If you don't see these option just try vanilla-sources:) Or ocz-sources _________________ Read GMN
Osnews.pl
ITbiznes.pl
Laptop: Asus F3Tc-ap049 Turion TL-56, 2gb ddr2, 120gb, GF 7300  |
|
| Back to top |
|
 |
loftwyr l33t


Joined: 29 Dec 2004 Posts: 970 Location: 43°38'23.62"N 79°27'8.60"W
|
Posted: Wed Mar 15, 2006 12:41 am Post subject: |
|
|
| Code: |
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.4-r0, 2.6.15-gentoo-r5 x86_64)
|
According to this, you've installed an AMD64 system (x86_64). So, you'll need to do a full reinstall with a x86 image if you want a 32 bit system.
I didn't notice that part earlier. _________________ My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing. |
|
| Back to top |
|
 |
funklord Tux's lil' helper


Joined: 29 May 2004 Posts: 78
|
Posted: Wed Mar 15, 2006 1:10 am Post subject: |
|
|
| loftwyr wrote: | | Code: |
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.4-r0, 2.6.15-gentoo-r5 x86_64)
|
According to this, you've installed an AMD64 system (x86_64). So, you'll need to do a full reinstall with a x86 image if you want a 32 bit system.
|
But I'm using an x86 install disc!
I think I just need to burn this computer and start over with a new one. :) |
|
| Back to top |
|
 |
thorak n00b

Joined: 14 Jul 2005 Posts: 9
|
Posted: Wed Mar 15, 2006 11:00 pm Post subject: |
|
|
| try with "linux32 chroot" instead of just chroot |
|
| Back to top |
|
 |
funklord Tux's lil' helper


Joined: 29 May 2004 Posts: 78
|
Posted: Wed Mar 15, 2006 11:10 pm Post subject: |
|
|
It turns out I'm not so sure I was using an x86 install disc. I had downloaded both the x86_64 and x86 isos, and didn't bother to label the CD that I installed from, so I'm going to chalk this one up to user error and start over.
Thanks for the help guys. |
|
| Back to top |
|
 |
avieth Veteran


Joined: 17 Sep 2004 Posts: 1945 Location: Canada
|
Posted: Wed Mar 15, 2006 11:33 pm Post subject: |
|
|
| Just out of curiosity, why not use x86_64? |
|
| Back to top |
|
 |
funklord Tux's lil' helper


Joined: 29 May 2004 Posts: 78
|
Posted: Wed Mar 15, 2006 11:40 pm Post subject: |
|
|
| avieth wrote: | | Just out of curiosity, why not use x86_64? |
To be honest, I had been lurking in some of the threads on this board and using x86_64 sounds like kind of a PITA, as far as having to configure and fiddle with stuff is concerned. I have my current gentoo setup going well enough that I haven't had to futz with anything in a long while, and I kind of wanted the same experience with this new box. |
|
| Back to top |
|
 |
longship Apprentice

Joined: 04 Jun 2005 Posts: 294 Location: Ontario, CA USA
|
Posted: Thu Mar 16, 2006 8:59 am Post subject: |
|
|
| funklord wrote: | | avieth wrote: | | Just out of curiosity, why not use x86_64? |
To be honest, I had been lurking in some of the threads on this board and using x86_64 sounds like kind of a PITA, as far as having to configure and fiddle with stuff is concerned. I have my current gentoo setup going well enough that I haven't had to futz with anything in a long while, and I kind of wanted the same experience with this new box. |
Let's set this straight.
No other Linux distribution works better on AMD 64 than Gentoo. It has more packages available and more becoming available every day. Almost everything just works out of the box. Most importantly, no other distribution has as seemless 32-bit executable support via split libraries.
Now, somethings you will have to unmask, but those are far and few between and are becoming fewer. I have been playing around with my system for about a month as I find time. The install went smoothly and I have far from a typical installation.
* Software (kernel) RAID 0 and RAID 1 on two pairs of SATA drives (one pair Raptor SATA150, one pair SATA II). All drive space is RAID, including boot partition.
* nVidia graphics card
* Dual sound cards (onboard + Audiophile 2496)
* Hauppauge PVR-250 (MythTV, which just plain works)
* nForce4 MoBo
At no time have I had an unbootable system. Xorg-x11 with the nvidia-kernel and nvidia-glx emerges just plain work.
Have I had to do a bit of research? You bet. But most of it involved merely finding out what packages to emerge. Once I emerged the code, things just worked. The folks on these forums have been super at resolving any problems. The result is that my dual core 4400+ based system just sings. I have a couple of small issues with some very cutting edge stuff, but I am sure that those will also be resolved soon.
The bottom line is that things work.
I think you ought to give 64 bits a try. _________________ AMD 64 X2 4400+, ASUS A8N-Sli Premium + Lian Li PC-V1000A Plus
AMD Duron 800, ABit KT7E, junk case
VIA C3-Nehemiah, VIA EPIA MII12000 + Scythe e-Otonashi fanless case |
|
| Back to top |
|
 |
funklord Tux's lil' helper


Joined: 29 May 2004 Posts: 78
|
Posted: Mon Mar 20, 2006 6:58 pm Post subject: |
|
|
Sorry for taking so long to reply, I was AFK the last couple days.
You convinced me, I decided to go with the x86_64 install since I'd probably want to do that at some point in the future. I haven't had any major problems, but then I haven't used the system a ton yet.
When I made the comment about x86_64 being difficult to set up, I was referring to things that I use in a desktop system: viewing videos downloaded from the internet, viewing videos in my browser, flash in the browser, etc. These are things that my cursory usage so far has shown to be more difficult to set up than usual (ie, I can't just "emerge some_package" and call it good). |
|
| Back to top |
|
 |
longship Apprentice

Joined: 04 Jun 2005 Posts: 294 Location: Ontario, CA USA
|
Posted: Tue Mar 21, 2006 3:40 am Post subject: |
|
|
| funklord wrote: | Sorry for taking so long to reply, I was AFK the last couple days.
You convinced me, I decided to go with the x86_64 install since I'd probably want to do that at some point in the future. I haven't had any major problems, but then I haven't used the system a ton yet.
When I made the comment about x86_64 being difficult to set up, I was referring to things that I use in a desktop system: viewing videos downloaded from the internet, viewing videos in my browser, flash in the browser, etc. These are things that my cursory usage so far has shown to be more difficult to set up than usual (ie, I can't just "emerge some_package" and call it good). |
Yes you can. mozilla-firefox-bin, mplayer-bin, win32codecs, mplayerplug-in-bin, openoffice-bin, netscape-flash, etc. These work fine out-of-the-box, including flash, videos from Firefox, etc. Just emerge them.
Plus, you can emerge the 64-bit version of mplayer, too and have the best of both worlds.
N.B., The current mplayer-bin that works is mplayer-bin-1.0_pre7-r3. There are unresolved issues with the one labelled mplayer-bin-1.0.20060217. _________________ AMD 64 X2 4400+, ASUS A8N-Sli Premium + Lian Li PC-V1000A Plus
AMD Duron 800, ABit KT7E, junk case
VIA C3-Nehemiah, VIA EPIA MII12000 + Scythe e-Otonashi fanless case |
|
| Back to top |
|
 |
funklord Tux's lil' helper


Joined: 29 May 2004 Posts: 78
|
Posted: Wed Mar 22, 2006 8:30 pm Post subject: |
|
|
| longship wrote: | | funklord wrote: | Sorry for taking so long to reply, I was AFK the last couple days.
You convinced me, I decided to go with the x86_64 install since I'd probably want to do that at some point in the future. I haven't had any major problems, but then I haven't used the system a ton yet.
When I made the comment about x86_64 being difficult to set up, I was referring to things that I use in a desktop system: viewing videos downloaded from the internet, viewing videos in my browser, flash in the browser, etc. These are things that my cursory usage so far has shown to be more difficult to set up than usual (ie, I can't just "emerge some_package" and call it good). |
Yes you can. mozilla-firefox-bin, mplayer-bin, win32codecs, mplayerplug-in-bin, openoffice-bin, netscape-flash, etc. These work fine out-of-the-box, including flash, videos from Firefox, etc. Just emerge them. |
No, you can't. There's no mplayerplug-in-bin in portage. |
|
| Back to top |
|
 |
longship Apprentice

Joined: 04 Jun 2005 Posts: 294 Location: Ontario, CA USA
|
Posted: Wed Mar 22, 2006 10:17 pm Post subject: |
|
|
| funklord wrote: | | longship wrote: | | funklord wrote: | Sorry for taking so long to reply, I was AFK the last couple days.
You convinced me, I decided to go with the x86_64 install since I'd probably want to do that at some point in the future. I haven't had any major problems, but then I haven't used the system a ton yet.
When I made the comment about x86_64 being difficult to set up, I was referring to things that I use in a desktop system: viewing videos downloaded from the internet, viewing videos in my browser, flash in the browser, etc. These are things that my cursory usage so far has shown to be more difficult to set up than usual (ie, I can't just "emerge some_package" and call it good). |
Yes you can. mozilla-firefox-bin, mplayer-bin, win32codecs, mplayerplug-in-bin, openoffice-bin, netscape-flash, etc. These work fine out-of-the-box, including flash, videos from Firefox, etc. Just emerge them. |
No, you can't. There's no mplayerplug-in-bin in portage. |
Sorry about that. My log book is a bit muddled right now. I'm straightening it out. The ebuild is available off site. Unfortunately the docs on that site are hopelessly modduled. As soon as I complete a simple HowTo I will post it and link to the post in this thread. _________________ AMD 64 X2 4400+, ASUS A8N-Sli Premium + Lian Li PC-V1000A Plus
AMD Duron 800, ABit KT7E, junk case
VIA C3-Nehemiah, VIA EPIA MII12000 + Scythe e-Otonashi fanless case |
|
| Back to top |
|
 |
Crazor Tux's lil' helper

Joined: 23 Apr 2003 Posts: 131
|
Posted: Sun Mar 26, 2006 9:11 am Post subject: |
|
|
Got the same Error as OP, but while trying to build a 32bit install by chrooting from my 64bit Gentoo install.
| thorak wrote: | | try with "linux32 chroot" instead of just chroot | did the trick for me! This might be kinda offtopic, I just thougt I'd post here, because I found this thread while looking for my problem... |
|
| Back to top |
|
 |
|
|
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
|
|