Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel problems, new installation, Power Mac G5 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 934
Location: Queensland

PostPosted: Sun May 23, 2010 7:21 am    Post subject: Kernel problems, new installation, Power Mac G5 [SOLVED] Reply with quote

New installation, mostly straightforward following of PPC64 handbook. However, the machine will not boot.

During kernel make (Gentoo 2.6.34), there is
make:
kernel/bounds.c:1: error: -m64 not supported in this configuration
I am trying to install a 64 bit kernel with 32 bit userland. The above error obtains after make g5_defconfig. With my own .config, the error still occurs but the make continues and finishes. However, the kernel is only a 32 bit ELF. When the machine boots, yaboot says there is an error in the kernel image.

Now gcc has to be able to emit 64 bit code even though it is operating in a 32 bit userland.

I've just tried my own .config again and this time the error messages include
make:
/usr/src/linux-2.6.34-gentoo/scripts/gcc-version.sh: line 29: printf: #: invalid number
cc1: error: -m64 not supported in this configuration
What is going on here ? I followed the handbook carefully and the installation is fundamentally broken.
emerge --info:
Portage 2.1.8.3 (default/linux/powerpc/ppc64/10.0/32bit-userland/desktop/kde, gcc-4.4.3, glibc-2.11.1-r0, 2.6.30-gentoo-r5-G5 ppc64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-G5-ppc64-PPC970,_altivec_supported-with-gentoo-2.0.1
Timestamp of tree: Fri, 21 May 2010 06:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.6.3, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.2-r3, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="ppc ~ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo http://mirror.pacific.net.au/linux/Gentoo ftp://ftp.swin.edu.au/gentoo ftp://mirror.pacific.net.au/linux/Gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB"
MAKEOPTS="-j4 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa altivec autoipd avahi berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus disk-partition doc dri dts dvd dvdr emboss encode exif extra extras fam firefox flac fortran gcc64 gdbm gif glibc-omitfp gpm hal handbook iconv jadetex java jpeg kde kontact kpathsea latex lcms ldap libnotify mad mikmod mmap mng modules mp3 mp4 mpeg msn mudflap ncurses networkmanager nls npp nptl nptlonly ogg opengl openmp oscar pam pango pcre pdf perl png policykit ppc ppds pppd python qt3support qt4 quicktime readline reflection ruby scanner sdl semantic-desktop session slang spell spl ssl startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb v4l v4l2 vcd vim-syntax vnc vorbis wmf x264 xcb xcomposite xml xorg xpm xulrunner xv xvid yahoo zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

_________________
Michael Mounteney
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 934
Location: Queensland

PostPosted: Sun May 23, 2010 12:19 pm    Post subject: Rtfm Reply with quote

Familiarity bred contempt. I am (or thought I was) sufficiently familiar with the installation procedure that I did not notice or heed the warning about CROSS_COMPILE ?= powerpc64-unknown-linux-gnu- when in 32 bit userland.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 243

PostPosted: Tue Sep 07, 2010 11:31 pm    Post subject: Reply with quote

Could you enlighten me on your solution? I'm afraid I have followed the same broken path as you, and I am unaware of the cross compile warning to which you refer.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue Sep 07, 2010 11:51 pm    Post subject: Reply with quote

rburcham wrote:
Could you enlighten me on your solution? I'm afraid I have followed the same broken path as you, and I am unaware of the cross compile warning to which you refer.


it's this bit I believe (I've only done one PPC install, and i no longer have access to the box! so ehhh...my memory could be buggered)

http://www.gentoo.org/doc/en/handbook/handbook-ppc64.xml?full=1#book_part1_chap7

Handbook wrote:

Code Listing 3.1: Invoking menuconfig
# cd /usr/src/linux
Important: In case you are in 32-bit userland, you must edit the top
level Makefile in /usr/src/linux and change the CROSS_COMPILE option to
CROSS_COMPILE ?= powerpc64-unknown-linux-gnu-. You must do this before you run
make menuconfig or it may result in kernel compilation problems.
# make menuconfig

_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 243

PostPosted: Wed Sep 08, 2010 3:01 pm    Post subject: Reply with quote

Okay I think you're right, thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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